This commit is contained in:
zhangmanman
2021-07-07 10:47:38 +08:00
parent fc77594016
commit c29fc7b5cb
12 changed files with 56 additions and 48 deletions

View File

@@ -25,7 +25,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad (options) {
console.log(options)
// 登录方式-活动
this.setData({
way : options.way
@@ -121,10 +120,10 @@ Page({
* 点击账号登录
*/
loginGo(e) {
let username = e.currentTarget.dataset.name,
wechatUser_id = app.globalData.wechatUser
let username = e.currentTarget.dataset.name
const wechatUserId = wx.getStorageSync("wechatUser")
wx.$api.enroll.tel(wechatUser_id, username).then(res=>{
wx.$api.enroll.tel(wechatUserId, username).then(res=>{
app.globalData.token = res.data.token
app.globalData.isUser = true