作者 lihongjuan

1

... ... @@ -191,6 +191,15 @@ image {
bottom: 0;
left: 0;
}
.middlewrap{
width:500rpx;
height:500rpx;
background: #fff;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%)
}
.loimg {
width: 48rpx;
... ...
... ... @@ -9,7 +9,9 @@ Page({
company_status:'',
nologin:'',
showcode:false,
codeurl:''
codeurl:'',
showpeople:false,
peopleshow:''
},
/**
... ... @@ -424,6 +426,23 @@ Page({
},
// 确定
sure(){
this.setData({
showpeople:false
})
wx.setStorageSync('peopleshow', 1)
},
cancel(){
wx.showToast({
title: '请点击右上角退出小程序',
icon:'none'
})
this.setData({
showpeople:false
})
},
/**
* 生命周期函数--监听页面初次渲染完成
... ... @@ -436,6 +455,19 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
// this.setData({
// peopleshow:wx.getStorageSync('peopleshow')
// })
if(wx.getStorageSync('peopleshow')==''){
this.setData({
showpeople:true
})
}else{
this.setData({
showpeople:false
})
}
let nologin=wx.getStorageSync("nologin");
if (nologin==''){
this.setData({
... ...
... ... @@ -8,7 +8,6 @@
<image src="/img/startbanner.png"></image>
</view>
</view>
<view class="startbox">
<view class="startitem" bindtap="back">
<view class="startitemtop">返静人员</view>
... ... @@ -88,4 +87,17 @@
<view class="closeimg" bindtap="closecode">
<image src="/img/closecode.png"></image>
</view>
</view>
<!-- 获取信息 -->
<view class="registerk" wx:if="{{showpeople}}">
<view class="toastwrap">
<view class="noticetext">
您是否同意“静海防疫”小程序收集您的个人信息?该信息仅用于政府部门防控疫情,确保您的隐私不会被泄露。
</view>
<view class="textbtn flextwo">
<view class="textbtnleft" bindtap="cancel">取消</view>
<view class="textbtnright" bindtap="sure">确定</view>
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -159,3 +159,48 @@ button::after {
font-size: 0;
margin: 80rpx auto 0;
}
.toastwrap{
width:586rpx;
height:318rpx;
border-radius:20rpx;
background: #fff;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
padding: 40rpx;
line-height: 1.5;
box-sizing: border-box;
color:#3D444D;
font-size: 30rpx;
}
.textbtn {
padding: 0 40rpx;
box-sizing: border-box;
position: fixed;
bottom:40rpx;
left:0;
width:100%;
}
.textbtnleft{
width:230rpx;
height:68rpx;
line-height: 68rpx;
text-align: center;
border-radius: 12rpx;
color:#1C8FFF;
font-size: 28rpx;
border:1rpx solid #1C8FFF;
}
.textbtnright{
width:230rpx;
height:68rpx;
line-height: 68rpx;
text-align: center;
border-radius: 12rpx;
color:#fff;
font-size: 28rpx;
background:#1C8FFF;
}
... ...