Authored by yyq

detail 优化

... ... @@ -282,7 +282,7 @@ const getMessageDetail = (uid, params, limit) => {
image: _.get(msg, 'body.image', ''),
content: _.get(msg, 'body.text', ''),
btnLink: _.get(msg, 'body.pc_link', ''),
btnName: _.get(msg, 'body.button_text', '')
btnName: _.get(msg, 'body.button_text', '') || '查看详情'
};
break;
case 'pushCoupon':
... ...
... ... @@ -74,7 +74,9 @@
<img src="{{image2 image}}">
</div>
<p>{{{content}}}</p>
<a href="{{btnLink}}" class="sale-btn">{{btnName}}</a>
{{#if btnLink}}
<a href="{{btnLink}}" class="sale-btn">{{btnName}}</a>
{{/if}}
{{/ sale}}
</div>
{{/ message}}
... ...