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.

3 lines
2.5 KiB

12 months ago
require('../../app.js');
"use strict";const t=require("../../common/vendor.js"),e=require("../../utils/request.js"),i={components:{audioCom:()=>"../../components/audioCom.js"},data:()=>({isMoveDisabled:!0,comDom:!0,tag:"",animeState:!0,movableViewWidth:750,movableViewHeight:1334,detailsMapSource:"",hitPointList:[],hitPointScale:"scale(0.5)",titleSource:"",titleSourceW:0,titleSourceH:0,titleSourceX:0,titleSourceY:0,x:0,y:0,scaleValue:0,old:{x:0,y:0},mapList:[],contentBgColor:"",defaultBg:""}),onLoad(t){this.tag=t.tag,this.initConfig()},onShow(){this.comDom=!0},onHide(){this.comDom=!1},methods:{async initConfig(){let t=await e.request("/detailsmap","get");this.mapList=t.mapList;for(let e=0;e<this.mapList.length;e++)this.tag==this.mapList[e].tag&&(this.movableViewWidth=this.mapList[e].w,this.movableViewHeight=this.mapList[e].h,this.detailsMapSource=this.mapList[e].detailsMapSource,this.hitPointList=this.mapList[e].hitPointList,this.contentBgColor=this.mapList[e].bgColor,this.defaultBg=this.mapList[e].defaultBg,this.titleSource=this.mapList[e].titleSource,this.titleSourceW=this.mapList[e].titleSourceW,this.titleSourceH=this.mapList[e].titleSourceH,this.titleSourceX=this.mapList[e].titleSourceX,this.titleSourceY=this.mapList[e].titleSourceY,this.scaleValue=this.mapList[e].scaleValue,this.x=this.mapList[e].dX,this.y=this.mapList[e].dY)},openMap(){t.wx$1.openLocation({latitude:31.31428,longitude:120.603015,name:"桃花坞",scale:18})},openContent(e){encodeURIComponent(e.tag),t.index.navigateTo({url:`/subPackageCheckPoint/pages/content/index?tag=${e.tag}`})},onChange(t){this.old.x=t.detail.x,this.old.y=t.detail.y},touchScale(t){t.detail.scale>=.4?this.isMoveDisabled=!1:this.isMoveDisabled=!0}}};if(!Array){t.resolveComponent("audio-com")()}const o=t._export_sfc(i,[["render",function(e,i,o,s,a,l){return t.e({a:a.comDom},a.comDom?{b:t.sr("audioCom","5f2d6979-0")}:{},{c:a.defaultBg,d:"750rpx",e:750/2160*3840+"rpx",f:a.detailsMapSource,g:t.f(a.hitPointList,((e,i,o)=>({a:i,b:e.w+"rpx",c:e.h+"rpx",d:e.x+"rpx",e:e.y+"rpx",f:e.zIndex,g:t.o((t=>l.openContent(e)),i),h:e.tag}))),h:a.movableViewWidth+"rpx",i:a.movableViewHeight+"rpx",j:a.isMoveDisabled,k:a.scaleValue,l:a.scaleValue,m:a.x,n:a.y,o:t.o(((...t)=>l.onChange&&l.onChange(...t))),p:t.o(((...t)=>l.touchScale&&l.touchScale(...t))),q:a.titleSource,r:750/2160*a.titleSourceW+"rpx",s:750/2160*a.titleSourceH+"rpx",t:750/2160*a.titleSourceX+"rpx",v:750/2160*a.titleSourceY+"rpx",w:a.contentBgColor})}],["__scopeId","data-v-5f2d6979"]]);wx.createPage(o);