|
@@ -4,15 +4,11 @@
|
|
<div class="title">
|
|
<div class="title">
|
|
<van-swipe class="my-swipe" :autoplay="5000" indicator-color="white">
|
|
<van-swipe class="my-swipe" :autoplay="5000" indicator-color="white">
|
|
<van-swipe-item
|
|
<van-swipe-item
|
|
- @click="lookImg(require(`@/assets/img/goods/${Uid}/sw${i}.png`))"
|
|
|
|
|
|
+ @click="lookImg(`dataImg/${Uid}/sw${i}.png`)"
|
|
v-for="i in myInfo.swData"
|
|
v-for="i in myInfo.swData"
|
|
:key="i"
|
|
:key="i"
|
|
>
|
|
>
|
|
- <img
|
|
|
|
- class="bacImg"
|
|
|
|
- v-lazy="require(`@/assets/img/goods/${Uid}/sw${i}.png`)"
|
|
|
|
- alt=""
|
|
|
|
- />
|
|
|
|
|
|
+ <img class="bacImg" v-lazy="`dataImg/${Uid}/sw${i}.png`" alt="" />
|
|
</van-swipe-item>
|
|
</van-swipe-item>
|
|
</van-swipe>
|
|
</van-swipe>
|
|
<div class="title_rr" v-show="0">
|
|
<div class="title_rr" v-show="0">
|
|
@@ -42,6 +38,7 @@
|
|
<!-- 中间的8个模块 -->
|
|
<!-- 中间的8个模块 -->
|
|
<div class="skipBtnBox">
|
|
<div class="skipBtnBox">
|
|
<div
|
|
<div
|
|
|
|
+ v-show="item.done"
|
|
class="skipRow"
|
|
class="skipRow"
|
|
v-for="item in skipData"
|
|
v-for="item in skipData"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -73,10 +70,10 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 视频介绍 -->
|
|
<!-- 视频介绍 -->
|
|
- <div class="txtNameMain" v-if="Uid == 1">视频介绍</div>
|
|
|
|
- <div class="videoBox" v-if="Uid == 1">
|
|
|
|
|
|
+ <div class="txtNameMain">视频介绍</div>
|
|
|
|
+ <div class="videoBox">
|
|
<div class="videoShade" v-show="!videoPlay" @click="videoPlayFu"></div>
|
|
<div class="videoShade" v-show="!videoPlay" @click="videoPlayFu"></div>
|
|
- <video src="../../assets/media/loop.mp4" controls></video>
|
|
|
|
|
|
+ <video :src="`video/${Uid == 1 ? Uid + 'h' : Uid}.mp4`" controls></video>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 景点介绍 -->
|
|
<!-- 景点介绍 -->
|
|
@@ -288,10 +285,10 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
skipData: [
|
|
skipData: [
|
|
- { id: 1, name: "语音导览", path: "/goods/audio" },
|
|
|
|
- { id: 2, name: "VR场景", path: "/goods/kankan" },
|
|
|
|
- { id: 3, name: "鸟瞰全景", path: "/goods/vr" },
|
|
|
|
- { id: 4, name: "文献资料", path: "" },
|
|
|
|
|
|
+ { id: 1, name: "语音导览", path: "/goods/audio", done: true },
|
|
|
|
+ { id: 2, name: "VR场景", path: "/goods/kankan", done: true },
|
|
|
|
+ { id: 3, name: "鸟瞰全景", path: "/goods/vr", done: true },
|
|
|
|
+ // { id: 4, name: "文献资料", path: "" },
|
|
// { id: 4, name: '景点导航', path: '/goods/map' },
|
|
// { id: 4, name: '景点导航', path: '/goods/map' },
|
|
// { id: 5, name: '美食', path: '' },
|
|
// { id: 5, name: '美食', path: '' },
|
|
// { id: 6, name: '酒店住宿', path: '' },
|
|
// { id: 6, name: '酒店住宿', path: '' },
|
|
@@ -313,12 +310,6 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
toPage(path, id) {
|
|
toPage(path, id) {
|
|
- if (!path) return Toast("敬请期待!");
|
|
|
|
- if (id === 2) {
|
|
|
|
- if (!kankanInfo[this.Uid]) return Toast("敬请期待!");
|
|
|
|
- } else if (id === 3) {
|
|
|
|
- if (!vrInfo[this.Uid]) return Toast("敬请期待!");
|
|
|
|
- }
|
|
|
|
this.$router.push(path + "/" + this.Uid);
|
|
this.$router.push(path + "/" + this.Uid);
|
|
},
|
|
},
|
|
|
|
|
|
@@ -334,12 +325,15 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- window.document.title = "芜湖老海关";
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
mounted() {
|
|
mounted() {
|
|
let id = this.Uid;
|
|
let id = this.Uid;
|
|
this.myInfo = infoData[id] || {};
|
|
this.myInfo = infoData[id] || {};
|
|
|
|
+ window.document.title = this.myInfo.txtName;
|
|
|
|
+
|
|
|
|
+ // 显示隐藏 vr 和 鸟瞰
|
|
|
|
+ if (!kankanInfo[id]) this.skipData[1].done = false;
|
|
|
|
+ if (!vrInfo[id]) this.skipData[2].done = false;
|
|
},
|
|
},
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
@@ -503,8 +497,7 @@ export default {
|
|
margin: 20px 0 0;
|
|
margin: 20px 0 0;
|
|
padding: 0 15px;
|
|
padding: 0 15px;
|
|
display: flex;
|
|
display: flex;
|
|
- flex-wrap: wrap;
|
|
|
|
-
|
|
|
|
|
|
+ justify-content: space-around;
|
|
.skipRow {
|
|
.skipRow {
|
|
width: 25%;
|
|
width: 25%;
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -600,6 +593,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.noTxt {
|
|
.noTxt {
|
|
|
|
+ margin-top: 30px;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: #c3c3c3;
|
|
color: #c3c3c3;
|