Commit affc0b6a235986f904fc96260b0cbf5d5fd16519
1 parent
047ef2c4
隐私政策的优化
Showing
7 changed files
with
31 additions
and
6 deletions
components/privacy_pop/privacy_pop.js
packageE/pages/togoin/togoin.js
| ... | ... | @@ -26,6 +26,12 @@ Page({ |
| 26 | 26 | this.data.is_reg=1; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + //-- 看一下隐私政策要不要显示 -- | |
| 30 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | |
| 31 | + if (privacy_pop) { | |
| 32 | + privacy_pop.check_pri_show(); | |
| 33 | + } | |
| 34 | + | |
| 29 | 35 | //--判断是否有接受到邀请人的ID-- |
| 30 | 36 | if (options.first_leader) { |
| 31 | 37 | this.setData({ first_leader: options.first_leader }); |
| ... | ... | @@ -38,6 +44,7 @@ Page({ |
| 38 | 44 | th.setData({ store: e, store_logo: logo }); |
| 39 | 45 | }) |
| 40 | 46 | |
| 47 | + | |
| 41 | 48 | //判断注册的条件 |
| 42 | 49 | app.getConfig2(function (e) { |
| 43 | 50 | if (e.reg_type == 1) { |
| ... | ... | @@ -490,7 +497,12 @@ Page({ |
| 490 | 497 | }); |
| 491 | 498 | }, |
| 492 | 499 | |
| 493 | - | |
| 500 | + //弹出框的同意的优化 | |
| 501 | + agree_pri:function (){ | |
| 502 | + this.setData({ | |
| 503 | + isAgree:1, | |
| 504 | + }); | |
| 505 | + }, | |
| 494 | 506 | //通过路径跳转到其他页面 |
| 495 | 507 | goto: function (e) { |
| 496 | 508 | console.log('xxxx', e); | ... | ... |
packageE/pages/togoin/togoin.json
packageE/pages/togoin/togoin.wxml
| 1 | -<view> | |
| 1 | +<!-- 判断隐私是不是显示 --> | |
| 2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | |
| 2 | 3 | |
| 4 | +<view> | |
| 3 | 5 | <!-- 登录图 --> |
| 4 | 6 | <view > |
| 5 | 7 | <view class="logins flex-center2 ali-c flex" style="padding-top: 120rpx;"> |
| ... | ... | @@ -17,7 +19,7 @@ |
| 17 | 19 | |
| 18 | 20 | <view bindtap="" class="user-name flex-vertical fs24 jc-center"> |
| 19 | 21 | <checkbox-group bindchange="isAgree"> |
| 20 | - <checkbox value="true"> | |
| 22 | + <checkbox checked="{{isAgree}}" value="true"> | |
| 21 | 23 | <label for="true"> |
| 22 | 24 | <view class="user-name-txt">我已阅读同意 <text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view> |
| 23 | 25 | </label> |
| ... | ... | @@ -64,7 +66,6 @@ |
| 64 | 66 | |
| 65 | 67 | </view> |
| 66 | 68 | |
| 67 | - | |
| 68 | 69 | <view wx:if="{{show_bind}}"> |
| 69 | 70 | <view class="cover-layer" bindtap="close_pop"></view> |
| 70 | 71 | <view class="p_content"> | ... | ... |
pages/user/index/index.js
| ... | ... | @@ -119,6 +119,12 @@ Page({ |
| 119 | 119 | |
| 120 | 120 | var _that=this; |
| 121 | 121 | |
| 122 | + //-- 看一下隐私政策要不要显示 -- | |
| 123 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | |
| 124 | + if (privacy_pop) { | |
| 125 | + privacy_pop.check_pri_show(); | |
| 126 | + } | |
| 127 | + | |
| 122 | 128 | getApp().check_can_share(); |
| 123 | 129 | //看一下小程序是不是过期了 |
| 124 | 130 | getApp().getConfig2(function (config2) { | ... | ... |
pages/user/index/index.json
| 1 | 1 | { |
| 2 | 2 | "usingComponents": { |
| 3 | 3 | "pop_txt": "/components/userqy_pop_up/userqy_pop_up", |
| 4 | - "goods_recommend": "/components/goods_list/goods_list" | |
| 4 | + "goods_recommend": "/components/goods_list/goods_list", | |
| 5 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | |
| 5 | 6 | }, |
| 6 | 7 | "navigationBarTitleText": "会员中心" |
| 7 | 8 | } |
| 8 | 9 | \ No newline at end of file | ... | ... |
pages/user/index/index.wxml