"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("hs-footer")()}Math;const n=e.defineComponent({__name:"index",setup(n){const r=e.ref(!1);return e.onShow((async()=>{var n,i,s;if(await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),null==(i=o.getUserLogin)?void 0:i.getLoginStatus()){const o=e.index.getEnterOptionsSync();let n=null==o?void 0:o.query;if(null==n?void 0:n.scene){let o=null==(s=null==n?void 0:n.scene)?void 0:s.split("_");console.log("qrData",n),"1"===o[0]&&e.index.redirectTo({url:`/INDEX/pay/index?id=${o[1]}`})}else r.value=!0}else e.index.showModal({title:"提示",content:"检测到您还未登录，是否去登录？",confirmText:"去登录",cancelText:"返回首页",confirmColor:"#0082FA",success:function(o){o.confirm?(e.index.redirectTo({url:"/pages/login?source=transfer"}),console.log("用户点击确定")):o.cancel&&(e.index.switchTab({url:"/pages/index/index"}),console.log("用户点击取消"))}})})),(o,n)=>e.e({a:!r.value},r.value?{b:e.p({btnParimaryName:"返回首页"})}:{})}});wx.createPage(n);
