-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【v.3.4.5】用户隐私保护指引授权提示&我的借阅功能系统不可用提示优化
- Loading branch information
Showing
11 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,5 +95,6 @@ | |
"provider": "wx4418e3e031e551be" | ||
} | ||
}, | ||
"__usePrivacyCheck__": true, | ||
"sitemapLocation": "sitemap.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "shellbox", | ||
"version": "3.4.4", | ||
"description": "电费查询绑定功能接入支持1,2,37斋宿舍楼", | ||
"version": "3.4.5", | ||
"description": "用户隐私保护指引授权提示&我的借阅功能系统不可用提示优化", | ||
"author": "Airmole" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// pages/index/component/privacyPopup/privacyPopup.js | ||
Component({ | ||
options: { | ||
styleIsolation: 'shared' | ||
}, | ||
/** | ||
* 组件的属性列表 | ||
*/ | ||
properties: { | ||
|
||
}, | ||
|
||
/** | ||
* 组件的初始数据 | ||
*/ | ||
data: { | ||
innerShow: false, | ||
contractName: '《用户隐私保护指引》' | ||
}, | ||
lifetimes: { | ||
attached: function () { | ||
if (wx.getPrivacySetting) { | ||
wx.getPrivacySetting({ | ||
success: res => { | ||
console.log("是否需要授权:", res.needAuthorization, "隐私协议的名称为:", res.privacyContractName) | ||
this.setData({ contractName: res.privacyContractName }) | ||
if (res.needAuthorization) { | ||
this.popUp() | ||
} else { | ||
this.triggerEvent("agree") | ||
} | ||
}, | ||
fail: () => { }, | ||
complete: () => { }, | ||
}) | ||
} else { | ||
// 低版本基础库不支持 wx.getPrivacySetting 接口,隐私接口可以直接调用 | ||
this.triggerEvent("agree") | ||
} | ||
}, | ||
}, | ||
/** | ||
* 组件的方法列表 | ||
*/ | ||
methods: { | ||
handleDisagree(e) { | ||
this.triggerEvent("disagree") | ||
this.disPopUp() | ||
}, | ||
handleAgree(e) { | ||
this.triggerEvent("agree") | ||
this.disPopUp() | ||
}, | ||
popUp() { | ||
this.setData({ innerShow: true }) | ||
}, | ||
disPopUp() { | ||
this.setData({ innerShow: false }) | ||
}, | ||
openPrivacyContract() { | ||
wx.openPrivacyContract() | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"component": true, | ||
"usingComponents": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!--pages/index/component/privacyPopup/privacyPopup.wxml--> | ||
<view class="cu-modal bottom-modal {{innerShow?'show':''}}"> | ||
<view class="cu-dialog" catchtap> | ||
<view class="cu-bar bg-white"> | ||
<view class="action"></view> | ||
<view class="action text-black">用户隐私保护提示</view> | ||
<view class="action"></view> | ||
</view> | ||
<view class="padding-sm text-left"> | ||
<view class="padding"> | ||
<view class="margin-bottom-xs">首先,感谢您使用微信小程序《贝壳小盒子》,应微信团队官方《关于小程序隐私保护指引设置的公告》要求,在您使用本小程序之前请您务必授权同意本小程序相关的</view> | ||
<view bind:tap="openPrivacyContract" class="text-blue text-lg">{{contractName}}</view> | ||
<view class="margin-top-xs">当您点击同意并开始时用产品服务时,即表示你已理解并同息该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法正常使用本小程序部分功能,包括不限于:正常显示微信头像昵称,保存成绩分享图,添加上课日程到手机,参与运动榜单排行等功能。</view> | ||
<view class="flex justify-around padding-top"> | ||
<view class="margin-lr"><button bindtap="handleDisagree" class="cu-btn bg-red round lg">拒绝授权<text class="cuIcon-close"></text></button></view> | ||
<view class="margin-lr"><button open-type="agreePrivacyAuthorization" bindagreeprivacyauthorization="handleAgree" class="cu-btn bg-green round lg">同意授权<text class="cuIcon-check"></text></button></view> | ||
</view> | ||
</view> | ||
</view> | ||
</view> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters