Commit cdafa292 authored by 华国豪's avatar 华国豪 🙄

绑定列表数据

parent 796f7823
...@@ -121,4 +121,22 @@ ...@@ -121,4 +121,22 @@
} }
.mg-r-10{ .mg-r-10{
margin-right: 10px; margin-right: 10px;
}
.inputActive .el-row .el-col.el-col-6::-webkit-scrollbar,.inputActive2 .el-row .el-col.el-col-6::-webkit-scrollbar{
/*滚动条整体样式*/
width: 4px;
/*高宽分别对应横竖滚动条的尺寸*/
height: 8px;
}
.inputActive .el-row .el-col.el-col-6::-webkit-scrollbar-thumb ,.inputActive2 .el-row .el-col.el-col-6::-webkit-scrollbar-thumb{
/*滚动条里面小方块*/
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9;
}
.inputActive .el-row .el-col.el-col-6::-webkit-scrollbar-track ,.inputActive2 .el-row .el-col.el-col-6::-webkit-scrollbar-track{
/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px;
background: #EDEDED;
} }
\ No newline at end of file
...@@ -57,6 +57,10 @@ ...@@ -57,6 +57,10 @@
z-index: 3; z-index: 3;
background-color: white; background-color: white;
} }
.inputActive .el-row .el-col.el-col-6{
height: 400px;
overflow: auto;
}
.fh-search-box .fh-search-box-input div:nth-child(2){ .fh-search-box .fh-search-box-input div:nth-child(2){
width: 77px; width: 77px;
justify-content: center; justify-content: center;
...@@ -82,7 +86,7 @@ ...@@ -82,7 +86,7 @@
.city-tag{ .city-tag{
padding: 13px 20px; padding: 13px 20px;
color: #333; color: #333;
width: 100%; width: 99%;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
} }
...@@ -121,11 +125,13 @@ ...@@ -121,11 +125,13 @@
font-size:14px; font-size:14px;
color: #333; color: #333;
font-weight:bold; font-weight:bold;
flex: 1;
} }
.city-list>p{ .city-list>p{
color: #888888; color: #888888;
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: 12px;
flex: 6;
} }
.city-list>p span{ .city-list>p span{
display: inline-block; display: inline-block;
...@@ -641,19 +647,19 @@ ...@@ -641,19 +647,19 @@
<div v-show="inputActive" class="inputActive" @click.stop> <div v-show="inputActive" class="inputActive" @click.stop>
<el-row v-if="CCList.length>0 "> <el-row v-if="CCList.length>0 ">
<el-col :span="6"> <el-col :span="6">
<div class="city-tag __cp" v-for="(item, index) in CCList" @click="CCListActive = index" :class="{'active': CCListActive == index}" :key="index"> <div class="city-tag __cp" v-for="(item, index) in CCList" @click="CCListActive = index" :class="{'active': CCListActive == index}" :key="index" >
<p @click="goListPage(1, item.short, item.name, index)">{{item.name}}</p> <p >{{item.Country_Name}}</p>
<div class="f12 text2"> <div class="f12 text2">
<span @click="goListPage(2, s.number, s.name, sIndex)" v-for="(s, sIndex) in item.cities" :key="sIndex">{{s.name}}</span> <span v-for="(s, sIndex) in item.Cities" :key="sIndex">{{s.City_Name}}</span>
</div> </div>
<div class="triangle-up"></div> <div class="triangle-up"></div>
</div> </div>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<div class="city-list"> <div class="city-list">
<span class="PingFangR __cp" @click="goListPage(1, CCList[CCListActive].short, CCList[CCListActive].name)">{{CCList[CCListActive].name}}</span> <span class="PingFangR __cp" @click="goListPage(1, CCList[CCListActive].Country_Code, CCList[CCListActive].Country_Name)">{{CCList[CCListActive].Country_Name}}</span>
<p> <p>
<span @click="goListPage(2, CCList[CCListActive].number, item.name, index)" class="f14 __cp" v-for="(item, index) in CCList[CCListActive].cities" :key="index">{{item.name}}</span> <span @click="goListPage(2, item.City_Code, item.City_Name, index)" class="f14 __cp" v-for="(item, index) in CCList[CCListActive].Cities" :key="index">{{item.City_Name}}</span>
</p> </p>
</div> </div>
</el-col> </el-col>
...@@ -665,10 +671,10 @@ ...@@ -665,10 +671,10 @@
<div :style="`background-image: url(${item.src})`"> <div :style="`background-image: url(${item.src})`">
<span>{{item.name}}</span> <span>{{item.name}}</span>
<div class="city-m-b"> <div class="city-m-b">
<span>门票</span> <span @click.stop="goList2(item, 'menpiao')">门票</span>
<span>餐食</span> <span @click.stop="goList2(item, 'canshi')">餐食</span>
<span>一日游</span> <span @click.stop="goList2(item, 'yiri')">一日游</span>
<img src="../../assets/img/freeHome/more_s.png" alt=""> <img @click.stop="goList2(item)" src="../../assets/img/freeHome/more_s.png" alt="">
</div> </div>
</div> </div>
</div> </div>
...@@ -934,22 +940,28 @@ export default { ...@@ -934,22 +940,28 @@ export default {
name: '东京', name: '东京',
src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335633.jpg", src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335633.jpg",
id: 1, id: 1,
number: "A01-003-00001"
},{ },{
name: '京都', name: '京都',
src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335636.jpg", src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335636.jpg",
id: 2, id: 2,
number: "A01-003-00003",
},{ },{
name: '大阪', name: '大阪',
src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335628.jpg", src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335628.jpg",
id: 3, id: 3,
number: "A01-003-00002"
},{ },{
name: '首尔', name: '首尔',
src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335683.jpg", src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335683.jpg",
id: 0, id: 0,
number: 'A01-004-00001'
},{ },{
name: '曼谷', name: '曼谷',
src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335631.jpg", src: "http://imgfile.oytour.com/New/Upload/Cloud/2019-08/20190821052335631.jpg",
id: 4, id: 4,
number: "A01-010-00001"
}], }],
KkdayDomain: "", KkdayDomain: "",
CCList: [], CCList: [],
...@@ -963,6 +975,17 @@ export default { ...@@ -963,6 +975,17 @@ export default {
this.getCCList() this.getCCList()
}, },
methods: { methods: {
goList2(obj, type){
this.$router.push({
name: "FreeList2",
query: {
id: obj.number,
type: 2,
name: obj.name,
CCListActive: 0,
}
});
},
goListPage(type, id, name, index){ goListPage(type, id, name, index){
this.inputActive = false; this.inputActive = false;
let url = type == 1 ? "FreeList" : "FreeList2" let url = type == 1 ? "FreeList" : "FreeList2"
...@@ -990,8 +1013,14 @@ export default { ...@@ -990,8 +1013,14 @@ export default {
{}, {},
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let data = res.data.data.countries let data = res.data.data.Countries
this.CCList = data let deleteIdiot = []
data.map(x=>{
if(x.Country_Name !== "台湾" && x.Country_Name !== "香港" && x.Country_Name !== "澳门") {
deleteIdiot.push(x)
}
})
this.CCList = deleteIdiot
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
This diff is collapsed.
This diff is collapsed.
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