"use strict";const o=require("../../common/vendor.js"),e=require("../../common/assets.js"),n=o.defineComponent({data:()=>({username:"",password:"",isModalVisible:!1,modalTitle:"",modalContent:"",popupNoCancelShow:!1,checked:!1}),onLoad(){o.index.request({url:"https://gpt.aiym.run/contract/miniapp/product/categories",method:"GET",header:new UTSJSONObject({"Content-Type":"application/json","X-Access-Token":"11"}),success:o=>{console.log(o.data)}})},methods:{handleLogin(){if(!this.username||!this.password)return o.index.showToast({title:"请输入账号和密码",icon:"none"}),null;console.log(this.checked),this.checked?(o.index.showToast({title:"登录成功",icon:"success"}),o.index.switchTab({url:"/pages/home/home"})):o.index.showToast({title:"请勾选服务协议",icon:"none"})},showModal(){this.popupNoCancelShow=!0},closeModal(){this.popupNoCancelShow=!1},change(o=null){console.log("当前模式："+o.type+",状态："+o.show)},changeCK(){this.checked?this.checked=!1:this.checked=!0},getConfirm(){console.log("111"),this.checked?this.checked=this.checked:this.checked=!0,this.popupNoCancelShow=!1}}});if(!Array){(o.resolveComponent("uni-easyinput")+o.resolveComponent("mosowe-confirm-popup"))()}Math||((()=>"../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js")+(()=>"../../uni_modules/mosowe-confirm-popup/components/mosowe-confirm-popup/mosowe-confirm-popup.js"))();const s=o._export_sfc(n,[["render",function(n,s,c,t,i,a){return{a:e._imports_0,b:o.o((o=>i.username=o)),c:o.p({prefixIcon:"person",placeholder:"请输入您的账号",inputBorder:!1,modelValue:i.username}),d:o.o((o=>i.password=o)),e:o.p({prefixIcon:"locked",type:"password",placeholder:"请输入您的密码",inputBorder:!1,modelValue:i.password}),f:i.checked,g:o.o(((...o)=>a.changeCK&&a.changeCK(...o))),h:o.o(((...o)=>a.showModal&&a.showModal(...o))),i:o.o(((...o)=>a.showModal&&a.showModal(...o))),j:o.o(((...o)=>a.handleLogin&&a.handleLogin(...o))),k:o.o(((...o)=>a.closeModal&&a.closeModal(...o))),l:o.o(((...o)=>a.getConfirm&&a.getConfirm(...o))),m:o.o((o=>i.popupNoCancelShow=o)),n:o.p({title:"服务协议和隐私政策",confirmText:!0,cancelText:!0,modelValue:i.popupNoCancelShow}),o:o.sei(n.virtualHostId,"view")}}]]);wx.createPage(s);
