增加协议弹窗
This commit is contained in:
parent
0d1af8ef0e
commit
53738fe428
@ -5,8 +5,20 @@ const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
loading: true,
|
||||
showEntryTip:false,
|
||||
static_host: api.getStaticHost()
|
||||
},
|
||||
onConfirmEntry(){
|
||||
wx.setStorageSync('hasEntry', true);
|
||||
},
|
||||
onCloseEntry(){
|
||||
wx.setStorageSync('hasEntry', true);
|
||||
wx.exitMiniProgram({success: (res) => {}})
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url);
|
||||
},
|
||||
onLoad(option){
|
||||
let from = option.from;
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
@ -29,6 +41,13 @@ Page({
|
||||
})
|
||||
}
|
||||
this.setData({ loading: false });
|
||||
let isEntry=wx.getStorageSync('hasEntry');
|
||||
if(!isEntry){
|
||||
this.setData({
|
||||
showEntryTip:true
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
goCheck(e){
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-image": "tdesign-miniprogram/image/image"
|
||||
"t-image": "tdesign-miniprogram/image/image",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
}
|
||||
}
|
||||
@ -28,4 +28,21 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="温馨提示"
|
||||
show="{{ showEntryTip }}"
|
||||
show-cancel-button
|
||||
confirm-button-text="同意并继续"
|
||||
cancel-button-text="不同意"
|
||||
confirm-button-color="#3CC7C0"
|
||||
bind:confirm="onConfirmEntry"
|
||||
bind:cancel="onCloseEntry"
|
||||
>
|
||||
<view class="entrymsg" >
|
||||
<view> 亲爱的用户,感谢您信任并使用肝胆相照互联网医院医师端!我们依据最新法律法规的要求,制定了<text class="navigator" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</text>。请您仔细阅《隐私协议》,并确认了解我们对您的个人信息处理原则。</view>
|
||||
<view>如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。</view>
|
||||
</view>
|
||||
|
||||
</van-dialog>
|
||||
|
||||
|
||||
@ -19,3 +19,15 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.entrymsg{
|
||||
-webkit-overflow-scrolling: touch;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
padding: 48rpx;
|
||||
text-align: left;
|
||||
}
|
||||
.navigator{
|
||||
color:#3CC7C0
|
||||
}
|
||||
@ -4,6 +4,7 @@ const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
showEntryTip:false,
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '登录', //导航栏 中间的标题
|
||||
@ -17,6 +18,13 @@ Page({
|
||||
wx.navigateTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
};
|
||||
let isEntry=wx.getStorageSync('hasEntry');
|
||||
if(!isEntry){
|
||||
this.setData({
|
||||
showEntryTip:true
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
onChange(event) {
|
||||
@ -33,6 +41,13 @@ Page({
|
||||
_navback() {
|
||||
wx.navigateBack()
|
||||
},
|
||||
onConfirmEntry(){
|
||||
wx.setStorageSync('hasEntry', true);
|
||||
},
|
||||
onCloseEntry(){
|
||||
wx.setStorageSync('hasEntry', true);
|
||||
wx.exitMiniProgram({success: (res) => {}})
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url);
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"van-checkbox": "@vant/weapp/checkbox/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index",
|
||||
"van-checkbox-group": "@vant/weapp/checkbox-group/index"
|
||||
}
|
||||
}
|
||||
@ -40,3 +40,20 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="温馨提示"
|
||||
show="{{ showEntryTip }}"
|
||||
show-cancel-button
|
||||
confirm-button-text="同意并继续"
|
||||
cancel-button-text="不同意"
|
||||
confirm-button-color="#3CC7C0"
|
||||
bind:confirm="onConfirmEntry"
|
||||
bind:cancel="onCloseEntry"
|
||||
>
|
||||
<view class="entrymsg" >
|
||||
<view> 亲爱的用户,感谢您信任并使用肝胆相照互联网医院医师端!我们依据最新法律法规的要求,制定了<text class="navigator" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</text>。请您仔细阅《隐私协议》,并确认了解我们对您的个人信息处理原则。</view>
|
||||
<view>如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。</view>
|
||||
</view>
|
||||
|
||||
</van-dialog>
|
||||
@ -78,4 +78,15 @@
|
||||
.van-checkbox {
|
||||
padding-top: 6rpx !important;
|
||||
}
|
||||
|
||||
.entrymsg{
|
||||
-webkit-overflow-scrolling: touch;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
padding: 48rpx;
|
||||
text-align: left;
|
||||
}
|
||||
.navigator{
|
||||
color:#3CC7C0
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user