Commit 6fd7202a authored by huangyuanyuan's avatar huangyuanyuan

update

parent 44ebe95d
...@@ -289,9 +289,9 @@ ...@@ -289,9 +289,9 @@
<el-col :span="6"> <el-col :span="6">
<p style="font-size:12px">余位 <p style="font-size:12px">余位
<span style="color:#49C0A1">{{item.synum}}</span> <span style="color:#49C0A1">{{item.residue}}</span>
</p> </p>
<el-button v-if="item.synum>0 && item.isPayOrder==1" @click="Purchase(item)" style="color:#FF6633;border:1px solid #FF6633;margin-top:10px" size="small"> <el-button v-if="item.residue>0 && item.isPayOrder==1" @click="Purchase(item)" style="color:#FF6633;border:1px solid #FF6633;margin-top:10px" size="small">
购买 购买
</el-button> </el-button>
</el-col> </el-col>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<el-row> <el-row>
<el-col :span="20" :offset="2"> <el-col :span="20" :offset="2">
<div class="searchitem"> <div class="searchitem">
<div class="itme" v-if="searchItem[0]==='' || searchItem[0]==='0'"> <div class="itme" v-if="(searchItem[0]==='' || searchItem[0]==='0') && lines.length>0">
<el-col :span="3" class="item-title"> <el-col :span="3" class="item-title">
线路 线路
</el-col> </el-col>
...@@ -251,11 +251,7 @@ export default { ...@@ -251,11 +251,7 @@ export default {
this.maxPrice=this.maxPrice.replace(/[^\.\d]/g,'') this.maxPrice=this.maxPrice.replace(/[^\.\d]/g,'')
this.maxPrice=this.maxPrice.replace('.','') this.maxPrice=this.maxPrice.replace('.','')
}, },
loadTeamDataInit(){
this.isLoading=true
this.pageIndex=1
this.loadTeamData()
},
handleCurrentChange(val) { handleCurrentChange(val) {
this.isLoading=true this.isLoading=true
this.pageIndex=parseInt(val) this.pageIndex=parseInt(val)
...@@ -267,19 +263,25 @@ export default { ...@@ -267,19 +263,25 @@ export default {
// return // return
// } // }
let lineId=0,lineTeamId=0,minTripDay=-1,maxTripDay=-1,minPrice=-1,maxPrice=-1,startDate='',endDate='',startCityId=0 let lineId=0,lineTeamId=0,minTripDay=-1,maxTripDay=-1,minPrice=-1,maxPrice=-1,startDate='',endDate='',startCityId=0
let search0="";
let search1="";
if(this.searchItem[0]!='' && this.searchItem[0]!='0') { if(this.searchItem[0]!='' && this.searchItem[0]!='0') {
this.lines.forEach(x=>{ this.lines.forEach(x=>{
if(x.name==this.searchItem[0]){ if(x.name==this.searchItem[0]){
lineId=x.id lineId=x.id;
search0=x.name;
} }
}) })
this.searchItem[0]=search0;
} }
if(this.searchItem[1]!='' && this.searchItem[1]!='0') { if(this.searchItem[1]!='' && this.searchItem[1]!='0') {
this.xilies.forEach(x=>{ this.xilies.forEach(x=>{
if(x.name==this.searchItem[1]){ if(x.name==this.searchItem[1]){
lineTeamId=x.id lineTeamId=x.id;
search1=x.name;
} }
}) })
this.searchItem[1]=search1;
} }
if(this.searchItem[4]!='' && this.searchItem[4]!='0'){ if(this.searchItem[4]!='' && this.searchItem[4]!='0'){
this.dayCount.forEach(x=>{ this.dayCount.forEach(x=>{
...@@ -422,8 +424,9 @@ export default { ...@@ -422,8 +424,9 @@ export default {
} }
}, },
changeXilie(tab, event){ changeXilie(tab, event){
this.xilies=[]
if(this.searchItem[0]===''||this.searchItem[0]==='0'){ if(this.searchItem[0]===''||this.searchItem[0]==='0'){
this.xilies=[]
this.$set(this.searchItem,1,'') this.$set(this.searchItem,1,'')
}else{ }else{
this.loadTeamDataInit() this.loadTeamDataInit()
...@@ -432,16 +435,21 @@ export default { ...@@ -432,16 +435,21 @@ export default {
this.xilies=x.lineTeam this.xilies=x.lineTeam
} }
}) })
} }
}, },
loadTeamDataInit(){
this.isLoading=true
this.pageIndex=1
this.loadTeamData()
},
// 系列 // 系列
loadRecoItems(){ loadRecoItems(){
if(this.companyId!=-1){ if(this.companyId!=-1){
this.apipost('b2b_get_GetGroupSearchItem',{'companyId':this.companyId,cityId:this.cityId},r=>{ this.apipost('b2b_get_GetGroupSearchItem',{'companyId':this.companyId,cityId:this.cityId},r=>{
console.log(r)
this.lines=r.data.data.line this.lines=r.data.data.line
// console.log("this.lines",this.lines)
if(this.$route.query.lineId&&this.$route.query.lineteamId){ if(this.$route.query.lineId&&this.$route.query.lineteamId){
this.searchItem[0]=this.$route.query.lineId this.searchItem[0]=this.$route.query.lineId
this.searchItem[1]=this.$route.query.lineteamId this.searchItem[1]=this.$route.query.lineteamId
......
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