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
177 KiB

5 months ago
import{h as e,i as t,g as l,S as a,s as n,r as u,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 p,j as m,k as g,l as h,m as _,u as y,n as b,p as w,q as k,t as x,v as M,x as C,y as F,F as P,z as N,B as S,C as I,I as $,D as j,E as A,G as T,M as z,H as q,J as R,K as L,L as U}from"./index-DBg2bUhq.js";import{P as D}from"./poster.DLiVsUXX.js";import{s as V}from"./search.BJnl3YRK.js";import{d as B}from"./down.BCKq9i8s.js";import{f as E,a as O,c as G}from"./activity.4NBjJ4my.js";import{t as H,m as J}from"./ticketMap.imr_2NOD.js";import{v as K,a as W,c as X}from"./venueThemeColors.ByZn0VY6.js";import{_ as Y}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Q="szkp_force_loc_prompt",Z="szkp_wechat_oauth_denied",ee="szkp_h5_oauth_state_ss";let te=null;function le(){return te||(te=async function(){var c,d;if(!t())return!0;const v=new URL(window.location.href),f=v.searchParams.get("code"),p=v.searchParams.get("state");if(v.searchParams.get("err")){try{window.sessionStorage.setItem(Z,"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 t="";try{t=window.sessionStorage.getItem(ee)||""}catch{}t||(t=l(a.oauthState)||"");if(Boolean(p&&t&&String(p)!==String(t))){n({title:"授权状态异常,请关闭页面后重试",icon:"none"});try{window.sessionStorage.removeItem(ee)}catch{}u(a.oauthState)}else{s({title:"授权登录中…",mask:!0});try{const t=await e.post("/h5/wechat/oauth",{code:f},{withAuth:!1});if(null==t?void 0:t.token){o(a.accessToken,t.token);try{window.sessionStorage.setItem(Q,"1")}catch{}}}catch(h){const e=(null==h?void 0:h.message)||(null==(d=null==(c=null==h?void 0:h.errors)?void 0:c.code)?void 0:d[0])||"微信登录失败";n({title:e,icon:"none"})}finally{i()}}try{window.sessionStorage.removeItem(ee)}catch{}return u(a.oauthState),v.searchParams.delete("code"),v.searchParams.delete("state"),window.history.replaceState({},"",v.pathname+v.search+v.hash),!0}if(l(a.accessToken))return!0;try{if("1"===window.sessionStorage.getItem(Z))return!0}catch{}const m=encodeURIComponent(function(){if("undefined"==typeof window)return"";const e=new URL(window.location.href);return e.hash="",e.search="",e.toString()}()),g=`${Date.now()}-${Math.random().toString(36).slice(2,10)}`;try{window.sessionStorage.setItem(ee,g)}catch{}return o(a.oauthState,g),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${r.wechatAppId}&redirect_uri=${m}&response_type=code&scope=snsapi_userinfo&state=${g}#wechat_redirect`,!1}().finally(()=>{te=null})),te}const ae={lat:31.2989,lng:120.5853},ne={lat:.085,lng:.098};const ue={features:[{type:"Feature",properties:{id:"320507",name:"相城区",site:"www.poi86.com"},geometry:{type:"MultiPolygon",coordinates:[[[[120.826067,31.436966],[120.81984,31.437908],[120.788109,31.432948],[120.779446,31.431591],[120.768633,31.429255],[120.758424,31.419913],[120.745015,31.414115],[120.733164,31.40607],[120.726416,31.397852],[120.724162,31.391635],[120.718675,31.386841],[120.714536,31.386388],[120.703558,31.390792],[120.697516,31.385776],[120.697512,31.390757],[120.696586,31.393071],[120.690713,31.393169],[120.690953,31.385165],[120.685587,31.380706],[120.675529,31.372343],[120.666834,31.365114],[120.660013,31.360205],[120.651362,31.352881],[120.643983,31.346212],[120.644087,31.345662],[120.645489,31.338274],[120.641345,31.338152],[120.640661,31.338055],[120.639547,31.339079],[120.634247,31.337844],[120.632103,31.337699],[120.631938,31.337814],[120.631105,31.338784],[120.630767,31.339654],[120.630844,31.342046],[120.630594,31.343279],[120.629821,31.345066],[120.628658,31.347256],[120.628363,31.34881],[120.628207,31.349103],[120.627581,31.349331],[120.626201,31.349406],[120.625212,31.349286],[120.623962,31.34881],[120.623485,31.348739],[120.623025,31.348905],[120.622782,31.349159],[120.622591,31.349549],[120.622366,31.349922],[120.621949,31.35038],[120.621003,31.350436],[120.619796,31.35047],[120.618313,31.35053],[120.616793,31.350531],[120.616212,31.350748]