2 lines
2.3 KiB
JavaScript
Raw Normal View History

2026-01-30 09:54:26 +08:00
"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),n=require("../../../gen/Apis.js");require("../../../common/libraries/request.js");const s=require("../../../common/store/useWeAppAuthStore.js");if(require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup-custom"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const t=e.defineComponent({__name:"ModalServer",setup(t){const u=s.useWeAppAuthStore(),i=e.ref(!1),l=e.ref(!1),r=o=>{e.index.navigateTo({url:o||""})},a=()=>{i.value=!1,l.value=!1};e.onHide((()=>{a()}));return e.watch((()=>{var e;return null==(e=null==u?void 0:u.data)?void 0:e.is_house_exist}),(()=>{var e,o,n,s;!(null==(e=null==u?void 0:u.data)?void 0:e.user)||(null==(o=null==u?void 0:u.data)?void 0:o.house_occupant)||(null==(n=null==u?void 0:u.data)?void 0:n.house_register)||(i.value=!0),console.log(null==(s=null==u?void 0:u.data)?void 0:s.house_occupant,"house_occupant2")}),{deep:!0}),e.watch((()=>{var e;return null==(e=null==u?void 0:u.data)?void 0:e.user}),(()=>{var e,o;(null==(e=null==u?void 0:u.data)?void 0:e.user)&&(null==(o=null==u?void 0:u.data)||o.selected_house)}),{deep:!0}),e.onShow((async()=>{var s,t,i;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),(null==(t=null==u?void 0:u.data)?void 0:t.user)&&(null==(i=null==u?void 0:u.data)?void 0:i.selected_house)&&o.getApiLoading(n.Apis.Archive.HouseRegisters.GetOwnerIsAudit,{}).then((e=>{(null==e?void 0:e.data)&&(l.value=!0),console.log(e)}))})),(o,n)=>({a:e.o((e=>r("/INDEX/binding/index"))),b:e.p({label:"前往入住登记",size:"md",type:"primary"}),c:e.o(a),d:e.p({type:"close",size:"35",color:"#fff"}),e:e.o(a),f:e.p({show:i.value,mode:"center",title:"入住登记提醒"}),g:e.o((e=>r("/INDEX/owner_audit_list/index"))),h:e.p({label:"前往审核",size:"md",type:"primary"}),i:e.o(a),j:e.p({type:"close",size:"35",color:"#fff"}),k:e.o(a),l:e.p({show:l.value,mode:"center",title:"住户审核通知"})})}}),u=e._export_sfc(t,[["__scopeId","data-v-5109beae"]]);wx.createComponent(u);