Commit 0e5a35eddeec88f014f67c07e52b966bf20d0884
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
7 changed files
with
20 additions
and
6 deletions
packageB/pages/user/collect_list/collect_list.wxml
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | </view> |
| 6 | 6 | <view class="flex-level fs30 xc-ash">当前暂无收藏</view> |
| 7 | 7 | <view class="flex-level"> |
| 8 | - <navigator url="/pages/index/index/index" bindtap="goto"> | |
| 8 | + <navigator bindtap="go_to" data-url="/pages/index/index/index" bindtap="goto"> | |
| 9 | 9 | <view class="flex-center fs28 white">去首页逛逛</view> |
| 10 | 10 | </navigator> |
| 11 | 11 | </view> | ... | ... |
packageB/pages/user/comment/comment.js
packageB/pages/user/comment/comment.wxml
| ... | ... | @@ -14,7 +14,7 @@ |
| 14 | 14 | </view> |
| 15 | 15 | <view class="flex-level fs30 xc-ash">当前暂无评价</view> |
| 16 | 16 | <view class="flex-level"> |
| 17 | - <navigator url="/pages/index/index/index" bindtap="goto"> | |
| 17 | + <navigator bindtap="go_url" data-url="/pages/index/index/index"> | |
| 18 | 18 | <view class="flex-center fs28 white">去首页逛逛</view> |
| 19 | 19 | </navigator> |
| 20 | 20 | </view> | ... | ... |
pages/cart/cart/cart.js
| ... | ... | @@ -2066,5 +2066,10 @@ Page({ |
| 2066 | 2066 | if (hei< viewHeight) { |
| 2067 | 2067 | this.setData({ max_sw_height: viewHeight }); |
| 2068 | 2068 | } |
| 2069 | - } | |
| 2069 | + }, | |
| 2070 | + | |
| 2071 | + go_url(e){ | |
| 2072 | + var url=e.currentTarget.dataset.url; | |
| 2073 | + getApp().goto(url); | |
| 2074 | + } | |
| 2070 | 2075 | }); |
| 2071 | 2076 | \ No newline at end of file | ... | ... |
pages/cart/cart/cart.wxml
| ... | ... | @@ -252,7 +252,7 @@ |
| 252 | 252 | </view> |
| 253 | 253 | <view class="flex-level fs32 xc-ash">购物车竟然是空的</view> |
| 254 | 254 | <view class="flex-level"> |
| 255 | - <navigator url="/pages/index/index/index" bindtap="goto"> | |
| 255 | + <navigator bindtap="go_url" data-url="/pages/index/index/index" bindtap="goto"> | |
| 256 | 256 | <view class="flex-center fs30 white">去首页逛逛</view> |
| 257 | 257 | </navigator> |
| 258 | 258 | </view> | ... | ... |
pages/user/order_list/order_list.js
| ... | ... | @@ -1575,7 +1575,12 @@ Page({ |
| 1575 | 1575 | icon: 'none', |
| 1576 | 1576 | duration: 3000 |
| 1577 | 1577 | }) |
| 1578 | - } | |
| 1578 | + }, | |
| 1579 | + | |
| 1580 | + go_url(e){ | |
| 1581 | + var url=e.currentTarget.dataset.url; | |
| 1582 | + getApp().goto(url); | |
| 1583 | + } | |
| 1579 | 1584 | |
| 1580 | 1585 | |
| 1581 | 1586 | }); |
| 1582 | 1587 | \ No newline at end of file | ... | ... |
pages/user/order_list/order_list.wxml
| ... | ... | @@ -249,7 +249,7 @@ |
| 249 | 249 | </view> |
| 250 | 250 | <view class="flex-level fs30 xc-ash">当前暂无订单</view> |
| 251 | 251 | <view class="flex-level"> |
| 252 | - <navigator url="/pages/index/index/index" bindtap="goto"> | |
| 252 | + <navigator bindtap="go_url" data-url="/pages/index/index/index" > | |
| 253 | 253 | <view class="flex-center fs28 white">去首页逛逛</view> |
| 254 | 254 | </navigator> |
| 255 | 255 | </view> | ... | ... |