Browse Source

打包

master
chenkainan 1 year ago
parent
commit
69a6cab211
  1. 2
      dist/index.html
  2. 1
      dist/static/css/323.8d8d4403.css
  3. 1
      dist/static/css/513.a0988bc1.css
  4. 2
      dist/static/css/app.d1dc1d5d.css
  5. 1
      dist/static/js/323.385d566d.js
  6. 1
      dist/static/js/513.bb0af9d3.js
  7. 2
      dist/static/js/app.1e141f38.js
  8. 2
      src/views/Index.vue
  9. 15
      src/views/LineList.vue
  10. 2
      vue.config.js

2
dist/index.html

@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>地图</title><script charset="utf-8" src="https://map.qq.com/api/gljs?v=1.exp&key=YVOBZ-MWJ3Z-34IXK-7J2GL-O33US-QLF5X"></script><script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script><script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script defer="defer" src="/static/js/chunk-vendors.c33f6caf.js"></script><script defer="defer" src="/static/js/app.0746fd0c.js"></script><link href="/static/css/chunk-vendors.befb54be.css" rel="stylesheet"><link href="/static/css/app.2d436227.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but taihulake doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0"><link rel="icon" href="favicon.ico"><title>地图</title><script charset="utf-8" src="https://map.qq.com/api/gljs?v=1.exp&key=YVOBZ-MWJ3Z-34IXK-7J2GL-O33US-QLF5X"></script><script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script><script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script defer="defer" src="/static/js/chunk-vendors.c33f6caf.js"></script><script defer="defer" src="/static/js/app.1e141f38.js"></script><link href="/static/css/chunk-vendors.befb54be.css" rel="stylesheet"><link href="/static/css/app.d1dc1d5d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but taihulake doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

1
dist/static/css/323.8d8d4403.css

