"use strict";const e=require("../../common/vendor.js"),n=require("../../common/assets.js"),o=require("../../common/js/user.js");if(!Array){e.resolveComponent("up-checkbox")()}Math;const r={__name:"login",setup(r){let t=e.ref(!1),s=async n=>{if(!t.value)return e.index.showToast({title:"请先阅读并同意用户协议和隐私政策",icon:"none"});try{o.login(n,2)}catch(r){e.index.showToast({title:r,icon:"none"})}};const a=n=>{e.index.navigateTo({url:n})},i=e=>{t.value=e};return(o,r)=>({a:n._imports_0$5,b:!e.unref(t),c:e.o(((...n)=>e.unref(s)&&e.unref(s)(...n))),d:e.o(i),e:e.p({shape:"circle",name:"agree",usedAlone:!0}),f:e.o((e=>a("/pages/agreement/agreement?id=9"))),g:e.o((e=>a("/pages/agreement/agreement?id=10")))})}};wx.createPage(r);
