You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
24 KiB
2 lines
24 KiB
|
1 month ago
|
import{h as e,i as l,g as a,S as t,s as u,r as n,a as s,b as o,c as i,A as r,d as c,e as d,f as v,w as f,o as m,j as _,k as p,l as g,m as h,u as b,n as y,p as k,q as w,t as C,v as N,x as S,I as x,y as F,z as $,B as I,C as P,M as j,D as z,E as T,F as R,G as A,H as B,J as D,K as L,L as M,_ as U}from"./index-CPXWftEC.js";import{P as V}from"./poster.C6TYC1FC.js";import{s as q}from"./search.BJnl3YRK.js";import{v as E,g as X,a as G,m as H,d as J,b as K}from"./suzhouDistrictPolygons.U6J8TgzC.js";import{f as O,a as W,c as Y}from"./activity.DEGdoGAe.js";import{t as Q,g as Z}from"./ticketMap.BogdvK1G.js";import{v as ee}from"./venueTypes.DuAf5T5V.js";import{v as le,o as ae,a as te,c as ue}from"./venueThemeColors.DRxjaxXI.js";import{m as ne}from"./text.mVszLYmv.js";const se="szkp_force_loc_prompt",oe="szkp_wechat_oauth_denied",ie="szkp_h5_oauth_state_ss";let re=null;function ce(){return re||(re=async function(){var c,d;if(!l())return!0;const v=new URL(window.location.href),f=v.searchParams.get("code"),m=v.searchParams.get("state");if(v.searchParams.get("err")){try{window.sessionStorage.setItem(oe,"1")}catch{}return v.searchParams.delete("code"),v.searchParams.delete("state"),v.searchParams.delete("err"),window.history.replaceState({},"",v.pathname+v.search+v.hash),!0}if(f){let l="";try{l=window.sessionStorage.getItem(ie)||""}catch{}l||(l=a(t.oauthState)||"");if(Boolean(m&&l&&String(m)!==String(l))){u({title:"授权状态异常,请关闭页面后重试",icon:"none"});try{window.sessionStorage.removeItem(ie)}catch{}n(t.oauthState)}else{s({title:"授权登录中…",mask:!0});try{const l=await e.post("/h5/wechat/oauth",{code:f},{withAuth:!1});if(null==l?void 0:l.token){o(t.accessToken,l.token);try{window.sessionStorage.setItem(se,"1")}catch{}}}catch(g){const e=(null==g?void 0:g.message)||(null==(d=null==(c=null==g?void 0:g.errors)?void 0:c.code)?void 0:d[0])||"微信登录失败";u({title:e,icon:"none"})}finally{i()}}try{window.sessionStorage.removeItem(ie)}catch{}return n(t.oauthState),v.searchParams.delete("code"),v.searchParams.delete("state"),window.history.replaceState({},"",v.pathname+v.search+v.hash),!0}if(a(t.accessToken))return!0;try{if("1"===window.sessionStorage.getItem(oe))return!0}catch{}const _=encodeURIComponent(function(){if("undefined"==typeof window)return"";const e=new URL(window.location.href);return e.hash="",e.search="",e.toString()}()),p=`${Date.now()}-${Math.random().toString(36).slice(2,10)}`;try{window.sessionStorage.setItem(ie,p)}catch{}return o(t.oauthState,p),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${r.wechatAppId}&redirect_uri=${_}&response_type=code&scope=snsapi_userinfo&state=${p}#wechat_redirect`,!1}().finally(()=>{re=null})),re}const de="/h5/assets/people-BuXbkOd9.png",ve={lat:31.2989,lng:120.5853},fe={lat:.085,lng:.098};function me(e=fe){const l=ve,a=e.lat,t=e.lng;return[{latitude:l.lat-a,longitude:l.lng-t},{latitude:l.lat-a,longitude:l.lng+t},{latitude:l.lat+a,longitude:l.lng-t},{latitude:l.lat+a,longitude:l.lng+t}]}const _e=.92,pe=U(c({__name:"index",setup(l){const a={backgroundImage:"url(/h5/assets/head-BCNsV_in.png)",backgroundSize:"cover",backgroundPosition:"center top",backgroundRepeat:"no-repeat"},t={backgroundImage:`url("${de}")`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},n=d(!1),s=d(null),o=d({latitude:ve.lat,longitude:ve.lng}),i=d(11),r=d("map"),c=d(""),U=d("区域"),se=d(""),oe=d("主题"),ie=d(""),re=d("预约模式"),fe=d(""),pe=d("开放模式"),ge=d(""),he=d("收费类型"),be=d(""),ye=d(null),ke=v(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=s.value)?void 0:e.venue_dicts)?void 0:l.venue_type)??[])a[t.value]=t.label;return a}),we=v(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=s.value)?void 0:e.venue_dicts)?void 0:l.ticket_type)??[])a[t.value]=t.label;return a}),Ce=v(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=s.value)?void 0:e.venue_dicts)?void 0:l.venue_open_mode)??[])a[t.value]=t.label;return a});function Ne(e){return e?ke.value[e]||e:""}function Se(e){return e?we.valu
|