Commit 4176121b91fce9bba5af519ab881417ecb2da82e
1 parent
f122a22d
去首页逛逛的bug
Showing
7 changed files
with
20 additions
and
6 deletions
packageB/pages/user/collect_list/collect_list.wxml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | </view> | 5 | </view> |
6 | <view class="flex-level fs30 xc-ash">当前暂无收藏</view> | 6 | <view class="flex-level fs30 xc-ash">当前暂无收藏</view> |
7 | <view class="flex-level"> | 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 | <view class="flex-center fs28 white">去首页逛逛</view> | 9 | <view class="flex-center fs28 white">去首页逛逛</view> |
10 | </navigator> | 10 | </navigator> |
11 | </view> | 11 | </view> |
packageB/pages/user/comment/comment.js
@@ -154,5 +154,9 @@ Page({ | @@ -154,5 +154,9 @@ Page({ | ||
154 | url: '/pages/index/index/index', | 154 | url: '/pages/index/index/index', |
155 | }) | 155 | }) |
156 | }, | 156 | }, |
157 | + go_url(e){ | ||
158 | + var url=e.currentTarget.dataset.url; | ||
159 | + getApp().goto(url); | ||
160 | + } | ||
157 | 161 | ||
158 | }); | 162 | }); |
159 | \ No newline at end of file | 163 | \ No newline at end of file |
packageB/pages/user/comment/comment.wxml
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | </view> | 14 | </view> |
15 | <view class="flex-level fs30 xc-ash">当前暂无评价</view> | 15 | <view class="flex-level fs30 xc-ash">当前暂无评价</view> |
16 | <view class="flex-level"> | 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 | <view class="flex-center fs28 white">去首页逛逛</view> | 18 | <view class="flex-center fs28 white">去首页逛逛</view> |
19 | </navigator> | 19 | </navigator> |
20 | </view> | 20 | </view> |
pages/cart/cart/cart.js
@@ -2066,5 +2066,10 @@ Page({ | @@ -2066,5 +2066,10 @@ Page({ | ||
2066 | if (hei< viewHeight) { | 2066 | if (hei< viewHeight) { |
2067 | this.setData({ max_sw_height: viewHeight }); | 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 | \ No newline at end of file | 2076 | \ No newline at end of file |
pages/cart/cart/cart.wxml
@@ -252,7 +252,7 @@ | @@ -252,7 +252,7 @@ | ||
252 | </view> | 252 | </view> |
253 | <view class="flex-level fs32 xc-ash">购物车竟然是空的</view> | 253 | <view class="flex-level fs32 xc-ash">购物车竟然是空的</view> |
254 | <view class="flex-level"> | 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 | <view class="flex-center fs30 white">去首页逛逛</view> | 256 | <view class="flex-center fs30 white">去首页逛逛</view> |
257 | </navigator> | 257 | </navigator> |
258 | </view> | 258 | </view> |
pages/user/order_list/order_list.js
@@ -1575,7 +1575,12 @@ Page({ | @@ -1575,7 +1575,12 @@ Page({ | ||
1575 | icon: 'none', | 1575 | icon: 'none', |
1576 | duration: 3000 | 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 | \ No newline at end of file | 1587 | \ No newline at end of file |
pages/user/order_list/order_list.wxml
@@ -249,7 +249,7 @@ | @@ -249,7 +249,7 @@ | ||
249 | </view> | 249 | </view> |
250 | <view class="flex-level fs30 xc-ash">当前暂无订单</view> | 250 | <view class="flex-level fs30 xc-ash">当前暂无订单</view> |
251 | <view class="flex-level"> | 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 | <view class="flex-center fs28 white">去首页逛逛</view> | 253 | <view class="flex-center fs28 white">去首页逛逛</view> |
254 | </navigator> | 254 | </navigator> |
255 | </view> | 255 | </view> |