Authored by yyq

msg href 处理

... ... @@ -152,6 +152,7 @@ const getMessageList = (uid, params, limit) => {
let href = `/home/message/detail?id=${value.id}&page=${page}`;
href += type ? `&type=${type}` : '';
switch (value.type) {
case 'pullCoupon':
case 'button':
... ... @@ -166,7 +167,7 @@ const getMessageList = (uid, params, limit) => {
msg.push({
id: value.id || 0,
href: type ? href + `&type=${type}` : href,
href: href,
title: value.title || '',
content: _.get(value, 'body.content', ''),
sender: value.from || '',
... ...