@@ -7,23 +7,28 @@ Page({ | |||||
couponChannelId: "", | couponChannelId: "", | ||||
path:null, | path:null, | ||||
paramData:null, | paramData:null, | ||||
signActivity:"" | |||||
signActivity:"", | |||||
mineFlag:null | |||||
}, | }, | ||||
onLoad: function (options) { | onLoad: function (options) { | ||||
this.setData({ | |||||
var that = this; | |||||
that.setData({ | |||||
path: options.path | path: options.path | ||||
}) | }) | ||||
this.setData({ | |||||
that.setData({ | |||||
paramData: options | paramData: options | ||||
}) | }) | ||||
var that = this; | |||||
if (options.couponChannelId) { | |||||
if (options&&options.couponChannelId) { | |||||
that.setData({ | that.setData({ | ||||
couponChannelId: options.couponChannelId | couponChannelId: options.couponChannelId | ||||
}); | }); | ||||
} | } | ||||
if (options.signActivity){ | |||||
if (options && options.mineFlag) { | |||||
that.setData({ | |||||
mineFlag: options.mineFlag | |||||
}) | |||||
} | |||||
if (options&&options.signActivity){ | |||||
that.setData({ | that.setData({ | ||||
signActivity: options.signActivity | signActivity: options.signActivity | ||||
}); | }); | ||||
@@ -107,6 +112,10 @@ Page({ | |||||
wx.redirectTo({ | wx.redirectTo({ | ||||
url: `/pages/radetail/joinActivity/edit?activityId=${that.data.signActivity}` | url: `/pages/radetail/joinActivity/edit?activityId=${that.data.signActivity}` | ||||
}) | }) | ||||
} else if (that.data.mineFlag == 'mine'){ | |||||
wx.switchTab({ | |||||
url: '/pages/user/index' | |||||
}); | |||||
} else { | } else { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: res.data.msg, | title: res.data.msg, | ||||
@@ -26,6 +26,7 @@ Page({ | |||||
wmbarginicon: imgurl.wmbarginicon.url, | wmbarginicon: imgurl.wmbarginicon.url, | ||||
wmspellgroup: imgurl.wmspellgroup.url, | wmspellgroup: imgurl.wmspellgroup.url, | ||||
canIUse: wx.canIUse('official-account'), | canIUse: wx.canIUse('official-account'), | ||||
mineFlag:"", | |||||
flag: 'hidden', | flag: 'hidden', | ||||
score: '0', | score: '0', | ||||
name: "", | name: "", | ||||
@@ -41,6 +42,18 @@ Page({ | |||||
showmemberqrcode: false, | showmemberqrcode: false, | ||||
placeholder: '' | placeholder: '' | ||||
}, | }, | ||||
checkUserStatus() { | |||||
let that = this; | |||||
Http.get({ | |||||
url: config.api.checkPhoneStatus, | |||||
data: {} | |||||
}).then(res => { | |||||
}).catch(err => { | |||||
wx.navigateTo({ | |||||
url: `/pages/getphoneInfo/index?mineFlag=mine`, | |||||
}) | |||||
}) | |||||
}, | |||||
/** | /** | ||||
* 跳转到成长值的页面 | * 跳转到成长值的页面 | ||||
*/ | */ | ||||
@@ -119,6 +132,7 @@ Page({ | |||||
*/ | */ | ||||
onShow: function() { | onShow: function() { | ||||
let that = this; | let that = this; | ||||
that.checkUserStatus(); | |||||
that.setData({ | that.setData({ | ||||
appVersion: extConfig.appVersion, | appVersion: extConfig.appVersion, | ||||
}) | }) | ||||