Commit 0782b9f3b407839b2e873581a0a9d17a55e00266
1 parent
f0986448
预存页面会员没有登陆,先提示登陆
Showing
1 changed file
with
17 additions
and
3 deletions
packageD/pages/user/deposit/prepaid/prepaid.js
@@ -28,8 +28,17 @@ Page({ | @@ -28,8 +28,17 @@ Page({ | ||
28 | } | 28 | } |
29 | } | 29 | } |
30 | }); | 30 | }); |
31 | - | ||
32 | - this.yuck(); | 31 | + |
32 | + if(getApp().globalData.user_id){ | ||
33 | + this.yuck(); | ||
34 | + } | ||
35 | + else{ | ||
36 | + wx.showToast({ title: "您还未登陆,请先授权", icon: 'none', duration: 2000 }) | ||
37 | + setTimeout(function () { | ||
38 | + getApp().goto("/pages/togoin/togoin"); | ||
39 | + },1200) | ||
40 | + } | ||
41 | + | ||
33 | }, | 42 | }, |
34 | /*预存款的劵*/ | 43 | /*预存款的劵*/ |
35 | async yuck() { | 44 | async yuck() { |
@@ -49,7 +58,7 @@ Page({ | @@ -49,7 +58,7 @@ Page({ | ||
49 | // var perpaid = res.data.data; | 58 | // var perpaid = res.data.data; |
50 | console.log( "是什么", perpaids); | 59 | console.log( "是什么", perpaids); |
51 | e.setData({ | 60 | e.setData({ |
52 | - perpaid: perpaids | 61 | + perpaid: perpaids,is_get:1 |
53 | }); | 62 | }); |
54 | }) | 63 | }) |
55 | 64 | ||
@@ -85,6 +94,11 @@ Page({ | @@ -85,6 +94,11 @@ Page({ | ||
85 | wx.setNavigationBarTitle({ | 94 | wx.setNavigationBarTitle({ |
86 | title: "流动资金转预存", | 95 | title: "流动资金转预存", |
87 | }) | 96 | }) |
97 | + | ||
98 | + if(getApp().globalData.user_id && !this.data.is_get){ | ||
99 | + this.yuck(); | ||
100 | + } | ||
101 | + | ||
88 | }, | 102 | }, |
89 | //确定充值 | 103 | //确定充值 |
90 | determine: function(e) { | 104 | determine: function(e) { |