Commit 46854137cd713cdecd11c4b2ed1ca5fa6dfa4fa2
1 parent
669af93b
卡项商品详情页,查看评价页修改
Showing
2 changed files
with
7 additions
and
17 deletions
packageA/pages/goodsInfo/goodsInfo.js
| ... | ... | @@ -2695,9 +2695,9 @@ Page({ |
| 2695 | 2695 | previewCommentImgs_w: function (t) { |
| 2696 | 2696 | var e = this.data.comments[t.currentTarget.dataset.cidx].weapp_img; |
| 2697 | 2697 | var b = e.slice() |
| 2698 | - for (var i in b) { | |
| 2699 | - b[i] = this.data.iurl + e[i]; | |
| 2700 | - } | |
| 2698 | + // for (var i in b) { | |
| 2699 | + // b[i] = this.data.iurl + e[i]; | |
| 2700 | + // } | |
| 2701 | 2701 | this.data.show_prew_img = 1; |
| 2702 | 2702 | wx.previewImage({ |
| 2703 | 2703 | current: b[t.currentTarget.dataset.id], |
| ... | ... | @@ -2705,20 +2705,8 @@ Page({ |
| 2705 | 2705 | }); |
| 2706 | 2706 | }, |
| 2707 | 2707 | |
| 2708 | - previewGoodsCommentImgs: function (t) { | |
| 2709 | - var e = this, | |
| 2710 | - a = this.data.data.comment[t.currentTarget.dataset.cidx].img; | |
| 2711 | - a = a.map(function (t) { | |
| 2712 | - return e.data.url + t; | |
| 2713 | - }), wx.previewImage({ | |
| 2714 | - current: a[t.currentTarget.dataset.id], | |
| 2715 | - urls: a | |
| 2716 | - }); | |
| 2717 | - this.data.show_prew_img = 1; | |
| 2718 | - }, | |
| 2719 | - | |
| 2720 | - | |
| 2721 | 2708 | |
| 2709 | + | |
| 2722 | 2710 | }); |
| 2723 | 2711 | |
| 2724 | 2712 | ... | ... |
packageB/pages/user/view_comment/view_comment.js
| ... | ... | @@ -113,7 +113,7 @@ Page({ |
| 113 | 113 | if (image != "") { |
| 114 | 114 | image = imgArr[0].weapp_img[index]; |
| 115 | 115 | wx.previewImage({ |
| 116 | - current: iurl + image, | |
| 116 | + current: image, | |
| 117 | 117 | //当前图片地址 |
| 118 | 118 | urls: imgArr[0].weapp_img, //所有要预览的图片的地址集合 数组形式 |
| 119 | 119 | }) |
| ... | ... | @@ -125,6 +125,8 @@ Page({ |
| 125 | 125 | urls: imgArr[0].img, //所有要预览的图片的地址集合 数组形式 |
| 126 | 126 | }) |
| 127 | 127 | } |
| 128 | + | |
| 129 | + | |
| 128 | 130 | }, |
| 129 | 131 | goto: function(e) { |
| 130 | 132 | var th = this; | ... | ... |