医生端弹框修改
This commit is contained in:
+20
-2
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user