Commit 3e80d9d644d63e5edd6354471d326f913c19cab7
1 parent
fb4f35b9
1. 新人,节日,生日,购买礼包小程序都要注册
2. 助力小程序也先要授权注册
Showing
12 changed files
with
98 additions
and
0 deletions
components/share_box/share_box.js
0 → 100644
1 | +var t = getApp(),os =t.globalData.setting; | ||
2 | +Component({ | ||
3 | + properties: { | ||
4 | + }, | ||
5 | + data: { | ||
6 | + iurl:os.imghost, | ||
7 | + }, | ||
8 | + ready: function() { | ||
9 | + }, | ||
10 | + methods: { | ||
11 | + //--- 分享 --- | ||
12 | + go_share:function () { | ||
13 | + this.triggerEvent('go_share') | ||
14 | + } | ||
15 | + | ||
16 | + } | ||
17 | + | ||
18 | +}) | ||
0 | \ No newline at end of file | 19 | \ No newline at end of file |
components/share_box/share_box.json
0 → 100644
components/share_box/share_box.wxml
0 → 100644
components/share_box/share_box.wxss
0 → 100644
1 | +.box_main{ | ||
2 | + width: 80rpx;height: 80rpx; background-color: #fff; border-radius: 50%; border: 1rpx solid #adadad; position: fixed;right: 0; top:50%; | ||
3 | + background-repeat: no-repeat;background-position: center center; background-size: cover; | ||
4 | +} | ||
5 | +button.control[plain] { | ||
6 | + border: 0; | ||
7 | +} | ||
0 | \ No newline at end of file | 8 | \ No newline at end of file |
pages/giftpack/birthdaygift/birthdaygift.js
@@ -123,6 +123,14 @@ Page({ | @@ -123,6 +123,14 @@ Page({ | ||
123 | th.GetList(); | 123 | th.GetList(); |
124 | }, | 124 | }, |
125 | onShow: function onShow() { | 125 | onShow: function onShow() { |
126 | + //--先判断会员状态-- | ||
127 | + var user_info = getApp().globalData.userInfo; | ||
128 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
129 | + wx.navigateTo({ | ||
130 | + url: '/pages/getphone/getphone', | ||
131 | + }) | ||
132 | + return false; | ||
133 | + } | ||
126 | 134 | ||
127 | }, | 135 | }, |
128 | GetReceive: function() { | 136 | GetReceive: function() { |
pages/giftpack/buygiftpack/giftpackbuy.js
@@ -37,6 +37,14 @@ Page({ | @@ -37,6 +37,14 @@ Page({ | ||
37 | th.getList(); | 37 | th.getList(); |
38 | }, | 38 | }, |
39 | onShow: function() { | 39 | onShow: function() { |
40 | + //--先判断会员状态-- | ||
41 | + var user_info = getApp().globalData.userInfo; | ||
42 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
43 | + wx.navigateTo({ | ||
44 | + url: '/pages/getphone/getphone', | ||
45 | + }) | ||
46 | + return false; | ||
47 | + } | ||
40 | 48 | ||
41 | }, | 49 | }, |
42 | 50 |
pages/giftpack/evaluategift/evaluategift.js
@@ -136,6 +136,14 @@ Page({ | @@ -136,6 +136,14 @@ Page({ | ||
136 | th.GetList(); | 136 | th.GetList(); |
137 | }, | 137 | }, |
138 | onShow: function() { | 138 | onShow: function() { |
139 | + //--先判断会员状态-- | ||
140 | + var user_info = getApp().globalData.userInfo; | ||
141 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
142 | + wx.navigateTo({ | ||
143 | + url: '/pages/getphone/getphone', | ||
144 | + }) | ||
145 | + return false; | ||
146 | + } | ||
139 | 147 | ||
140 | }, | 148 | }, |
141 | GetReceive: function() { | 149 | GetReceive: function() { |
pages/giftpack/festival/festival.js
@@ -130,6 +130,14 @@ Page({ | @@ -130,6 +130,14 @@ Page({ | ||
130 | }); | 130 | }); |
131 | }, | 131 | }, |
132 | onShow: function() { | 132 | onShow: function() { |
133 | + //--先判断会员状态-- | ||
134 | + var user_info = getApp().globalData.userInfo; | ||
135 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
136 | + wx.navigateTo({ | ||
137 | + url: '/pages/getphone/getphone', | ||
138 | + }) | ||
139 | + return false; | ||
140 | + } | ||
133 | 141 | ||
134 | }, | 142 | }, |
135 | GetReceive: function() { | 143 | GetReceive: function() { |
pages/giftpack/giftpacklist/giftpacklist.js
@@ -44,6 +44,14 @@ Page({ | @@ -44,6 +44,14 @@ Page({ | ||
44 | th.close(); | 44 | th.close(); |
45 | }, | 45 | }, |
46 | onShow: function() { | 46 | onShow: function() { |
47 | + //--先判断会员状态-- | ||
48 | + var user_info = getApp().globalData.userInfo; | ||
49 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
50 | + wx.navigateTo({ | ||
51 | + url: '/pages/getphone/getphone', | ||
52 | + }) | ||
53 | + return false; | ||
54 | + } | ||
47 | 55 | ||
48 | }, | 56 | }, |
49 | GetBuyPrice: function(e) { | 57 | GetBuyPrice: function(e) { |
pages/giftpack/mygiftpack/mygiftpack.js
@@ -38,6 +38,14 @@ Page({ | @@ -38,6 +38,14 @@ Page({ | ||
38 | th.getList(); | 38 | th.getList(); |
39 | }, | 39 | }, |
40 | onShow: function() { | 40 | onShow: function() { |
41 | + //--先判断会员状态-- | ||
42 | + var user_info = getApp().globalData.userInfo; | ||
43 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
44 | + wx.navigateTo({ | ||
45 | + url: '/pages/getphone/getphone', | ||
46 | + }) | ||
47 | + return false; | ||
48 | + } | ||
41 | 49 | ||
42 | }, | 50 | }, |
43 | getList: function() { | 51 | getList: function() { |
pages/giftpack/newvipgift/newvipgift.js
@@ -122,6 +122,14 @@ Page({ | @@ -122,6 +122,14 @@ Page({ | ||
122 | th.GetList(); | 122 | th.GetList(); |
123 | }, | 123 | }, |
124 | onShow: function() { | 124 | onShow: function() { |
125 | + //--先判断会员状态-- | ||
126 | + var user_info = getApp().globalData.userInfo; | ||
127 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
128 | + wx.navigateTo({ | ||
129 | + url: '/pages/getphone/getphone', | ||
130 | + }) | ||
131 | + return false; | ||
132 | + } | ||
125 | 133 | ||
126 | }, | 134 | }, |
127 | GetReceive: function() { | 135 | GetReceive: function() { |
pages/user/assistance/friend_assistance.js
@@ -54,6 +54,16 @@ Page({ | @@ -54,6 +54,16 @@ Page({ | ||
54 | * 生命周期函数--监听页面显示 | 54 | * 生命周期函数--监听页面显示 |
55 | */ | 55 | */ |
56 | onShow: function() { | 56 | onShow: function() { |
57 | + //--先判断会员状态-- | ||
58 | + var user_info = getApp().globalData.userInfo; | ||
59 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
60 | + wx.navigateTo({ | ||
61 | + url: '/pages/getphone/getphone', | ||
62 | + }) | ||
63 | + return false; | ||
64 | + } | ||
65 | + | ||
66 | + | ||
57 | var th=this; | 67 | var th=this; |
58 | if (!th.data.user) th.setData({ user: getApp().globalData.userInfo}); | 68 | if (!th.data.user) th.setData({ user: getApp().globalData.userInfo}); |
59 | if (this.data.tasking != null && this.data.tasking != 'undefined' && this.data.tasking != "" && this.data.tasking != | 69 | if (this.data.tasking != null && this.data.tasking != 'undefined' && this.data.tasking != "" && this.data.tasking != |