Authored by yyq

detail 优化

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