@ -1 +0,0 @@
.bg[data-v-7d3b8246]{width:100%;min-height:100vh;background:#f7f7f7;padding-top:.41333rem}.title-box[data-v-7d3b8246]{height:1.26667rem}.title-header[data-v-7d3b8246]{width:100%;height:1.26667rem;padding:0 .36rem;position:fixed;top:0;left:0;font-weight:700;font-size:.48rem;color:#333;background:#fff}.title-header div[data-v-7d3b8246]:last-child{width:.26667rem}.top-box[data-v-7d3b8246]{width:9.29333rem;padding:.4rem;margin:0 auto;font-weight:700;font-size:.53333rem;color:#000}.top-box .top-btn[data-v-7d3b8246]{width:1.82667rem;line-height:.8rem;border-radius:.4rem;border:1px solid #ccc;text-align:center;font-weight:400;font-size:.36rem;color:#000}.item[data-v-7d3b8246]{width:9.29333rem;height:3.2rem;background:#fff;box-shadow:0 1px .21333rem 0 hsla(0,0%,60%,.35);border-radius:.26667rem;margin:0 auto .44rem;padding:.17333rem;display:flex;justify-content:space-between}.item img[data-v-7d3b8246]{-o-object-fit:cover;object-fit:cover;width:2.84rem;height:2.84rem;border-radius:.17333rem}.item .content[data-v-7d3b8246]{padding:.2rem 0;width:5.46667rem}.item .content .title[data-v-7d3b8246]{font-weight:700;font-size:.44rem;color:#111}.item .content .subtitle[data-v-7d3b8246]{margin-top:8px;font-weight:500;font-size:.36rem;color:#666}.item .contents[data-v-7d3b8246]{width:4.53333rem}.item .delLine[data-v-7d3b8246]{width:.66667rem}.item .delLine img[data-v-7d3b8246]{width:.4rem;height:.45333rem}.noLine[data-v-7d3b8246]{text-align:center;color:#ccc;font-size:.34667rem;margin-top:.26667rem}

1
dist/static/css/513.a0988bc1.css

@ -0,0 +1 @@
.bg[data-v-9ef60a68]{width:100%;min-height:100vh;background:#f7f7f7;padding-top:.41333rem}.title-box[data-v-9ef60a68]{height:1.26667rem}.title-header[data-v-9ef60a68]{width:100%;height:1.26667rem;padding:0 .36rem;position:fixed;top:0;left:0;font-weight:700;font-size:.48rem;color:#333;background:#fff}.title-header div[data-v-9ef60a68]:last-child{width:.26667rem}.top-box[data-v-9ef60a68]{width:9.29333rem;padding:.4rem;margin:0 auto;font-weight:700;font-size:.53333rem;color:#000}.top-box .top-btn[data-v-9ef60a68]{width:1.82667rem;line-height:.8rem;border-radius:.4rem;border:1px solid #ccc;text-align:center;font-weight:400;font-size:.36rem;color:#000}.item[data-v-9ef60a68]{width:9.29333rem;height:3.2rem;background:#fff;box-shadow:0 1px .21333rem 0 hsla(0,0%,60%,.35);border-radius:.26667rem;margin:0 auto .44rem;padding:.17333rem;display:flex;justify-content:space-between}.item img[data-v-9ef60a68]{-o-object-fit:cover;object-fit:cover;width:2.84rem;height:2.84rem;border-radius:.17333rem}.item .content[data-v-9ef60a68]{padding:.2rem 0;width:5.46667rem}.item .content .title[data-v-9ef60a68]{font-weight:700;font-size:.44rem;color:#111}.item .content .subtitle[data-v-9ef60a68]{margin-top:8px;font-weight:500;font-size:.36rem;color:#666}.item .contents[data-v-9ef60a68]{width:4.53333rem}.item .delLine[data-v-9ef60a68]{width:.66667rem}.item .delLine img[data-v-9ef60a68]{width:.4rem;height:.45333rem}.noLine[data-v-9ef60a68]{text-align:center;color:#ccc;font-size:.34667rem;margin-top:.26667rem}

2
dist/static/css/app.2d436227.css → dist/static/css/app.d1dc1d5d.css

File diff suppressed because one or more lines are too long

1
dist/static/js/323.385d566d.js

@ -1 +0,0 @@
"use strict";(self["webpackChunktaihulake"]=self["webpackChunktaihulake"]||[]).push([[323],{7323:function(t,e,i){i.r(e),i.d(e,{default:function(){return c}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"title-box"},[e("div",{staticClass:"title-header flex-between"},[e("van-icon",{attrs:{name:"arrow-left"},on:{click:function(e){return t.$router.go(-1)}}}),e("div",[t._v(t._s(t.type?"我的行程":"地图导览"))]),e("div")],1)]),t.type?e("div",{staticClass:"top-box flex-between"},[e("div",[t._v("我的行程")]),e("div",{staticClass:"top-btn",on:{click:t.addLine}},[t._v("+添加")])]):t._e(),t.list.length>0?e("div",t._l(t.list,(function(i,s){return e("div",{key:s,staticClass:"item",on:{click:function(e){return t.viewDetail(i)}}},[e("img",{attrs:{src:t.util.showImg(i.image),alt:""}}),e("div",{class:["content",{contents:t.type}]},[e("div",{staticClass:"title"},[t._v(t._s(i.name))]),t.type?e("div",{staticClass:"subtitle text-overflowRows",staticStyle:{display:"flex"}},t._l(i.points,(function(s,a){return e("div",{key:a},[t._v(t._s(s.name)),a+1!=i.points.length?e("span",[t._v("-")]):t._e()])})),0):e("div",{staticClass:"subtitle"},[t._v(t._s(i.points.length)+"个景点")]),t.type?e("div",{staticClass:"subtitle"},[t._v(t._s(i.date))]):t._e()]),t.type?e("div",{staticClass:"delLine flex-center"},[e("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/delLine.png",alt:""},on:{click:function(e){return e.stopPropagation(),t.delLine(i)}}})]):t._e()])})),0):e("div",{staticClass:"noLine"},[t._v("暂无行程")])])},a=[],n=(i(7658),{data(){return{list:[],type:this.$route.query.type}},mounted(){this.getList()},methods:{getList(){this.post({type:this.$route.query.type?1:"",code:this.$route.query.code},"/api/emap/getLineByCode").then((t=>{this.list=t.data}))},viewDetail(t){sessionStorage.setItem("lineDetail",JSON.stringify(t)),this.$router.push("/")},addLine(){sessionStorage.setItem("addUserLine",1),this.$router.push("/")},delLine(t){this.$dialog.confirm({title:"",message:"是否删除当前行程?"}).then((()=>{this.post({line_id:t.id},"/api/emap/updateUserLine").then((t=>{1==t.code&&(this.$toast("删除成功"),this.getList())}))})).catch((()=>{}))}}}),l=n,o=i(1001),r=(0,o.Z)(l,s,a,!1,null,"7d3b8246",null),c=r.exports}}]);

1
dist/static/js/513.bb0af9d3.js

