医生端弹框修改
This commit is contained in:
parent
53738fe428
commit
9ad154f86b
@ -6,13 +6,31 @@ Page({
|
||||
data: {
|
||||
loading: true,
|
||||
showEntryTip:false,
|
||||
showEntryTip_second:false,
|
||||
static_host: api.getStaticHost()
|
||||
},
|
||||
onConfirmEntry(){
|
||||
wx.setStorageSync('hasEntry', true);
|
||||
},
|
||||
onCloseEntry(){
|
||||
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){
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
@ -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,11 +42,25 @@ Page({
|
||||
_navback() {
|
||||
wx.navigateBack()
|
||||
},
|
||||
onConfirmEntry(){
|
||||
wx.setStorageSync('hasEntry', true);
|
||||
},
|
||||
onCloseEntry(){
|
||||
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){
|
||||
|
||||
@ -57,3 +57,15 @@
|
||||
</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>
|
||||
Loading…
x
Reference in New Issue
Block a user