医生端弹框修改

This commit is contained in:
zoujiandong
2023-09-06 14:03:55 +08:00
parent 53738fe428
commit 9ad154f86b
4 changed files with 65 additions and 8 deletions
+20 -2
View File
@@ -6,15 +6,33 @@ Page({
data: {
loading: true,
showEntryTip:false,
showEntryTip_second:false,
static_host: api.getStaticHost()
},
onConfirmEntry(){
wx.setStorageSync('hasEntry', true);
},
onCloseEntry(){
wx.setStorageSync('hasEntry', true);
wx.exitMiniProgram({success: (res) => {}})
this.setData({
showEntryTip_second:true
})
},
onConfirmEntry_second(){
this.setData({
showEntryTip_second:false,
showEntryTip:false,
});
wx.setStorageSync('hasEntry', true);
},
onCloseEntry_second(){
this.setData({
showEntryTip_second:false,
showEntryTip:false,
});
wx.exitMiniProgram({success: (res) => {}})
},
go(e){
let url = e.currentTarget.dataset.url;
app.go(url);
+12
View File
@@ -45,4 +45,16 @@
</view>
</van-dialog>
<van-dialog
title="温馨提示"
show="{{ showEntryTip_second }}"
message="很抱歉,如您不同意《隐私协议》,可能无法继续正常使用我们的服务,请您先同意哦~"
show-cancel-button
confirm-button-text="好的"
cancel-button-text="不同意"
confirm-button-color="#3CC7C0"
bind:confirm="onConfirmEntry_second"
bind:cancel="onCloseEntry_second"
>
</van-dialog>