Commit 5a94f54a authored by 黄奎's avatar 黄奎

页面修改

parent 41473c5b
...@@ -102,7 +102,6 @@ ...@@ -102,7 +102,6 @@
</q-item> </q-item>
<q-item> <q-item>
<q-item-section> <q-item-section>
<q-btn type="a" @click="getUrl(props.row.LinkUrl)" target="_blank" <q-btn type="a" @click="getUrl(props.row.LinkUrl)" target="_blank"
:label="props.row.Seat>0||props.row.Substitute?'我有興趣':'無法預訂'" :label="props.row.Seat>0||props.row.Substitute?'我有興趣':'無法預訂'"
:color="props.row.Seat>0||props.row.Substitute?'indigo':'grey'" rounded unelevated :color="props.row.Seat>0||props.row.Substitute?'indigo':'grey'" rounded unelevated
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<ul class="tour-detail-list"> <ul class="tour-detail-list">
<li>行程編號: <li>行程編號:
<template v-if="dataList.currentPriceInfo&&dataList.currentPriceInfo.tcnum"> <template v-if="dataList.currentPriceInfo&&dataList.currentPriceInfo.tcnum">
{{dataList.currentPriceInfo.tcnum}} {{dataList.currentPriceInfo.tcnum.toUpperCase()}}
</template></li> </template></li>
<li>旅遊地點:{{dataList.countryName}}</li> <li>旅遊地點:{{dataList.countryName}}</li>
<li>旅遊天數:{{dataList.dayNum}}天</li> <li>旅遊天數:{{dataList.dayNum}}天</li>
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</template> </template>
</li> </li>
<li style="margin-top:30px;"> <li style="margin-top:30px;">
<q-btn style="width:115px;" type="a" label="立即预定" color="primary" @click="buyNow()" /> <q-btn v-if="dataList.currentPriceInfo&&dataList.currentPriceInfo.tcnum" style="width:115px;" type="a" label="立即预定" color="primary" @click="buyNow()" />
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
<paragraph v-if="item.Id=='white_label_other'&&item.plugData.Type==4" :plugData="item.plugData"></paragraph> <paragraph v-if="item.Id=='white_label_other'&&item.plugData.Type==4" :plugData="item.plugData"></paragraph>
<photo v-if="item.Id=='white_label_other'&&item.plugData.Type==5" :plugData="item.plugData"></photo> <photo v-if="item.Id=='white_label_other'&&item.plugData.Type==5" :plugData="item.plugData"></photo>
<!--待完善--> <!--待完善-->
<diyForm v-if="item.Id=='white_label_other'&&item.plugData.Type==6" :plugData="item.plugData" :TCID="0"> </diyForm> <diyForm v-if="item.Id=='white_label_other'&&item.plugData.Type==6" :plugData="item.plugData" :TCID="0">
</diyForm>
<!--自訂版型(背景圖)white_label_background_article--> <!--自訂版型(背景圖)white_label_background_article-->
<bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1" <bgArticleLeft v-if="item.Id=='white_label_background_article'&&item.plugData.Type==1"
...@@ -244,21 +245,23 @@ ...@@ -244,21 +245,23 @@
}, },
methods: { methods: {
getHomeData() { getHomeData() {
if (this.RB_Group_Id > 0) { let locationName = window.location.hostname;
this.apipost( var msg = {
"ws_get_GetHomePage", { RB_Group_Id: this.RB_Group_Id,
RB_Group_Id: this.RB_Group_Id B2BDomain: locationName
}, };
res => { this.apipost(
if (res.data.resultCode == 1) { "ws_get_GetHomePage", msg,
if (res.data.data) { res => {
this.HomeData = res.data.data; if (res.data.resultCode == 1) {
} if (res.data.data) {
this.HomeData = res.data.data;
} }
}, }
err => {} },
); err => {}
} );
} }
}, },
}; };
......
...@@ -5,6 +5,11 @@ import routes from './routes' ...@@ -5,6 +5,11 @@ import routes from './routes'
Vue.use(VueRouter) Vue.use(VueRouter)
const routerPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error)
}
/* /*
* If not building with SSR mode, you can * If not building with SSR mode, you can
* directly export the Router instantiation; * directly export the Router instantiation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment