门店首页判断是否重置才能走其他接口
This commit is contained in:
+25
-10
@@ -49,6 +49,7 @@ Page({
|
||||
remindMsg:[],//调拨盘点弹框
|
||||
levelStIndex:0,
|
||||
levelSt:[],//客户等级
|
||||
isResetbiz:false,//是否重置过BIZID
|
||||
isShowVersionInfo:false,//是否显示版本更新
|
||||
versionInfo:{
|
||||
number:'V3.0.28',
|
||||
@@ -78,6 +79,9 @@ Page({
|
||||
if(this.data.biz_id){
|
||||
this.putAppUserResetbiz()
|
||||
}else{
|
||||
this.setData({
|
||||
isResetbiz:true,
|
||||
});
|
||||
this.getUserInfo()
|
||||
}
|
||||
|
||||
@@ -101,17 +105,22 @@ Page({
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
this.setData({
|
||||
remindTab:[],
|
||||
remindMsg:[],
|
||||
isShowReport:false,//是否显示调拨盘点弹框
|
||||
isShowGoods:false,
|
||||
});
|
||||
this.getAppUserCal()
|
||||
|
||||
this.getHoursTip()
|
||||
this.getAppTransferRemind()
|
||||
this.getAppInventoryRemind()
|
||||
this.getAppGoodsRemind()
|
||||
|
||||
//确保bizID重置完成再执行
|
||||
if(this.data.isResetbiz){
|
||||
this.setData({
|
||||
remindTab:[],
|
||||
remindMsg:[],
|
||||
isShowReport:false,//是否显示调拨盘点弹框
|
||||
isShowGoods:false,
|
||||
});
|
||||
this.getAppUserCal()
|
||||
this.getAppTransferRemind()
|
||||
this.getAppInventoryRemind()
|
||||
this.getAppGoodsRemind()
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@@ -143,8 +152,14 @@ Page({
|
||||
let params = {};
|
||||
params['biz_id'] = this.data.biz_id;
|
||||
_.apiQuery.putAppUserResetbiz(params).then(res => {
|
||||
this.setData({
|
||||
isResetbiz:true,
|
||||
});
|
||||
this.getUserInfo()
|
||||
this.getAppUserCal()
|
||||
this.getAppTransferRemind()
|
||||
this.getAppInventoryRemind()
|
||||
this.getAppGoodsRemind()
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view style="height:200rpx;">
|
||||
<view class="relative pt30 pb30 pl110 pr10">
|
||||
<image class='absolute left-0 box-middle mr10 img-90x90 ulib-r750 overflowhidden' mode="aspectFill" src="{{userInfo.headimg||imgUrl+'common/default-head.jpg'}}" lazy-load="{{true}}"></image>
|
||||
<view class="absolute top-0 bottom-0 left-0 right-0 opacity-0 mt20 mr150 z-index-4">
|
||||
<view class="absolute top-0 bottom-0 left-0 right-0 opacity-0 mt20 mr150 z-index-4" wx:if="{{isResetbiz}}">
|
||||
<lcb-auth type="userinfo" isShowProfile="{{isShowProfile}}" bind:onSuccess="getUserInfo"></lcb-auth>
|
||||
</view>
|
||||
<view>
|
||||
|
||||
Reference in New Issue
Block a user