修改线索解锁弹窗逻辑
This commit is contained in:
+15
-6
@@ -105,7 +105,8 @@ Page({
|
||||
modelIndex: -1, //车系车型索引
|
||||
isShowLock: false,
|
||||
cluesTabKey: 1000, //线索tabkey
|
||||
cluesId: 0 //当前操作线索id
|
||||
cluesId: 0, //当前操作线索id
|
||||
needShowUnlockConfig: true
|
||||
},
|
||||
onLoad(options) {
|
||||
for (let key in options) {
|
||||
@@ -135,7 +136,10 @@ Page({
|
||||
|
||||
//获取城市列表
|
||||
this.getAppCityArea_city()
|
||||
|
||||
this.setData({
|
||||
needShowUnlockConfig: app.getStorageByKey("needShowUnlockConfig") ? false : true,
|
||||
})
|
||||
console.log("是否显示解锁弹窗:",this.data.needShowUnlockConfig);
|
||||
},
|
||||
|
||||
onShow() {
|
||||
@@ -1134,10 +1138,14 @@ Page({
|
||||
},
|
||||
//显示解锁
|
||||
showUnlock(e) {
|
||||
this.setData({
|
||||
isShowLock: true,
|
||||
cluesId: e.currentTarget.dataset.id
|
||||
})
|
||||
if(this.data.needShowUnlockConfig){
|
||||
this.setData({
|
||||
isShowLock: true,
|
||||
cluesId: e.currentTarget.dataset.id
|
||||
})
|
||||
}else{
|
||||
this.bindLock();
|
||||
}
|
||||
},
|
||||
hideLock() {
|
||||
this.setData({
|
||||
@@ -1156,6 +1164,7 @@ Page({
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
app.setStorage("needShowUnlockConfig", 1);
|
||||
that.hideLock();
|
||||
that.onPullDownRefresh();
|
||||
})
|
||||
|
||||
@@ -89,8 +89,9 @@ Page({
|
||||
id: 2,
|
||||
name: '门店'
|
||||
}],
|
||||
score_role_cur: 0
|
||||
score_role_cur: 0,
|
||||
//0924 end
|
||||
biz_type_4s: 5 //门店类型4s店
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
</view>
|
||||
|
||||
<!--订单跟进 -->
|
||||
<view class="bg-fff mb30 box-shadow-000-10-10 ulib-r10">
|
||||
<view class="bg-fff mb30 box-shadow-000-10-10 ulib-r10" wx:if="{{userInfo.biz_type!=biz_type_4s}}">
|
||||
<view class="inner30 pb20">
|
||||
<view class="font-36">订单跟进</view>
|
||||
<view class="fn-flex fn-flex-wrap pt20">
|
||||
|
||||
Reference in New Issue
Block a user