导游中台-游客端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

107 lines
1.9 KiB

<template>
<view class="bg">
</view>
</template>
<script>
export default {
data() {
return {
}
},
onLoad(option) {
console.log(option,this.$store.state.user,this.$store.state.user.toPath)
if(!option.code) {
this.gotoPath('/pages/index/index')
}else {
this.Post({code: option.code},'/api/wechat/oauth_callback').then(res => {
console.log(this.$store.state.user.toPath)
return;
if(res.code == 1) {
this.$store.commit('changeUserInfo', res.data)
if (this.$store.state.user.toPath.includes('user/user') || this.$store.state.user.toPath.includes('daoyou/index')) {
console.log(111,this.$store.state.user.toPath)
uni.switchTab({
url: this.$store.state.user.toPath
})
} else {
console.log(222)
uni.navigateBack({})
}
}
})
}
},
onShow() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.bg {
width: 100vw;
height: 100vh;
// background-image: url('https://static.ticket.sz-trip.com/tourGuide/images/login/bg.png');
background-size: 100% 100%;
padding-top: 428rpx;
}
.title-img {
display: block;
margin: auto;
width: 336.67rpx;
height: 54rpx;
}
.item {
width: 587rpx;
height: 80rpx;
background: #FFFFFF;
border-radius: 40rpx;
margin: 32rpx auto 0;
padding: 0 26rpx;
.icon {
width: 26.67rpx;
height: 26.67rpx;
margin-right: 12rpx;
}
input {
flex: 1;
font-weight: 500;
font-size: 25rpx;
color: #ABABAB;
}
.code-img {
width: 153rpx;
height: 55rpx;
margin-left: 10rpx;
}
.eye-img {
width: 26.67rpx;
height: 26.67rpx;
margin-left: 10rpx;
}
}
.btn {
width: 547rpx;
line-height: 80rpx;
background: #96684F;
border-radius: 40rpx;
margin: 100rpx auto 0;
font-weight: bold;
font-size: 35rpx;
color: #FFFFFF;
text-align: center;
}
</style>