This commit is contained in:
老叶
2021-09-18 14:13:40 +08:00
parent a98b96f03e
commit 96393b39f6
3 changed files with 11 additions and 16 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
<view class="font-22 color-fff">Hi~ {{hoursTip}}欢迎回到狸车宝!</view>
<view>
<text class="text-middle text-bold font-48 color-fff">{{userInfo.uname}}</text>
<text class="inline-block ml10 pl10 pr10 bg-fff text-middle font-18 ulib-r750">{{userInfo.biz_name}}</text>
<!-- <text class="inline-block ml10 pl10 pr10 bg-fff text-middle font-18 ulib-r750">{{userInfo.biz_name}}</text> -->
</view>
</view>
</view>
+3 -1
View File
@@ -50,6 +50,8 @@ Page({
if(this.data.biz_id){
this.putAppUserResetbiz()
}else{
this.getUserInfo()
}
if(app.getStorageByKey("stopNotice")){
@@ -58,7 +60,6 @@ Page({
})
}
this.getUserInfo()
this.getAppStatisticsHcust()
this.getAppStatisticsHorder()
@@ -90,6 +91,7 @@ Page({
let params = {};
params['biz_id'] = this.data.biz_id;
_.apiQuery.putAppUserResetbiz(params).then(res => {
this.getUserInfo()
this.getAppUserCal()
});
},
+7 -14
View File
@@ -105,24 +105,17 @@ Page({
params['code'] =resc.code;
params['sms_code'] = this.data.sms_code;
_.apiQuery.getUserUkey(params).then(res => {
console.log('111111111111')
console.log(res)
wx.setStorage({
key: "ukey",
data: res.data.ukey
})
let pages = getCurrentPages();
if (pages.length > 1) {
wx.navigateBack();
}else{
_.apiQuery.getUserInfo().then(res => {
if(res.group_id==4){
_.$router.openUrlScheme('/pages/channel/index')
}else{
_.$router.openUrlScheme('/pages/index/index')
}
});
}
_.apiQuery.getUserInfo().then(res => {
if(res.group_id==4){
_.$router.openUrlScheme('/pages/channel/index')
}else{
_.$router.openUrlScheme('/pages/index/index')
}
});
});
}