代码拉取完成,页面将自动刷新
App({
onLaunch: function (options) {
// 登录
var that = this
wx.login({
success: res => {
if (res.code) {
wx.request({
url: that.globalData.url + 'accs/login',
method: 'POST',
data: {
gh_id: 'gh_39363a133f32',
code: res.code,
},
success: function (res) {
that.globalData.openId = res.data.msg
that.globalData.userId = res.data.data
}
})
} else {
console.log('登录失败' + res.errMsg)
}
}
})
},
onShow: function (options) {
this.globalData.referrerInfo = options.referrerInfo
},
globalData: {
version: '1.2.0',
gcwType: 'ssjqgcw',
referrerInfo: null,
userId: 0,
openId: null,
url: 'https://xcx.nanxuncn.com/api/gcw/second/',
imageUrl: 'https://xcx.nanxuncn.com',
globalFormIds: null
}
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。