Commit 8bd975eb9bfc267037d810f55e5ce325620180d3
1 parent
63467632
评价有礼自定义链接
Showing
2 changed files
with
13 additions
and
1 deletions
pages/giftpack/evaluategift/evaluategift.js
| ... | ... | @@ -31,6 +31,10 @@ Page({ |
| 31 | 31 | orderNumber: "", //订单号 |
| 32 | 32 | orderGoodsId: "", //商品id |
| 33 | 33 | orderType:1, |
| 34 | + | |
| 35 | + weappurltitle:"进入商城购物", | |
| 36 | + weappurl:"/pages/index/index/index", | |
| 37 | + | |
| 34 | 38 | }, |
| 35 | 39 | GetList: function() { |
| 36 | 40 | var th = this; |
| ... | ... | @@ -113,6 +117,14 @@ Page({ |
| 113 | 117 | textTitle: res.data.data.actIntro.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') |
| 114 | 118 | }) |
| 115 | 119 | } |
| 120 | + if (res.data.data.weappurl != '' && res.data.data.weappurltitle != '') { | |
| 121 | + th.setData({ | |
| 122 | + weappurl: res.data.data.weappurl, | |
| 123 | + weappurltitle: res.data.data.weappurltitle | |
| 124 | + }) | |
| 125 | + } | |
| 126 | + | |
| 127 | + | |
| 116 | 128 | } else { |
| 117 | 129 | getApp().my_warnning(res.data.msg, 0, th); |
| 118 | 130 | return false; | ... | ... |
pages/giftpack/evaluategift/evaluategift.wxml
| ... | ... | @@ -158,7 +158,7 @@ |
| 158 | 158 | </block> |
| 159 | 159 | <view class="button_box"> |
| 160 | 160 | <view> |
| 161 | - <button class="button" bindtap="goto" data-url="/pages/index/index/index">进入商城购物</button> | |
| 161 | + <button class="button" bindtap="goto" data-url="{{weappurl}}">{{weappurltitle}}</button> | |
| 162 | 162 | </view> |
| 163 | 163 | <view class="button_text "> |
| 164 | 164 | <text>本活动最终解释权归公司所有,如果有问题请联系客服</text> | ... | ... |