[体验官活动]

This commit is contained in:
2023-07-12 17:56:36 +08:00
parent f870682e25
commit a9588815b8
29 changed files with 1599 additions and 217 deletions

View File

@@ -5,8 +5,6 @@
Page({
data: {
payCode : '', // code获取openid
openId : '', // openid
userLogin : false, // 是否登录
testTitle : '', // 检测文字
disabled : false, // 支付按钮
@@ -21,16 +19,6 @@ Page({
},
onShow() {
wx.login({
success: res => {
this.setData({
payCode: res.code
})
// 获取openid
this.openInfo()
}
})
// 获取登录状态
if(wx.getStorageSync("token") != ''){
this.setData({
@@ -46,17 +34,6 @@ Page({
})
},
/**
* openid
*/
openInfo() {
wx.$api.auth.codeOpenid({code: this.data.payCode}).then(res => {
this.setData({
openId: res.data
})
}).catch(err => {})
},
/**
* 是否可检测
*/