医生端弹框修改
This commit is contained in:
parent
53738fe428
commit
9ad154f86b
@ -6,15 +6,33 @@ Page({
|
|||||||
data: {
|
data: {
|
||||||
loading: true,
|
loading: true,
|
||||||
showEntryTip:false,
|
showEntryTip:false,
|
||||||
|
showEntryTip_second:false,
|
||||||
static_host: api.getStaticHost()
|
static_host: api.getStaticHost()
|
||||||
},
|
},
|
||||||
onConfirmEntry(){
|
onConfirmEntry(){
|
||||||
wx.setStorageSync('hasEntry', true);
|
wx.setStorageSync('hasEntry', true);
|
||||||
},
|
},
|
||||||
onCloseEntry(){
|
onCloseEntry(){
|
||||||
wx.setStorageSync('hasEntry', true);
|
this.setData({
|
||||||
wx.exitMiniProgram({success: (res) => {}})
|
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){
|
go(e){
|
||||||
let url = e.currentTarget.dataset.url;
|
let url = e.currentTarget.dataset.url;
|
||||||
app.go(url);
|
app.go(url);
|
||||||
|
|||||||
@ -45,4 +45,16 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</van-dialog>
|
</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({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
showEntryTip:false,
|
showEntryTip:false,
|
||||||
|
showEntryTip_second:false,
|
||||||
navbarData: {
|
navbarData: {
|
||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '登录', //导航栏 中间的标题
|
title: '登录', //导航栏 中间的标题
|
||||||
@ -22,7 +23,7 @@ Page({
|
|||||||
let isEntry=wx.getStorageSync('hasEntry');
|
let isEntry=wx.getStorageSync('hasEntry');
|
||||||
if(!isEntry){
|
if(!isEntry){
|
||||||
this.setData({
|
this.setData({
|
||||||
showEntryTip:true
|
showEntryTip:true,
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -41,13 +42,27 @@ Page({
|
|||||||
_navback() {
|
_navback() {
|
||||||
wx.navigateBack()
|
wx.navigateBack()
|
||||||
},
|
},
|
||||||
onConfirmEntry(){
|
|
||||||
wx.setStorageSync('hasEntry', true);
|
|
||||||
},
|
|
||||||
onCloseEntry(){
|
onCloseEntry(){
|
||||||
wx.setStorageSync('hasEntry', true);
|
this.setData({
|
||||||
wx.exitMiniProgram({success: (res) => {}})
|
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){
|
go(e){
|
||||||
let url = e.currentTarget.dataset.url;
|
let url = e.currentTarget.dataset.url;
|
||||||
app.go(url);
|
app.go(url);
|
||||||
|
|||||||
@ -56,4 +56,16 @@
|
|||||||
<view>如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。</view>
|
<view>如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。</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>
|
</van-dialog>
|
||||||
Loading…
x
Reference in New Issue
Block a user