|
@@ -5,10 +5,10 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<menu>
|
|
<menu>
|
|
- <router-link class="entry" :to="{name: 'Booking'}">
|
|
|
|
|
|
+ <button class="entry" @click="onClickBooking">
|
|
<img src="@/assets/img/service/booking.png" alt="" draggable="false">
|
|
<img src="@/assets/img/service/booking.png" alt="" draggable="false">
|
|
<div>预约</div>
|
|
<div>预约</div>
|
|
- </router-link>
|
|
|
|
|
|
+ </button>
|
|
<router-link class="entry" :to="{name: 'FoodList'}">
|
|
<router-link class="entry" :to="{name: 'FoodList'}">
|
|
<img src="@/assets/img/service/美食.png" alt="" draggable="false">
|
|
<img src="@/assets/img/service/美食.png" alt="" draggable="false">
|
|
<div>美食</div>
|
|
<div>美食</div>
|
|
@@ -250,6 +250,16 @@ methods: {
|
|
onClickBanner() {
|
|
onClickBanner() {
|
|
this.pleaseWait()
|
|
this.pleaseWait()
|
|
},
|
|
},
|
|
|
|
+ onClickBooking() {
|
|
|
|
+ const loginStatus = globalUtils.checkLoginStatus()
|
|
|
|
+ // const loginStatus = false
|
|
|
|
+ // const loginStatus = true
|
|
|
|
+ if (loginStatus) {
|
|
|
|
+ this.$router.push({name: 'Booking'})
|
|
|
|
+ } else {
|
|
|
|
+ globalUtils.getUserCode('https://yifangyice.4dage.com/web/index.html#/booking')
|
|
|
|
+ }
|
|
|
|
+ },
|
|
onClickPathItem(id) {
|
|
onClickPathItem(id) {
|
|
this.$router.push({name: 'RecommendedPathDetail', query: {id}})
|
|
this.$router.push({name: 'RecommendedPathDetail', query: {id}})
|
|
},
|
|
},
|
|
@@ -258,7 +268,7 @@ methods: {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
-document.querySelector("#app").style.maxWidth = "";
|
|
|
|
|
|
+ document.querySelector("#app").style.maxWidth = "";
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
},
|
|
},
|
|
@@ -267,7 +277,9 @@ beforeMount() {}, //生命周期 - 挂载之前
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
updated() {}, //生命周期 - 更新之后
|
|
updated() {}, //生命周期 - 更新之后
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
-destroyed() {}, //生命周期 - 销毁完成
|
|
|
|
|
|
+destroyed() {
|
|
|
|
+ document.querySelector("#app").style.maxWidth = "500px";
|
|
|
|
+}, //生命周期 - 销毁完成
|
|
activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|