Commit 02c183b7 authored by lixy's avatar lixy

关于欣新定位

parent 588e5b7f
...@@ -187,10 +187,14 @@ ...@@ -187,10 +187,14 @@
* 切换历史 * 切换历史
*/ */
changeArea(id){ changeArea(id){
this.barFixed = true;
let top = document.querySelector('#'+id).offsetTop; let top = document.querySelector('#'+id).offsetTop;
if(id == "history01"){ if(id == "history01"){
if(this.barFixed){
document.documentElement.scrollTop = top - 220; document.documentElement.scrollTop = top - 220;
} else {
document.documentElement.scrollTop = top - 301;
}
this.tabIndex = 0; this.tabIndex = 0;
} else if(id == "history02"){ } else if(id == "history02"){
this.tabIndex = 1; this.tabIndex = 1;
...@@ -202,6 +206,7 @@ ...@@ -202,6 +206,7 @@
this.tabIndex = 3; this.tabIndex = 3;
document.documentElement.scrollTop = top - 260; document.documentElement.scrollTop = top - 260;
} }
this.barFixed = true;
}, },
// 点击下一页回调 // 点击下一页回调
prev () { prev () {
......
...@@ -112,13 +112,9 @@ ...@@ -112,13 +112,9 @@
this.bannerList = banner; this.bannerList = banner;
}, },
chooseSelect(e) { chooseSelect(e) {
console.log(e.target.value);
this.listQuery.type = e.target.value; this.listQuery.type = e.target.value;
this.getAll(); this.getAll();
}, },
goDetails() {
console.log(2222222);
},
async getAll() { async getAll() {
let { let {
data: { data } data: { data }
......
...@@ -62,20 +62,14 @@ ...@@ -62,20 +62,14 @@
}, },
data() { data() {
return { return {
typeId: "营地类型",
dataType: [],
totalCount: "", totalCount: "",
dataDetail: [], dataDetail: [],
bannerList: [],//车型banner列表 bannerList: [],//banner列表
listQuery: { listQuery: {
type: "", type: "",
pageNo: 1, pageNo: 1,
pageSize: 6 pageSize: 6
}, },
store: "",
curId: 0,
items1: {},
curId1: 0,
looptime: 4000, // 循环时间 looptime: 4000, // 循环时间
width: 400, width: 400,
height:200, height:200,
...@@ -117,9 +111,6 @@ ...@@ -117,9 +111,6 @@
this.listQuery.type = e.target.value; this.listQuery.type = e.target.value;
this.getAll(); this.getAll();
}, },
goDetails() {
console.log(2222222);
},
async getAll() { async getAll() {
let { let {
data: { data } data: { data }
......
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