Files
smartDriveEEUniApp/unpackage/dist/build/mp-weixin/pages-subpackage/uni-agree/uni-agree.js
2026-04-17 07:35:37 +08:00

2 lines
921 B
JavaScript

"use strict";const e=require("../../common/vendor.js"),o=require("../../uni-starter.config.js"),{about:n}=o.config,a={data:()=>({}),onLoad(){this._canBack=!1},onBackPress(){return!this._canBack},methods:{openprotocol(o){e.index.navigateTo({url:"/uni_modules/uni-id-pages/pages/common/webview/webview?url="+n.agreements[0].url})},openPrivacyPolicy(o){e.index.navigateTo({url:"/uni_modules/uni-id-pages/pages/common/webview/webview?url="+n.agreements[1].url})},agree(o){e.index.setStorageSync("userprotocol",1),this._canBack=!0,setTimeout((()=>{e.index.navigateBack({animationDuration:0})}),100)},disagree(){}}};const r=e._export_sfc(a,[["render",function(o,n,a,r,i,c){return{a:e.o(((...e)=>c.openprotocol&&c.openprotocol(...e)),"c5"),b:e.o(((...e)=>c.openPrivacyPolicy&&c.openPrivacyPolicy(...e)),"77"),c:e.o(((...e)=>c.agree&&c.agree(...e)),"52"),d:e.o(((...e)=>c.disagree&&c.disagree(...e)),"bc")}}]]);wx.createPage(r);