"use strict";const e=require("../../common/vendor.js"),i=require("../../common/assets.js"),p={data(){return{isLoading:!1,msgType:"warn",baseUrl:getApp().globalData.baseUrl}},onReady(){this.queryBind()},methods:{async queryBind(){e.wx$1.login({success:n=>{n.errMsg==="login:ok"&&e.index.request({url:this.baseUrl+"/wxsfrz/selBinDing?code="+n.code,method:"POST",success:({data:o})=>{o.wxsfrz!=null&&(getApp().globalData.openId=o.wxsfrz.openid,o.wxsfrz.name!=null&&o.wxsfrz.sfzh!=null?e.index.reLaunch({url:"/pages/bindCard?name="+o.wxsfrz.name+"&sfzh="+o.wxsfrz.sfzh}):setTimeout(()=>{e.index.reLaunch({url:"/pages/bindForm"})},4e3))},fail:o=>{console.error("Failed to query binding:",o)}})}})},dialogConfirm(){e.wx$1.login({success:n=>{n.code&&e.index.request({url:this.baseUrl+"/wxsfrz/wxBinDing?code="+n.code,method:"POST",success:({data:o})=>{getApp().globalData.openId=o.wxsfrz.openid,e.index.reLaunch({url:"/pages/bindForm"})}})}})},handleUserInfo(n){this.$refs.alertDialog.open()},dialogClose(){this.$refs.alertDialog.close()}}};if(!Array){const n=e.resolveComponent("uni-popup-dialog"),o=e.resolveComponent("uni-popup");(n+o)()}const a=()=>"../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js",l=()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";Math||(a+l)();function c(n,o,d,g,u,s){return{a:i._imports_1,b:i._imports_1$1,c:i._imports_2,d:i._imports_3,e:e.o((...r)=>s.handleUserInfo&&s.handleUserInfo(...r)),f:e.o(s.dialogConfirm),g:e.o(s.dialogClose),h:e.p({type:u.msgType,cancelText:"关闭",confirmText:"同意",title:"提示",content:"请确认是否登录承德英才卡"}),i:e.sr("alertDialog","1cf27b2a-0"),j:e.p({type:"dialog"})}}const t=e._export_sfc(p,[["render",c],["__scopeId","data-v-1cf27b2a"]]);wx.createPage(t);
