Commit 6c7278ce0440157ba8f9169005649b37cb8117af
1 parent
07ad7068
有效天数 和 图片的显示
Showing
2 changed files
with
3 additions
and
3 deletions
packageA/pages/service_share/service_share.js
| ... | ... | @@ -145,7 +145,7 @@ Page({ |
| 145 | 145 | var item=this.data.share_good; |
| 146 | 146 | var price = item.money; |
| 147 | 147 | var title= item.serviceName; |
| 148 | - var img=this.data.url+item.original_img; | |
| 148 | + var img=this.data.url+item.imgUrl; | |
| 149 | 149 | |
| 150 | 150 | var url="/packageA/pages/goodsInfo/goodsInfo?goods_id=" + item.id; |
| 151 | 151 | if(getApp().globalData.user_id){ |
| ... | ... | @@ -777,7 +777,7 @@ Page({ |
| 777 | 777 | var ee = this; |
| 778 | 778 | //获取商品是分享图信息 |
| 779 | 779 | wx.getImageInfo({ |
| 780 | - src: ee.data.url+ee.data.share_good.original_img, | |
| 780 | + src: ee.data.url+ee.data.share_good.imgUrl, | |
| 781 | 781 | success: function(res) { |
| 782 | 782 | //res.path是网络图片的本地地址 |
| 783 | 783 | ee.data.share_goods_img = res.path; | ... | ... |
packageA/pages/service_share/service_share.wxml
| ... | ... | @@ -45,7 +45,7 @@ |
| 45 | 45 | </view> |
| 46 | 46 | <view class="details"> |
| 47 | 47 | <view class="ellipsis-2 fs28 name">{{item.serviceName}}</view> |
| 48 | - <view class="fs26 pdt10">有效天数:{{item.validDays}}</view> | |
| 48 | + <view class="fs26 pdt10">有效天数:{{item.validDays?item.validDays:'不限'}}</view> | |
| 49 | 49 | <view class="flex ai-center pdt14 jc_sb"> |
| 50 | 50 | <view class="red fs26">¥{{item.money}}</view> |
| 51 | 51 | <view class="gray fs24">已售:<text class="red">{{item.sales_sum}}</text></view> | ... | ... |