"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("hs-page-head-information")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-page-head-information/hs-page-head-information.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const l=e.defineComponent({__name:"index",setup(l){const a=e.ref(-1),o=e.ref([]),n=e.ref([{label:"北大门闸机",checked:!1},{label:"3座1楼大堂",checked:!1},{label:"3座负1楼",checked:!1},{label:"3座负2楼",checked:!1}]),c=[{label:"1小时",checked:!1},{label:"3小时",checked:!1},{label:"6小时",checked:!1},{label:"12小时",checked:!1},{label:"1天",checked:!1},{label:"2天",checked:!1},{label:"3天",checked:!1},{label:"4天",checked:!1}],t=()=>{var l;return(null==(l=null==o?void 0:o.value)?void 0:l.length)?(null==a?void 0:a.value)<0?(e.index.showToast({title:"请选择授权时长！",icon:"none"}),!1):void 0:(e.index.showToast({title:"请选择门禁！",icon:"none"}),!1)};return e.onShareAppMessage((()=>({title:"您的好友给您授权门禁！",path:"/INDEX/open_door/index",imageUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}))),(l,d)=>{var h,i;return e.e({a:e.p({title:"可以把您所在的小区下单元开门权限分享给好友，好友即可一键开门，方便快捷!"}),b:e.f(n.value,((l,a,c)=>e.e({a:e.t(l.label),b:l.checked},(l.checked,{}),{c:`item_${a}`,d:e.n("item "+(l.checked?"active":"")),e:e.o((e=>(e=>{var l;n.value[e].checked=!n.value[e].checked,null==(l=null==n?void 0:n.value)||l.forEach((e=>{var l;e.checked&&(null==(l=null==o?void 0:o.value)||l.push(1))}))})(a)),`item_${a}`)}))),c:e.f(c,((l,o,n)=>({a:e.t(l.label),b:`item_${o}`,c:e.n("item "+(a.value===o?"active":"")),d:e.o((e=>(e=>{a.value=e})(o)),`item_${o}`)}))),d:a.value>-1&&(null==(h=o.value)?void 0:h.length)},a.value>-1&&(null==(i=o.value)?void 0:i.length)?{e:e.p({btnParimaryName:"分享给访客开门",openType:"share"})}:{f:e.o(t),g:e.p({btnParimaryName:"分享给访客开门"})})}}});l.__runtimeHooks=6,wx.createPage(l);
