随便逛逛逻辑添加-- reviewed byjingyou
Showing
2 changed files
with
8 additions
and
2 deletions
@@ -69,7 +69,13 @@ Page({ | @@ -69,7 +69,13 @@ Page({ | ||
69 | .catch(error => { | 69 | .catch(error => { |
70 | console.log(error) | 70 | console.log(error) |
71 | }) | 71 | }) |
72 | - } | 72 | + }, |
73 | + | ||
74 | + lookAround: function () { | ||
75 | + wx.navigateBack({ | ||
76 | + delta: getCurrentPages().length-1 | ||
77 | + }) | ||
78 | + }, | ||
73 | 79 | ||
74 | 80 | ||
75 | }) | 81 | }) |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | <text class="checkOrderText">{{checkOrderButtonText}}</text> | 13 | <text class="checkOrderText">{{checkOrderButtonText}}</text> |
14 | </view> | 14 | </view> |
15 | 15 | ||
16 | - <view> | 16 | + <view bindtap="lookAround"> |
17 | <text class="lookAround">{{lookAround}}</text> | 17 | <text class="lookAround">{{lookAround}}</text> |
18 | </view> | 18 | </view> |
19 | 19 |
-
Please register or login to post a comment