Browse Source

提交

master
chenkainan 1 year ago
parent
commit
fff672fd2c
  1. 2
      dist/index.html
  2. 1
      dist/static/css/234.a084331d.css
  3. 1
      dist/static/css/46.fde794d7.css
  4. 2
      dist/static/css/app.4700a525.css
  5. 1
      dist/static/js/234.d3c8af8d.js
  6. 1
      dist/static/js/46.1ea5a050.js
  7. 1
      dist/static/js/app.171bdd63.js
  8. 1
      dist/static/js/app.5a057ce3.js
  9. 16
      src/views/Index.vue
  10. 32
      src/views/LineList.vue
  11. 1
      src/views/compoents/lineRoute.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"><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 defer="defer" src="/static/js/chunk-vendors.c33f6caf.js"></script><script defer="defer" src="/static/js/app.5a057ce3.js"></script><link href="/static/css/chunk-vendors.befb54be.css" rel="stylesheet"><link href="/static/css/app.0cd07668.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"><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 defer="defer" src="/static/js/chunk-vendors.c33f6caf.js"></script><script defer="defer" src="/static/js/app.171bdd63.js"></script><link href="/static/css/chunk-vendors.befb54be.css" rel="stylesheet"><link href="/static/css/app.4700a525.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/234.a084331d.css

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

1
dist/static/css/46.fde794d7.css

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

2
dist/static/css/app.0cd07668.css → dist/static/css/app.4700a525.css

File diff suppressed because one or more lines are too long

1
dist/static/js/234.d3c8af8d.js

@ -0,0 +1 @@
"use strict";(self["webpackChunktaihulake"]=self["webpackChunktaihulake"]||[]).push([[234],{1234:function(t,e,i){i.r(e),i.d(e,{default:function(){return d}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[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),c=(0,o.Z)(l,s,a,!1,null,"43d9cdc8",null),d=c.exports}}]);

1
dist/static/js/46.1ea5a050.js

@ -1 +0,0 @@
"use strict";(self["webpackChunktaihulake"]=self["webpackChunktaihulake"]||[]).push([[46],{46:function(t,e,s){s.r(e),s.d(e,{default:function(){return r}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[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._l(t.list,(function(s,i){return e("div",{key:i,staticClass:"item",on:{click:function(e){return t.viewDetail(s)}}},[e("img",{attrs:{src:t.util.showImg(s.image),alt:""}}),e("div",{class:["content",{contents:t.type}]},[e("div",{staticClass:"title"},[t._v(t._s(s.name))]),t.type?e("div",{staticClass:"subtitle text-overflowRows",staticStyle:{display:"flex"}},t._l(s.points,(function(i,n){return e("div",{key:n},[t._v(t._s(i.name)),n+1!=s.points.length?e("span",[t._v("-")]):t._e()])})),0):e("div",{staticClass:"subtitle"},[t._v(t._s(s.points.length)+"个景点")]),t.type?e("div",{staticClass:"subtitle"},[t._v(t._s(s.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 t.delLine(i)}}})]):t._e()])}))],2)},n=[],a=(s(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(){this.$router.push("/")}}}),l=a,u=s(1001),c=(0,u.Z)(l,i,n,!1,null,"e0228542",null),r=c.exports}}]);

1
dist/static/js/app.171bdd63.js

File diff suppressed because one or more lines are too long

1
dist/static/js/app.5a057ce3.js

File diff suppressed because one or more lines are too long

16
src/views/Index.vue

@ -67,7 +67,7 @@
<!-- 日期选择 -->
<van-popup v-model="lineDateShow" round position="bottom">
<van-datetime-picker v-model="currentDate" type="date" title="选择年月日" @confirm="lineDateConfirm" />
<van-datetime-picker v-model="currentDate" type="date" title="选择年月日" @confirm="lineDateConfirm" @cancel="lineDateShow = false" />
</van-popup>
<!-- 添加线路行程弹框 -->
@ -138,6 +138,14 @@
this.showLineDetail()
},500)
}
// 线
if(sessionStorage.getItem('addUserLine')) {
this.lineName = ''
this.lineDate = ''
this.addLineShow = true
sessionStorage.removeItem("addUserLine")
}
},
activated() {
@ -588,11 +596,14 @@
"paths": paths
}]
})
setTimeout(() => {
sessionStorage.removeItem('lineDetail')
}, 500)
},
// 退线
closeLine() {
this.lineDetailShow = false
sessionStorage.setItem('lineDetail', null)
//
this.clearMarkers()
// 线
@ -608,7 +619,6 @@
},
beforeRouteLeave(to, from, next) {
next(vm => {
sessionStorage.setItem('lineDetail', null)
vm.closeLine()
})
}

32
src/views/LineList.vue

@ -6,6 +6,7 @@
<div class="top-btn" @click="addLine">+添加</div>
</div>
<div v-if="list.length > 0">
<div class="item" v-for="(item,index) in list" :key="index" @click="viewDetail(item)">
<img :src="util.showImg(item.image)" alt="" />
@ -19,10 +20,13 @@
</div>
<div class="delLine flex-center" v-if="type">
<img src="https://static.ticket.sz-trip.com/yandu/images/map/delLine.png" alt="" @click="delLine(index)">
<img src="https://static.ticket.sz-trip.com/yandu/images/map/delLine.png" alt="" @click.stop="delLine(item)">
</div>
</div>
</div>
<div class="noLine" v-else>暂无行程</div>
</div>
</template>
<script>
@ -53,7 +57,26 @@
},
// 线
addLine() {
sessionStorage.setItem('addUserLine', 1)
this.$router.push('/')
},
// 线
delLine(item) {
this.$dialog.confirm({
title: '',
message: '是否删除当前行程?'
}).then(() => {
this.post({
line_id: item.id
},'/api/emap/updateUserLine').then(res => {
if(res.code == 1) {
this.$toast('删除成功')
this.getList()
}
})
}).catch(() => {
})
}
}
}
@ -136,4 +159,11 @@
}
}
}
.noLine {
text-align: center;
color: #ccc;
font-size: 26px;
margin-top: 20px;
}
</style>

1
src/views/compoents/lineRoute.vue

@ -110,6 +110,7 @@
if(res.code == 1) {
this.$toast('添加成功')
setTimeout(() => {
this.$parent.$parent.isMyLine = true
this.$parent.$parent.addlineRoute(0)
},800)
setTimeout(() => {

Loading…
Cancel
Save