分享朋友圈调整
This commit is contained in:
@@ -25,11 +25,15 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
let sceneCode = options.scene || null
|
||||
if(sceneCode != null ){
|
||||
let inviteCode = decodeURIComponent(sceneCode)
|
||||
let invite = inviteCode.match(new RegExp("(^|&)" + 'invite' + "=([^&]*)(&|$)", "i"));
|
||||
getApp().globalData.invite = invite[2] || null
|
||||
if(options.invite){
|
||||
getApp().globalData.invite = options.invite || null
|
||||
}else{
|
||||
let sceneCode = options.scene || null
|
||||
if(sceneCode != null ){
|
||||
let inviteCode = decodeURIComponent(sceneCode)
|
||||
let invite = inviteCode.match(new RegExp("(^|&)" + 'invite' + "=([^&]*)(&|$)", "i"));
|
||||
getApp().globalData.invite = invite[2] || null
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -170,6 +174,21 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 开通vip
|
||||
*/
|
||||
onVip(){
|
||||
if(wx.getStorageSync("token") != ''){
|
||||
wx.navigateTo({
|
||||
url: '/pages/idcard/idcard',
|
||||
})
|
||||
return
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: "/pages/login/index"
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user