|
@@ -41,22 +41,22 @@
|
|
<h3>推荐路线</h3>
|
|
<h3>推荐路线</h3>
|
|
<router-link class="more" :to="{name: 'RecommendedPath'}">更多 》</router-link>
|
|
<router-link class="more" :to="{name: 'RecommendedPath'}">更多 》</router-link>
|
|
<div class="grid-wrap">
|
|
<div class="grid-wrap">
|
|
- <div class="left-wrap card" @click="onClickPathItem">
|
|
|
|
|
|
+ <div class="left-wrap card" @click="onClickPathItem(recoPathList[0].id)">
|
|
<img src="@/assets/img/service/推荐路线-动感滨江.jpg" alt="" draggable="false">
|
|
<img src="@/assets/img/service/推荐路线-动感滨江.jpg" alt="" draggable="false">
|
|
- <h4>动感滨江</h4>
|
|
|
|
|
|
+ <h4>{{recoPathList[0].name}}</h4>
|
|
</div>
|
|
</div>
|
|
<div class="right-wrap">
|
|
<div class="right-wrap">
|
|
- <div class="card" @click="onClickPathItem">
|
|
|
|
|
|
+ <div class="card" @click="onClickPathItem(recoPathList[1].id)">
|
|
<img src="@/assets/img/service/推荐路线-魅力湾沚.png" alt="" draggable="false">
|
|
<img src="@/assets/img/service/推荐路线-魅力湾沚.png" alt="" draggable="false">
|
|
- <h4>【魅力湾沚】</h4>
|
|
|
|
|
|
+ <h4>{{recoPathList[1].name}}</h4>
|
|
</div>
|
|
</div>
|
|
- <div class="card" @click="onClickPathItem">
|
|
|
|
|
|
+ <div class="card" @click="onClickPathItem(recoPathList[2].id)">
|
|
<img src="@/assets/img/service/推荐路线-探源繁昌.png" alt="" draggable="false">
|
|
<img src="@/assets/img/service/推荐路线-探源繁昌.png" alt="" draggable="false">
|
|
- <h4>【探源繁昌】</h4>
|
|
|
|
|
|
+ <h4>{{recoPathList[2].name}}</h4>
|
|
</div>
|
|
</div>
|
|
- <div class="card" @click="onClickPathItem">
|
|
|
|
|
|
+ <div class="card" @click="onClickPathItem(recoPathList[3].id)">
|
|
<img src="@/assets/img/service/推荐路线-乡约南陵.png" alt="" draggable="false">
|
|
<img src="@/assets/img/service/推荐路线-乡约南陵.png" alt="" draggable="false">
|
|
- <h4>【乡约南陵】</h4>
|
|
|
|
|
|
+ <h4>{{recoPathList[3].name}}</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -191,6 +191,7 @@ import BackTop from "@/components/BackTop.vue";
|
|
import TabbarSmall from "@/components/TabbarSmall.vue";
|
|
import TabbarSmall from "@/components/TabbarSmall.vue";
|
|
import Swiper from "../../assets/libs/swiper.js";
|
|
import Swiper from "../../assets/libs/swiper.js";
|
|
import SearchBar from "@/components/SearchRedBtn.vue";
|
|
import SearchBar from "@/components/SearchRedBtn.vue";
|
|
|
|
+import serveData from "@/assets/data/serve/data.js";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -226,7 +227,11 @@ data() {
|
|
]
|
|
]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
-computed: {},
|
|
|
|
|
|
+computed: {
|
|
|
|
+ recoPathList() {
|
|
|
|
+ return serveData.pathList
|
|
|
|
+ }
|
|
|
|
+},
|
|
watch: {},
|
|
watch: {},
|
|
methods: {
|
|
methods: {
|
|
onSearch(v) {
|
|
onSearch(v) {
|
|
@@ -245,8 +250,8 @@ methods: {
|
|
onClickBanner() {
|
|
onClickBanner() {
|
|
this.pleaseWait()
|
|
this.pleaseWait()
|
|
},
|
|
},
|
|
- onClickPathItem() {
|
|
|
|
- this.$router.push({name: 'RecommendedPathDetail'})
|
|
|
|
|
|
+ onClickPathItem(id) {
|
|
|
|
+ this.$router.push({name: 'RecommendedPathDetail', query: {id}})
|
|
},
|
|
},
|
|
pleaseWait() {
|
|
pleaseWait() {
|
|
globalToast("敬请期待!")
|
|
globalToast("敬请期待!")
|
|
@@ -378,11 +383,10 @@ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
left: 3.9vw;
|
|
left: 3.9vw;
|
|
top: 3.1vw;
|
|
top: 3.1vw;
|
|
font-size: 6.4vw;
|
|
font-size: 6.4vw;
|
|
- letter-spacing: 0.3em;
|
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
text-shadow: 0px 4px 4px #3A180F;
|
|
text-shadow: 0px 4px 4px #3A180F;
|
|
- writing-mode: vertical-rl;
|
|
|
|
|
|
+ writing-mode: vertical-lr;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.right-wrap {
|
|
.right-wrap {
|
|
@@ -406,13 +410,19 @@ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
}
|
|
}
|
|
> h4 {
|
|
> h4 {
|
|
position: absolute;
|
|
position: absolute;
|
|
- right: 1.1vw;
|
|
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ background: linear-gradient(270deg, rgba(38,146,237,0.79) 15%, rgba(0,0,0,0) 100%);
|
|
|
|
+ padding-right: 1.1vw;
|
|
|
|
+ padding-top: 2.5vw;
|
|
|
|
+ padding-bottom: 2.5vw;
|
|
height: 100%;
|
|
height: 100%;
|
|
font-size: 2.7vw;
|
|
font-size: 2.7vw;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
color: #FEFEFE;
|
|
color: #FEFEFE;
|
|
writing-mode: vertical-rl;
|
|
writing-mode: vertical-rl;
|
|
- text-align: center;
|
|
|
|
letter-spacing: 0.12em;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
}
|
|
}
|
|
}
|