|
@@ -2,7 +2,7 @@
|
|
|
<view>
|
|
|
<view class="welcome">
|
|
|
<view class="welcome-state1">
|
|
|
- <view class="welcome-next">跳过</view>
|
|
|
+ <view class="welcome-next" @click="gotoIndex()">跳过</view>
|
|
|
<view class="welcome-foot">
|
|
|
<u-image width="185px" height="48px" src="../../static/img/logo.png"></u-image>
|
|
|
</view>
|
|
@@ -28,17 +28,7 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- gotoMain(k){
|
|
|
- if(k){
|
|
|
- uni.navigateTo({
|
|
|
- url:"/pagesA/pages/login/index"
|
|
|
- })
|
|
|
- }else{
|
|
|
- uni.switchTab({
|
|
|
- url: '/pages/index/index'
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
+
|
|
|
findByOpenId(){
|
|
|
var openId=this.carhelp.getOpenId()
|
|
|
if(openId==""){
|
|
@@ -60,30 +50,26 @@
|
|
|
}
|
|
|
}).then((response) => {
|
|
|
let [error, res] = response;
|
|
|
-
|
|
|
+
|
|
|
//var backImg="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
|
|
|
this.carhelp.setConfig(res.data.data.configure)
|
|
|
this.setBackImg()
|
|
|
|
|
|
if (res.data.code == 200&&res.data.result) {
|
|
|
var token = res ? res.data.data.token : '';
|
|
|
- this.carhelp.setPersonInfo(res.data.data.memberInfo );
|
|
|
+ this.carhelp.setPersonInfo(res.data.data.regUser );
|
|
|
this.carhelp.setToken(token);
|
|
|
this.carhelp.setPersonInfoPlus(res.data.data);
|
|
|
|
|
|
- setTimeout(()=>{
|
|
|
- uni.switchTab({
|
|
|
- url: '/pages/index/index'
|
|
|
- });
|
|
|
- },1000)
|
|
|
+
|
|
|
|
|
|
} else{
|
|
|
this.carhelp.logoff()
|
|
|
- this.bottonShow=true
|
|
|
+
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
this.carhelp.logoff()
|
|
|
- this.bottonShow=true
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
setBackImg(){
|
|
@@ -91,7 +77,12 @@
|
|
|
if(img){
|
|
|
this.customStyle0="background:url("+img+") no-repeat;background-size: 100%;"
|
|
|
}
|
|
|
+ },gotoIndex(){
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pages/index/index'
|
|
|
+ });
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
onLoad() {
|
|
|
|
|
@@ -99,7 +90,9 @@
|
|
|
|
|
|
},
|
|
|
onReady() {
|
|
|
-
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.gotoIndex()
|
|
|
+ },3000)
|
|
|
this.findByOpenId()
|
|
|
}
|
|
|
}
|