新消息
POST
域名+ /index/message/message_new
接口描述
左上角的头像消息红点,写一个轮询实时展示是否有新消息
请求头
参数名
类型
描述
必填
cookie
uni.getStorageSync("sessionid")
必填
响应参数
参数名
类型
描述
必填
code
int
示例:200,500 当code==200时,客户端消息红点展示,500时隐藏
必填
id
int
示例:1
必填
member_id
int
示例:1
必填
type
0,1,2,3系统消息、优惠消息、活动消息、客服消息
必填
type_id
int
示例:1 0时订单id,type1时优惠券id,type2时活动id,type3时客服消息id 需要跳转页面时作为跳转参数
必填
title
string
示例:活动消息上线了 标题
必填
info
string
示例:活动消息上线了活动消息上线了 内容
必填
is_read
int
示例:0 0未读1已读
必填
create_time
string
示例:2021-03-26 10:07:12
必填
update_time
string
示例:2021-03-26 10:07:12
必填