|
|
|
@ -49,7 +49,7 @@
|
|
|
|
<div class="logon" @click="loginMobile" v-if="current !== 0">登录</div>
|
|
|
|
<div class="logon" @click="loginMobile" v-if="current !== 0">登录</div>
|
|
|
|
<div class="logon" @click="submit" v-if="current === 0">登录</div>
|
|
|
|
<div class="logon" @click="submit" v-if="current === 0">登录</div>
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
|
<div class="logon logon-wechat" v-if="current === 0" @click="mpGzhWechatLogin">微信登录</div>
|
|
|
|
<div class="logon logon-wechat" v-if="current === 0" @click="goWechatLogin">微信登录</div>
|
|
|
|
<!-- #endif -->
|
|
|
|
<!-- #endif -->
|
|
|
|
<div class="tips">
|
|
|
|
<div class="tips">
|
|
|
|
<!-- <div v-if="current==0" @click="current = 1">快速登录</div> -->
|
|
|
|
<!-- <div v-if="current==0" @click="current = 1">快速登录</div> -->
|
|
|
|
@ -470,6 +470,11 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
goWechatLogin() {
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
|
|
url: "/pages/users/wechat_login/index"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
getUserInfo(data){
|
|
|
|
getUserInfo(data){
|
|
|
|
this.$store.commit("SETUID", data.uid);
|
|
|
|
this.$store.commit("SETUID", data.uid);
|
|
|
|
getUserInfo().then(res => {
|
|
|
|
getUserInfo().then(res => {
|
|
|
|
@ -493,9 +498,13 @@
|
|
|
|
if (!backUrl.startsWith('/')) {
|
|
|
|
if (!backUrl.startsWith('/')) {
|
|
|
|
backUrl = '/' + backUrl;
|
|
|
|
backUrl = '/' + backUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// uni.reLaunch({
|
|
|
|
|
|
|
|
// url: backUrl
|
|
|
|
|
|
|
|
// });
|
|
|
|
uni.reLaunch({
|
|
|
|
uni.reLaunch({
|
|
|
|
url: backUrl
|
|
|
|
url: "/pages/index/index"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|