From 3e80d9d644d63e5edd6354471d326f913c19cab7 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Tue, 9 Jun 2020 09:51:30 +0800 Subject: [PATCH] 1. 新人,节日,生日,购买礼包小程序都要注册 2. 助力小程序也先要授权注册 --- components/share_box/share_box.js | 18 ++++++++++++++++++ components/share_box/share_box.json | 4 ++++ components/share_box/share_box.wxml | 3 +++ components/share_box/share_box.wxss | 7 +++++++ pages/giftpack/birthdaygift/birthdaygift.js | 8 ++++++++ pages/giftpack/buygiftpack/giftpackbuy.js | 8 ++++++++ pages/giftpack/evaluategift/evaluategift.js | 8 ++++++++ pages/giftpack/festival/festival.js | 8 ++++++++ pages/giftpack/giftpacklist/giftpacklist.js | 8 ++++++++ pages/giftpack/mygiftpack/mygiftpack.js | 8 ++++++++ pages/giftpack/newvipgift/newvipgift.js | 8 ++++++++ pages/user/assistance/friend_assistance.js | 10 ++++++++++ 12 files changed, 98 insertions(+), 0 deletions(-) create mode 100644 components/share_box/share_box.js create mode 100644 components/share_box/share_box.json create mode 100644 components/share_box/share_box.wxml create mode 100644 components/share_box/share_box.wxss diff --git a/components/share_box/share_box.js b/components/share_box/share_box.js new file mode 100644 index 0000000..789813d --- /dev/null +++ b/components/share_box/share_box.js @@ -0,0 +1,18 @@ +var t = getApp(),os =t.globalData.setting; +Component({ + properties: { + }, + data: { + iurl:os.imghost, + }, + ready: function() { + }, + methods: { + //--- 分享 --- + go_share:function () { + this.triggerEvent('go_share') + } + + } + +}) \ No newline at end of file diff --git a/components/share_box/share_box.json b/components/share_box/share_box.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/components/share_box/share_box.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/share_box/share_box.wxml b/components/share_box/share_box.wxml new file mode 100644 index 0000000..449574a --- /dev/null +++ b/components/share_box/share_box.wxml @@ -0,0 +1,3 @@ + + diff --git a/components/share_box/share_box.wxss b/components/share_box/share_box.wxss new file mode 100644 index 0000000..3c25d2a --- /dev/null +++ b/components/share_box/share_box.wxss @@ -0,0 +1,7 @@ +.box_main{ + width: 80rpx;height: 80rpx; background-color: #fff; border-radius: 50%; border: 1rpx solid #adadad; position: fixed;right: 0; top:50%; + background-repeat: no-repeat;background-position: center center; background-size: cover; +} +button.control[plain] { + border: 0; +} \ No newline at end of file diff --git a/pages/giftpack/birthdaygift/birthdaygift.js b/pages/giftpack/birthdaygift/birthdaygift.js index bc5144e..6889911 100644 --- a/pages/giftpack/birthdaygift/birthdaygift.js +++ b/pages/giftpack/birthdaygift/birthdaygift.js @@ -123,6 +123,14 @@ Page({ th.GetList(); }, onShow: function onShow() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, GetReceive: function() { diff --git a/pages/giftpack/buygiftpack/giftpackbuy.js b/pages/giftpack/buygiftpack/giftpackbuy.js index 59bc087..6532ee7 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.js +++ b/pages/giftpack/buygiftpack/giftpackbuy.js @@ -37,6 +37,14 @@ Page({ th.getList(); }, onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, diff --git a/pages/giftpack/evaluategift/evaluategift.js b/pages/giftpack/evaluategift/evaluategift.js index 189fda9..347f0e0 100644 --- a/pages/giftpack/evaluategift/evaluategift.js +++ b/pages/giftpack/evaluategift/evaluategift.js @@ -136,6 +136,14 @@ Page({ th.GetList(); }, onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, GetReceive: function() { diff --git a/pages/giftpack/festival/festival.js b/pages/giftpack/festival/festival.js index 473f42f..0d8515c 100644 --- a/pages/giftpack/festival/festival.js +++ b/pages/giftpack/festival/festival.js @@ -130,6 +130,14 @@ Page({ }); }, onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, GetReceive: function() { diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index 8455595..54724ac 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -44,6 +44,14 @@ Page({ th.close(); }, onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, GetBuyPrice: function(e) { diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js index 4944146..c6700b1 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.js +++ b/pages/giftpack/mygiftpack/mygiftpack.js @@ -38,6 +38,14 @@ Page({ th.getList(); }, onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, getList: function() { diff --git a/pages/giftpack/newvipgift/newvipgift.js b/pages/giftpack/newvipgift/newvipgift.js index 30f0261..b2d88ef 100644 --- a/pages/giftpack/newvipgift/newvipgift.js +++ b/pages/giftpack/newvipgift/newvipgift.js @@ -122,6 +122,14 @@ Page({ th.GetList(); }, onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } }, GetReceive: function() { diff --git a/pages/user/assistance/friend_assistance.js b/pages/user/assistance/friend_assistance.js index 9c525c7..c6ffc63 100644 --- a/pages/user/assistance/friend_assistance.js +++ b/pages/user/assistance/friend_assistance.js @@ -54,6 +54,16 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function() { + //--先判断会员状态-- + var user_info = getApp().globalData.userInfo; + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { + wx.navigateTo({ + url: '/pages/getphone/getphone', + }) + return false; + } + + var th=this; if (!th.data.user) th.setData({ user: getApp().globalData.userInfo}); if (this.data.tasking != null && this.data.tasking != 'undefined' && this.data.tasking != "" && this.data.tasking != -- libgit2 0.21.4