样式修改
This commit is contained in:
@@ -87,6 +87,10 @@ Page({
|
||||
},
|
||||
// 微信登录
|
||||
wxLogin(){
|
||||
wx.showToast({
|
||||
title: '登录中...',
|
||||
icon: 'loading'
|
||||
})
|
||||
const that = this
|
||||
wxBind((res)=>{
|
||||
let params = {
|
||||
@@ -144,11 +148,8 @@ Page({
|
||||
key: 'X-Access-Token',
|
||||
data: res.result.token
|
||||
})
|
||||
// 如果绑定过微信就不再进行绑定
|
||||
if(!res.result.userInfo.openId){
|
||||
// 绑定微信
|
||||
this.wxBindPhone()
|
||||
}
|
||||
// 绑定微信
|
||||
this.wxBindPhone()
|
||||
// 跳转首页
|
||||
wx.switchTab({
|
||||
url: '../home/home',
|
||||
|
||||
Reference in New Issue
Block a user