优化
This commit is contained in:
+32
-12
@@ -98,7 +98,8 @@ Page({
|
||||
confirmBtn: {
|
||||
"openType": "contact",
|
||||
"content": "确认",
|
||||
}
|
||||
},
|
||||
overlay_show: false
|
||||
},
|
||||
// 获取状态栏信息
|
||||
getMenuButtonBound() {
|
||||
@@ -137,13 +138,27 @@ Page({
|
||||
},
|
||||
confirmJieSuanDialog(){
|
||||
this.setData({
|
||||
jiesuan_dialog_visible: false
|
||||
jiesuan_dialog_visible: false,
|
||||
})
|
||||
const overlay_show = wx.getStorageSync('overlay_show')
|
||||
if(!overlay_show){
|
||||
this.setData({
|
||||
overlay_show: true
|
||||
})
|
||||
wx.setStorageSync('overlay_show', "1")
|
||||
}
|
||||
},
|
||||
cancelJieSuanDialog(){
|
||||
this.setData({
|
||||
jiesuan_dialog_visible: false
|
||||
jiesuan_dialog_visible: false,
|
||||
})
|
||||
const overlay_show = wx.getStorageSync('overlay_show')
|
||||
if(!overlay_show){
|
||||
this.setData({
|
||||
overlay_show: true
|
||||
})
|
||||
wx.setStorageSync('overlay_show', "1")
|
||||
}
|
||||
},
|
||||
confirmContactDialog(){
|
||||
this.setData({
|
||||
@@ -192,7 +207,7 @@ Page({
|
||||
shiming_status_url: "",
|
||||
iden_auth_status_url: "/Pages/yishi/identity/index",
|
||||
multi_point_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
skeleton_loading: true
|
||||
skeleton_loading: false
|
||||
})
|
||||
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
|
||||
|
||||
@@ -464,15 +479,15 @@ Page({
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "绑定结算银行卡",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/bankcard/index",
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "绑定结算银行卡",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/bankcard/index",
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -641,5 +656,10 @@ Page({
|
||||
})
|
||||
|
||||
return retult;
|
||||
},
|
||||
onClickHideOverlay(){
|
||||
this.setData({
|
||||
overlay_show: false
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -7,7 +7,8 @@
|
||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog",
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"t-skeleton": "tdesign-miniprogram/skeleton/skeleton"
|
||||
"t-skeleton": "tdesign-miniprogram/skeleton/skeleton",
|
||||
"van-overlay": "@vant/weapp/overlay/index"
|
||||
},
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundTextStyle":"dark"
|
||||
|
||||
@@ -222,6 +222,17 @@
|
||||
confirm-button-color="#3CC7C0"
|
||||
confirm-button-open-type="contact"
|
||||
/> -->
|
||||
|
||||
<van-overlay show="{{ overlay_show }}" z-index="999999999999">
|
||||
<van-image class="overlay_show"
|
||||
fit="widthFix"
|
||||
style="position: absolute; padding-top: {{stateHeight + navHeight}}px;"
|
||||
width="100vw"
|
||||
src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/collection.png"
|
||||
/>
|
||||
<van-button color="rgba(0, 0, 0, .1)" style="position: fixed;bottom: 50rpx;left: 50%;transform: translateX(-50%);width: 90vw;border: 1px solid #fff;border-radius: 50px;" block round bind:click="onClickHideOverlay">我知道了</van-button>
|
||||
</van-overlay>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user