Files
dianxiaorui-uniapp/unpackage/dist/build/mp-alipay/pages/login/login.js
PC-202306242200\Administrator 4d06351f6a no message
2026-03-28 23:00:29 +08:00

2 lines
1.4 KiB
JavaScript

"use strict";const common_vendor=require("../../common/vendor.js");const common_assets=require("../../common/assets.js");const common_js_user=require("../../common/js/user.js");if(!Array){const _easycom_up_checkbox2=common_vendor.resolveComponent("up-checkbox");_easycom_up_checkbox2()}const _easycom_up_checkbox=()=>"../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";if(!Math){_easycom_up_checkbox()}const _sfc_main={__name:"login",setup(__props){let aloneChecked=common_vendor.ref(false);let getPhoneNumber=async e=>{if(!aloneChecked.value){return common_vendor.index.showToast({title:"请先阅读并同意用户协议和隐私政策",icon:"none"})}try{common_js_user.login(e,2)}catch(err){common_vendor.index.showToast({title:err,icon:"none"})}};const toNav=e=>{common_vendor.index.navigateTo({url:e})};const change=e=>{aloneChecked.value=e};return(_ctx,_cache)=>({a:common_assets._imports_0$5,b:!common_vendor.unref(aloneChecked),c:common_vendor.o(($event=>_ctx.$onAliGetAuthorize(common_vendor.unref(getPhoneNumber),$event))),d:common_vendor.o(($event=>_ctx.$onAliAuthError(common_vendor.unref(getPhoneNumber),$event))),e:common_vendor.o(change),f:common_vendor.p({shape:"circle",name:"agree",usedAlone:true}),g:common_vendor.o(($event=>toNav("/pages/agreement/agreement?id=9"))),h:common_vendor.o(($event=>toNav("/pages/agreement/agreement?id=10")))})}};my.createPage(_sfc_main);