医生端弹框修改

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

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);

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>

View File

@ -5,6 +5,7 @@ const app = getApp()
Page({
data: {
showEntryTip:false,
showEntryTip_second:false,
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '登录', //导航栏 中间的标题
@ -22,7 +23,7 @@ Page({
let isEntry=wx.getStorageSync('hasEntry');
if(!isEntry){
this.setData({
showEntryTip:true
showEntryTip:true,
});
}
@ -41,13 +42,27 @@ Page({
_navback() {
wx.navigateBack()
},
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);

View File

@ -56,4 +56,16 @@
<view>如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。</view>
</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>