diff --git a/Pages/index/index.js b/Pages/index/index.js index e79b0df..fe00a7c 100644 --- a/Pages/index/index.js +++ b/Pages/index/index.js @@ -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){ diff --git a/Pages/index/index.json b/Pages/index/index.json index 6ffda42..40f6b9e 100644 --- a/Pages/index/index.json +++ b/Pages/index/index.json @@ -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" } } \ No newline at end of file diff --git a/Pages/index/index.wxml b/Pages/index/index.wxml index 40cfe2f..e3e0d46 100644 --- a/Pages/index/index.wxml +++ b/Pages/index/index.wxml @@ -28,4 +28,21 @@ + + + 亲爱的用户,感谢您信任并使用肝胆相照互联网医院医师端!我们依据最新法律法规的要求,制定了《隐私协议》。请您仔细阅《隐私协议》,并确认了解我们对您的个人信息处理原则。 +如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。 + + + diff --git a/Pages/index/index.wxss b/Pages/index/index.wxss index a665326..44d680b 100644 --- a/Pages/index/index.wxss +++ b/Pages/index/index.wxss @@ -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 +} \ No newline at end of file diff --git a/Pages/login/index.js b/Pages/login/index.js index bb3c5ed..9008005 100644 --- a/Pages/login/index.js +++ b/Pages/login/index.js @@ -4,6 +4,7 @@ const api = new API() const app = getApp() Page({ data: { + showEntryTip:false, navbarData: { showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 title: '登录', //导航栏 中间的标题 @@ -17,7 +18,14 @@ Page({ wx.navigateTo({ url: "/Pages/index/index" }) - } + }; + let isEntry=wx.getStorageSync('hasEntry'); + if(!isEntry){ + this.setData({ + showEntryTip:true + }); + + } }, onChange(event) { this.setData({ @@ -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); diff --git a/Pages/login/index.json b/Pages/login/index.json index be41440..41e6df9 100644 --- a/Pages/login/index.json +++ b/Pages/login/index.json @@ -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" } } \ No newline at end of file diff --git a/Pages/login/index.wxml b/Pages/login/index.wxml index 6c59b17..e462411 100644 --- a/Pages/login/index.wxml +++ b/Pages/login/index.wxml @@ -39,4 +39,21 @@ 输入手机号登录/注册 - \ No newline at end of file + + + + 亲爱的用户,感谢您信任并使用肝胆相照互联网医院医师端!我们依据最新法律法规的要求,制定了《隐私协议》。请您仔细阅《隐私协议》,并确认了解我们对您的个人信息处理原则。 +如您同意《隐私协议》,请点击“同意”开始使用我们的产品和服务。 + + + \ No newline at end of file diff --git a/Pages/login/index.wxss b/Pages/login/index.wxss index c8166dc..326efc0 100644 --- a/Pages/login/index.wxss +++ b/Pages/login/index.wxss @@ -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 +}