This commit is contained in:
2025-12-20 08:34:16 +08:00
commit 9d4fdc7242
872 changed files with 3536 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/wx-privacy-popup/privacy-popup"],{"0052":function(t,e,i){},"0c76":function(t,e,i){"use strict";i.r(e);var o=i("fef7"),n=i.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(c);e["default"]=n.a},"180c":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},n=[]},"4a09":function(t,e,i){"use strict";i.r(e);var o=i("180c"),n=i("0c76");for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);i("f573");var a=i("828b"),r=Object(a["a"])(n["default"],o["b"],o["c"],!1,null,"2e10602c",null,!1,o["a"],void 0);e["default"]=r.exports},f573:function(t,e,i){"use strict";var o=i("0052"),n=i.n(o);n.a},fef7:function(t,e,i){"use strict";(function(t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{agree:!1,showPop:!1,privacyAuthorization:null,privacyResolves:new Set,closeOtherPagePopUpHooks:new Set,privacyContractName:"用户隐私保护指引"}},mounted:function(){this.init(),this.curPageShow()},created:function(){var e=this;try{t.getPrivacySetting({success:function(t){e.privacyContractName=t.privacyContractName}})}catch(i){}},methods:{init:function(){var e=this;t.onNeedPrivacyAuthorization&&t.onNeedPrivacyAuthorization((function(t){"function"===typeof e.privacyAuthorization&&e.privacyAuthorization(t)}))},proactive:function(){var e=this,i=this;t.getPrivacySetting?t.getPrivacySetting({success:function(t){t.needAuthorization?(i.popUp(),e.closeOtherPagePopUp(e.disPopUp)):e.$emit("agree")}}):this.$emit("agree")},curPageShow:function(){var t=this;this.privacyAuthorization=function(e){t.privacyResolves.add(e),t.popUp(),t.closeOtherPagePopUp(t.disPopUp)},this.closeOtherPagePopUpHooks.add(this.disPopUp)},closeOtherPagePopUp:function(t){this.closeOtherPagePopUpHooks.forEach((function(e){t!==e&&e()}))},openPrivacyContract:function(){t.openPrivacyContract({success:function(t){},fail:function(t){}})},handleDisagree:function(){var t=this;this.privacyResolves.forEach((function(t){t({event:"disagree"})})),this.privacyResolves.clear(),this.disPopUp(),i.showModal({content:"未同意隐私协议,无法使用相关功能",success:function(){t.$emit("disagree")}})},handleAgree:function(){this.privacyResolves.forEach((function(t){t({event:"agree",buttonId:"agree-btn"})})),this.privacyResolves.clear(),this.disPopUp(),this.$emit("agree")},popUp:function(){!1===this.showPop&&(this.showPop=!0)},disPopUp:function(){!0===this.showPop&&(this.showPop=!1)}}};e.default=o}).call(this,i("3223")["default"],i("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/wx-privacy-popup/privacy-popup-create-component',
{
'components/wx-privacy-popup/privacy-popup-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("4a09"))
})
},
[['components/wx-privacy-popup/privacy-popup-create-component']]
]);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,2 @@
<block wx:if="{{showPop}}"><view class="data-v-2e10602c"><view class="privacy-mask data-v-2e10602c"><view class="privacy-wrap data-v-2e10602c"><view class="privacy-title data-v-2e10602c">用户隐私保护提示</view><view class="privacy-desc data-v-2e10602c">感谢您使用本小程序,在使用前您应当阅读并同意<text data-event-opts="{{[['tap',[['openPrivacyContract',['$event']]]]]}}" class="privacy-link data-v-2e10602c" bindtap="__e">{{privacyContractName}}</text>
当点击同意并继续时,即表示您已理解并同意该条款内容,该条款将对您产生法律约束力;如您不同意,将无法继续使用小程序相关功能。</view><view class="privacy-button-flex data-v-2e10602c"><button data-event-opts="{{[['tap',[['handleDisagree',['$event']]]]]}}" class="privacy-button-btn bg-disagree data-v-2e10602c" bindtap="__e">不同意</button><button class="privacy-button-btn bg-agree data-v-2e10602c" id="agree-btn" open-type="agreePrivacyAuthorization" data-event-opts="{{[['agreeprivacyauthorization',[['handleAgree',['$event']]]]]}}" bindagreeprivacyauthorization="__e">同意并继续</button></view></view></view></view></block>

View File

@@ -0,0 +1 @@
.privacy-mask.data-v-2e10602c{position:fixed;z-index:5000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center}.privacy-wrap.data-v-2e10602c{width:632rpx;padding:48rpx 30rpx;box-sizing:border-box;background:#fff;border-radius:16rpx}.privacy-title.data-v-2e10602c{padding:0rpx 30rpx 40rpx 30rpx;font-weight:700;font-size:36rpx;text-align:center}.privacy-desc.data-v-2e10602c{font-size:30rpx;color:#555;line-height:2;text-align:left;padding:0 40rpx}.privacy-link.data-v-2e10602c{color:#2f80ed}.privacy-button-flex.data-v-2e10602c{display:flex;padding:20rpx 40rpx}.privacy-button-btn.data-v-2e10602c{color:#fff;font-size:30rpx;font-weight:500;line-height:100rpx;text-align:center;height:100rpx;border-radius:20rpx;border:none;background:#07c160;flex:1;margin-right:30rpx;justify-content:center}.privacy-button-btn.data-v-2e10602c::after{border:none}.bg-disagree.data-v-2e10602c{color:#07c160;background:#f2f2f2}.bg-agree.data-v-2e10602c{margin-right:0rpx}