[更新]
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user