Commit eb2d7e74 authored by 罗超's avatar 罗超

修复搜索页面的跳转空白页问题

parent 8ab08c8f
...@@ -110,13 +110,13 @@ ...@@ -110,13 +110,13 @@
<div class="daynum">{{item.dayNum}}</div> <div class="daynum">{{item.dayNum}}</div>
<el-carousel :interval="3000" :autoplay='hoverIndex==index' arrow="never" height="148" :style="{'background':'#ddd'}" v-if='item.imgCover!=""'> <el-carousel :interval="3000" :autoplay='hoverIndex==index' arrow="never" height="148" :style="{'background':'#ddd'}" v-if='item.imgCover!=""'>
<el-carousel-item v-for="(img,imgIndex) in JSON.parse(item.imgCover)" :key="imgIndex" v-if='img.Url!=""'> <el-carousel-item v-for="(img,imgIndex) in JSON.parse(item.imgCover)" :key="imgIndex" v-if='img.Url!=""'>
<img v-lazy='`${img.Url}?x-oss-process=image/resize,m_fill,h_148,w_200`' @click="goUrl('detail',item.id)"> <img v-lazy='`${img.Url}?x-oss-process=image/resize,m_fill,h_148,w_200`' @click="goUrl('detail',item.id,item.tcid)">
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
<img v-else style="height:100%;width:100%" src='../../assets/img/banner@3x.png' /> <img v-else style="height:100%;width:100%" src='../../assets/img/banner@3x.png' />
</div> </div>
<div class="contentbox"> <div class="contentbox">
<div class="title" @click="goUrl('detail',item.id)">{{item.title}}</div> <div class="title" @click="goUrl('detail',item.id,item.tcid)">{{item.title}}</div>
<div class="item-info"> <div class="item-info">
<span> <span>
<i class="iconfont icon-bb-chufadi"></i>出发地:{{item.startCityName?item.startCityName:'成都'}} <i class="iconfont icon-bb-chufadi"></i>出发地:{{item.startCityName?item.startCityName:'成都'}}
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<div class="price"> <div class="price">
{{isLogin!==1?item.b2CPrice:item.b2BPrice}}<span></span> {{isLogin!==1?item.b2CPrice:item.b2BPrice}}<span></span>
</div> </div>
<el-button size='mini' @click="goUrl('detail',item.id)">立即预订</el-button> <el-button size='mini' @click="goUrl('detail',item.id,item.tcid)">立即预订</el-button>
</div> </div>
</div> </div>
<div class="item-pager" v-if='teamDatas.length>0'> <div class="item-pager" v-if='teamDatas.length>0'>
...@@ -216,10 +216,10 @@ export default { ...@@ -216,10 +216,10 @@ export default {
this.loadDayCount() this.loadDayCount()
}, },
methods: { methods: {
goUrl(path,id){ goUrl(path,id,tcid){
// detailTwo // detailTwo
path = 'detailTwo' path = 'detailTwo'
path=`${path}/${encodeURIComponent(id)}` path=`${path}/${encodeURIComponent(id)}/`+tcid
this.$router.push({ path }) this.$router.push({ path })
}, },
proving(){ proving(){
......
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
// var domainUrl = "http://test_reborn.oytour.com";//主域名 // var domainUrl = "http://test_reborn.oytour.com";//主域名
//var domainUrl = "http://reborn.oytour.com"; //主域名 //var domainUrl = "http://reborn.oytour.com"; //主域名
// var domainUrl = "http://192.168.2.214:8082"//主域名 // var domainUrl = "http://192.168.2.214:8082"//主域名
let domainUrl = "http://192.168.2.16:8083"; //刘东主域名 let domainUrl = "https://reborn.oytour.com"; //刘东主域名
if (this.isOnline()) { if (this.isOnline()) {
if(window.location.host.indexOf('viitto.com')!=-1) if(window.location.host.indexOf('viitto.com')!=-1)
domainUrl = "http://test.viitto.com" domainUrl = "http://test.viitto.com"
......
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