@ -0,0 +1 @@
"use strict";(self["webpackChunktaihulake"]=self["webpackChunktaihulake"]||[]).push([[513],{3513:function(t,e,i){i.r(e),i.d(e,{default:function(){return c}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"title-box"},[e("div",{staticClass:"title-header flex-between"},[e("van-icon",{attrs:{name:"arrow-left"},on:{click:t.goBack}}),e("div",[t._v(t._s(t.type?"地图导览":"线路推荐"))]),e("div")],1)]),t.type?e("div",{staticClass:"top-box flex-between"},[e("div",[t._v("我的行程")]),e("div",{staticClass:"top-btn",on:{click:t.addLine}},[t._v("+添加")])]):t._e(),t.list.length>0?e("div",t._l(t.list,(function(i,s){return e("div",{key:s,staticClass:"item",on:{click:function(e){return t.viewDetail(i)}}},[e("img",{attrs:{src:t.util.showImg(i.points[0].main_image),alt:""}}),e("div",{class:["content",{contents:t.type}]},[e("div",{staticClass:"title"},[t._v(t._s(i.name))]),t.type?e("div",{staticClass:"subtitle text-overflowRows",staticStyle:{display:"flex"}},t._l(i.points,(function(s,a){return e("div",{key:a},[t._v(t._s(s.name)),a+1!=i.points.length?e("span",[t._v("-")]):t._e()])})),0):e("div",{staticClass:"subtitle"},[t._v(t._s(i.points.length)+"个景点")]),t.type?e("div",{staticClass:"subtitle"},[t._v(t._s(i.date))]):t._e()]),t.type?e("div",{staticClass:"delLine flex-center"},[e("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/delLine.png",alt:""},on:{click:function(e){return e.stopPropagation(),t.delLine(i)}}})]):t._e()])})),0):e("div",{staticClass:"noLine"},[t._v("暂无行程")])])},a=[],n=(i(7658),{data(){return{list:[],type:this.$route.query.type}},mounted(){this.getList()},methods:{getList(){this.post({type:this.$route.query.type?1:"",code:this.$route.query.code?this.$route.query.code:""},"/api/emap/getLineByCode").then((t=>{this.list=t.data}))},viewDetail(t){sessionStorage.setItem("lineDetail",JSON.stringify(t)),this.$router.push("/")},addLine(){sessionStorage.setItem("addUserLine",1),this.$router.push("/")},delLine(t){this.$dialog.confirm({title:"",message:"是否删除当前行程?"}).then((()=>{this.post({line_id:t.id},"/api/emap/updateUserLine").then((t=>{1==t.code&&(this.$toast("删除成功"),this.getList())}))})).catch((()=>{}))},goBack(){let t=window.navigator.userAgent.toLocaleLowerCase();"micromessenger"==t.match(/MicroMessenger/i)?wx.miniProgram.getEnv((t=>{t.miniprogram?wx.miniProgram.navigateBack():this.$router.go(-1)})):this.$router.go(-1)}}}),o=n,l=i(1001),r=(0,l.Z)(o,s,a,!1,null,"9ef60a68",null),c=r.exports}}]);

2
dist/static/js/app.0746fd0c.js → dist/static/js/app.1e141f38.js

File diff suppressed because one or more lines are too long

2
src/views/Index.vue

@ -230,7 +230,7 @@
// //
this.mapObj = new TMap.Map("mapContainer", { this.mapObj = new TMap.Map("mapContainer", {
center: center, center: center,
// boundary: latlngBounds, boundary: latlngBounds,
zoom: 12, // zoom: 12, //
minZoom: 12, minZoom: 12,
maxZoom: 15, maxZoom: 15,

15
src/views/LineList.vue

@ -2,7 +2,7 @@
<div class="bg"> <div class="bg">
<div class="title-box"> <div class="title-box">
<div class="title-header flex-between"> <div class="title-header flex-between">
<van-icon name="arrow-left" @click="$router.go(-1)"/> <van-icon name="arrow-left" @click="goBack"/>
<div>{{type ? '地图导览' : '线路推荐'}}</div> <div>{{type ? '地图导览' : '线路推荐'}}</div>
<div></div> <div></div>
</div> </div>
@ -84,6 +84,19 @@
}).catch(() => { }).catch(() => {
}) })
},
goBack() {
let ua = window.navigator.userAgent.toLocaleLowerCase()
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
wx.miniProgram.getEnv(res => {
if (res.miniprogram) {
//
wx.miniProgram.navigateBack()
} else {
this.$router.go(-1)
}
})
} else this.$router.go(-1)
} }
} }
} }

2
vue.config.js

@ -48,7 +48,7 @@ module.exports = defineConfig({
analyzerPort: 8888, //注意是否有端口冲突 analyzerPort: 8888, //注意是否有端口冲突
reportFilename: 'report.html', reportFilename: 'report.html',
defaultSizes: 'parsed', defaultSizes: 'parsed',
openAnalyzer: true, openAnalyzer: false,
generateStatsFile: false, generateStatsFile: false,
statsFilename: 'stats.json', statsFilename: 'stats.json',
statsOptions: null, statsOptions: null,

Loading…
Cancel
Save