Commit 1905a07e2e7cfb909eb5e69872194de6f3d36db1
1 parent
aab01810
请先登录的优化
Showing
1 changed file
with
15 additions
and
1 deletions
pages/user/order_list/order_list.js
... | ... | @@ -107,7 +107,21 @@ Page({ |
107 | 107 | s.init(this, "", "orderList"); |
108 | 108 | |
109 | 109 | if(!getApp().globalData.user_id){ |
110 | - getApp().goto('/packageE/pages/togoin/togoin'); | |
110 | + | |
111 | + | |
112 | + wx.showModal({ | |
113 | + title: '提示', | |
114 | + content: '请先登录!', | |
115 | + success (res) { | |
116 | + if (res.confirm) { | |
117 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
118 | + } else if (res.cancel) { | |
119 | + console.log('用户点击取消') | |
120 | + } | |
121 | + } | |
122 | + }) | |
123 | + | |
124 | + | |
111 | 125 | } |
112 | 126 | |
113 | 127 | ... | ... |