Browse Source

提交

master
chenkainan 1 year ago
parent
commit
b39131a96e
  1. 2
      dist/index.html
  2. 1
      dist/static/css/344.5c474162.css
  3. 1
      dist/static/css/513.a0988bc1.css
  4. 2
      dist/static/css/app.8356d6c5.css
  5. 1
      dist/static/js/344.d2c74758.js
  6. 1
      dist/static/js/513.bb0af9d3.js
  7. 2
      dist/static/js/app.6bbaffc0.js
  8. 14
      src/views/LineList.vue
  9. 6
      src/views/compoents/lineDetail.vue

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,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>
<!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.6bbaffc0.js"></script><link href="/static/css/chunk-vendors.befb54be.css" rel="stylesheet"><link href="/static/css/app.8356d6c5.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/344.5c474162.css

@ -0,0 +1 @@
.bg[data-v-56871c8f]{width:100%;min-height:100vh;background:#f7f7f7;padding-top:.41333rem}.title-box[data-v-56871c8f]{height:1.26667rem}.title-header[data-v-56871c8f]{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-56871c8f]:last-child{width:.26667rem}.top-box[data-v-56871c8f]{width:9.29333rem;padding:.4rem;margin:0 auto;font-weight:700;font-size:.53333rem;color:#000}.top-box .top-btn[data-v-56871c8f]{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-56871c8f]{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-56871c8f]{-o-object-fit:cover;object-fit:cover;width:2.84rem;height:2.84rem;border-radius:.17333rem}.item .content[data-v-56871c8f]{padding:.2rem 0;width:5.46667rem}.item .content .title[data-v-56871c8f]{font-weight:700;font-size:.44rem;color:#111}.item .content .subtitle[data-v-56871c8f]{margin-top:8px;font-weight:500;font-size:.36rem;color:#666}.item .contents[data-v-56871c8f]{width:4.53333rem}.item .delLine[data-v-56871c8f]{width:.66667rem}.item .delLine img[data-v-56871c8f]{width:.4rem;height:.45333rem}.noLine[data-v-56871c8f]{text-align:center;color:#ccc;font-size:.34667rem;margin-top:.26667rem}

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

@ -1 +0,0 @@
.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.d1dc1d5d.css → dist/static/css/app.8356d6c5.css

File diff suppressed because one or more lines are too long

1
dist/static/js/344.d2c74758.js

@ -0,0 +1 @@
"use strict";(self["webpackChunktaihulake"]=self["webpackChunktaihulake"]||[]).push([[344],{8344: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 t.isShow?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("暂无行程")])]):t._e()},a=[],n=(i(7658),{data(){return{list:[],type:this.$route.query.type,isShow:!1}},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=>{if(this.list=t.data,this.$route.query.id){let t=this.list.find((t=>t.id==this.$route.query.id));sessionStorage.setItem("lineDetail",JSON.stringify(t)),this.$router.push("/")}else this.isShow=!0}))},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,r=i(1001),l=(0,r.Z)(o,s,a,!1,null,"56871c8f",null),c=l.exports}}]);

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

@ -1 +0,0 @@
"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.1e141f38.js → dist/static/js/app.6bbaffc0.js

File diff suppressed because one or more lines are too long

14
src/views/LineList.vue

@ -1,5 +1,5 @@
<template>
<div class="bg">
<div class="bg" v-if="isShow">
<div class="title-box">
<div class="title-header flex-between">
<van-icon name="arrow-left" @click="goBack"/>
@ -42,6 +42,7 @@
return {
list: [],
type: this.$route.query.type, // type1线
isShow: false
}
},
mounted() {
@ -55,6 +56,17 @@
code: this.$route.query.code ? this.$route.query.code : ''
},'/api/emap/getLineByCode').then(res => {
this.list = res.data
if(this.$route.query.id) {
let item = this.list.find(item => {
return item.id == this.$route.query.id
})
sessionStorage.setItem('lineDetail', JSON.stringify(item))
this.$router.push('/')
}else {
this.isShow = true
}
})
},
//

6
src/views/compoents/lineDetail.vue

@ -32,7 +32,7 @@
</div>
<!-- 推荐攻略 -->
<div>
<div v-if="strategyInfo">
<div class="title">推荐攻略</div>
<div class="strategy-info" @click="util.gotoDetailMini(strategyInfo)">
<img :src="util.showImg(strategyInfo.image)" class="strategy-img">
@ -63,7 +63,7 @@
detail: {},
selectIndex: null,
info: null,
strategyInfo: {}
strategyInfo: null
}
},
mounted() {
@ -73,7 +73,7 @@
this.get({
id: this.detail.article_id
},'/api/article/getArticleById').then(res => {
this.strategyInfo = res.data
if(res.data.id) this.strategyInfo = res.data
})
},
methods: {

Loading…
Cancel
Save