mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 18:56:39 +08:00
更改样式和数据
This commit is contained in:
parent
b67734b6ce
commit
9e4ca15f5d
@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div class="userloding" v-show="isLoading"></div>
|
<div class="userloding" v-show="isLoading"></div>
|
||||||
|
</transition>
|
||||||
</transition>
|
|
||||||
|
|
||||||
<Myheader></Myheader>
|
<Myheader></Myheader>
|
||||||
<div class="rc-top"></div>
|
<div class="rc-top"></div>
|
||||||
@ -112,7 +111,7 @@
|
|||||||
<div class="rc-column">
|
<div class="rc-column">
|
||||||
<div class="rc-click" @click="selectproduce(item)">
|
<div class="rc-click" @click="selectproduce(item)">
|
||||||
<span>{{ item.categoryName }}</span>
|
<span>{{ item.categoryName }}</span>
|
||||||
<i>0.001{{ item.price }}</i>
|
<i>¥{{ item.ecPrice }}</i>
|
||||||
</div>
|
</div>
|
||||||
<strong
|
<strong
|
||||||
class="
|
class="
|
||||||
@ -314,22 +313,23 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: "",
|
value: "",
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
userstype: [],
|
userstype: [],
|
||||||
activeIndex: "0",
|
activeIndex: "0",
|
||||||
allacindex:0,
|
allacindex: 0,
|
||||||
userishwo: true,
|
userishwo: true,
|
||||||
userishwo1: true,
|
userishwo1: true,
|
||||||
userishwo2: true,
|
userishwo2: true,
|
||||||
userishwo3: true,
|
userishwo3: true,
|
||||||
userishwo4: true,
|
userishwo4: true,
|
||||||
userserachlist: [{
|
userserachlist: [
|
||||||
categoryName:'', //专区
|
{
|
||||||
tagUsedAge:'',//年龄
|
categoryName: "", //专区
|
||||||
tagFunction:'',//功能
|
tagUsedAge: "", //年龄
|
||||||
tagBreed:'', //品种
|
tagFunction: "", //功能
|
||||||
|
tagBreed: "", //品种
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
activeIndex1: 0,
|
activeIndex1: 0,
|
||||||
activeIndexa: "-1",
|
activeIndexa: "-1",
|
||||||
dialogInfo1: false,
|
dialogInfo1: false,
|
||||||
@ -512,21 +512,19 @@ export default {
|
|||||||
this.activeIndex = stype;
|
this.activeIndex = stype;
|
||||||
if (stype !== "" && stype !== undefined) {
|
if (stype !== "" && stype !== undefined) {
|
||||||
this.onmessage(stype);
|
this.onmessage(stype);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.usetmessage();
|
this.usetmessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async usersearch(stype,usertype) {
|
async usersearch(stype, usertype) {
|
||||||
let data = await searchchanpin(stype,usertype,1,10);
|
let data = await searchchanpin(stype, usertype, 1, 10);
|
||||||
if (data) {
|
if (data) {
|
||||||
this.rccontair = data;
|
this.rccontair = data;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async userst() {
|
async userst() {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
let pinzhong = [];
|
let pinzhong = [];
|
||||||
let zhuanqu = [];
|
let zhuanqu = [];
|
||||||
let age = [];
|
let age = [];
|
||||||
@ -534,59 +532,58 @@ export default {
|
|||||||
let data = await userstype();
|
let data = await userstype();
|
||||||
if (data) {
|
if (data) {
|
||||||
this.userstype = data;
|
this.userstype = data;
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
}
|
}
|
||||||
this.usercatlist = this.userstype.filter((item) => item.petType == "0");
|
this.usercatlist = this.userstype.filter((item) => item.petType == "0");
|
||||||
this.usercatlist.map((element) => {
|
this.usercatlist.map((element) => {
|
||||||
if (element.name == "品种") {
|
if (element.name == "品种") {
|
||||||
pinzhong.push(element);
|
pinzhong.push(element);
|
||||||
this.catageb = pinzhong;
|
this.catageb = pinzhong;
|
||||||
this.catageb.forEach(element => {
|
this.catageb.forEach((element) => {
|
||||||
element.checked=false;
|
element.checked = false;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "功能") {
|
if (element.name == "功能") {
|
||||||
gonneg.push(element);
|
gonneg.push(element);
|
||||||
this.catagea = gonneg;
|
this.catagea = gonneg;
|
||||||
this.catagea.forEach(element => {
|
this.catagea.forEach((element) => {
|
||||||
element.checked=false;
|
element.checked = false;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "年龄") {
|
if (element.name == "年龄") {
|
||||||
age.push(element);
|
age.push(element);
|
||||||
this.catage = age;
|
this.catage = age;
|
||||||
this.catage.forEach(element => {
|
this.catage.forEach((element) => {
|
||||||
element.checked=false;
|
element.checked = false;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "专区") {
|
if (element.name == "专区") {
|
||||||
zhuanqu.push(element);
|
zhuanqu.push(element);
|
||||||
this.prefecture = zhuanqu;
|
this.prefecture = zhuanqu;
|
||||||
this.prefecture.forEach(element => {
|
this.prefecture.forEach((element) => {
|
||||||
element.checked=false;
|
element.checked = false;
|
||||||
})
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log(pinzhong);
|
console.log(pinzhong);
|
||||||
// debugger
|
// debugger
|
||||||
});
|
});
|
||||||
this.userdoglisgt = this.userstype.filter((item) => item.petType == "1");
|
this.userdoglisgt = this.userstype.filter((item) => item.petType == "1");
|
||||||
},
|
},
|
||||||
|
|
||||||
async usetmessage() {
|
async usetmessage() {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
let data = await biaome(this.activeIndex1,'', 1, 10);
|
let data = await biaome(this.activeIndex1, "", 1, 10);
|
||||||
if (data) {
|
if (data) {
|
||||||
this.rccontair = data;
|
this.rccontair = data;
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async onmessage(stype) {
|
async onmessage(stype) {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
let data = await biaomessage(stype,'',1,10);
|
let data = await biaomessage(stype, "", 1, 10);
|
||||||
if (data) {
|
if (data) {
|
||||||
this.rccontair = data;
|
this.rccontair = data;
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -634,18 +631,18 @@ export default {
|
|||||||
) {
|
) {
|
||||||
console.log("当前是电脑打开");
|
console.log("当前是电脑打开");
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.isadrond = false;
|
this.isadrond = false;
|
||||||
this.dialogInfo1 = true;
|
this.dialogInfo1 = true;
|
||||||
this.isadrond = false;
|
this.isadrond = false;
|
||||||
this.isshow = false;
|
this.isshow = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log("当前是手机打开");
|
console.log("当前是手机打开");
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.isadrond = true;
|
this.isadrond = true;
|
||||||
this.isshow = true;
|
this.isshow = true;
|
||||||
this.$refs.usercontent.style.display = "none ";
|
this.$refs.usercontent.style.display = "none ";
|
||||||
this.dialogInfo1 = false;
|
this.dialogInfo1 = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -653,24 +650,23 @@ export default {
|
|||||||
selectGoods(item, index) {
|
selectGoods(item, index) {
|
||||||
this.activeIndex1 = index;
|
this.activeIndex1 = index;
|
||||||
this.activeIndex = index;
|
this.activeIndex = index;
|
||||||
this.allacindex=index;
|
this.allacindex = index;
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
|
|
||||||
|
|
||||||
// for (let i = 0; i < this.userserachlist.length; i++) {
|
// for (let i = 0; i < this.userserachlist.length; i++) {
|
||||||
// if (!this.userserachlist.includes(petType)) {
|
// if (!this.userserachlist.includes(petType)) {
|
||||||
// this.userserachlist.push(petType);
|
// this.userserachlist.push(petType);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.userserachlist=[
|
this.userserachlist = [
|
||||||
{
|
{
|
||||||
categoryName:'', //专区
|
categoryName: "", //专区
|
||||||
tagUsedAge:'',//年龄
|
tagUsedAge: "", //年龄
|
||||||
tagFunction:'',//功能
|
tagFunction: "", //功能
|
||||||
tagBreed:'', //品种
|
tagBreed: "", //品种
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
let pinzhong = [];
|
let pinzhong = [];
|
||||||
let zhuanqu = [];
|
let zhuanqu = [];
|
||||||
let age = [];
|
let age = [];
|
||||||
let gonneg = [];
|
let gonneg = [];
|
||||||
@ -678,23 +674,19 @@ export default {
|
|||||||
this.usercatlist.map((element) => {
|
this.usercatlist.map((element) => {
|
||||||
if (element.name == "品种") {
|
if (element.name == "品种") {
|
||||||
pinzhong.push(element);
|
pinzhong.push(element);
|
||||||
|
|
||||||
this.catageb = pinzhong;
|
this.catageb = pinzhong;
|
||||||
}
|
}
|
||||||
if (element.name == "功能") {
|
if (element.name == "功能") {
|
||||||
gonneg.push(element);
|
gonneg.push(element);
|
||||||
this.catagea = gonneg;
|
this.catagea = gonneg;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "年龄") {
|
if (element.name == "年龄") {
|
||||||
age.push(element);
|
age.push(element);
|
||||||
this.catage = age;
|
this.catage = age;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "专区") {
|
if (element.name == "专区") {
|
||||||
zhuanqu.push(element);
|
zhuanqu.push(element);
|
||||||
this.prefecture = zhuanqu;
|
this.prefecture = zhuanqu;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.activeIndex1 == 1) {
|
} else if (this.activeIndex1 == 1) {
|
||||||
@ -702,28 +694,28 @@ export default {
|
|||||||
if (element.name == "品种") {
|
if (element.name == "品种") {
|
||||||
pinzhong.push(element);
|
pinzhong.push(element);
|
||||||
this.catageb = pinzhong;
|
this.catageb = pinzhong;
|
||||||
this.catageb.forEach((element) => {
|
this.catageb.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "功能") {
|
if (element.name == "功能") {
|
||||||
gonneg.push(element);
|
gonneg.push(element);
|
||||||
this.catagea = gonneg;
|
this.catagea = gonneg;
|
||||||
this.catagea.forEach((element) => {
|
this.catagea.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "年龄") {
|
if (element.name == "年龄") {
|
||||||
age.push(element);
|
age.push(element);
|
||||||
this.catage = age;
|
this.catage = age;
|
||||||
this.catage.forEach((element) => {
|
this.catage.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "专区") {
|
if (element.name == "专区") {
|
||||||
zhuanqu.push(element);
|
zhuanqu.push(element);
|
||||||
this.prefecture = zhuanqu;
|
this.prefecture = zhuanqu;
|
||||||
this.prefecture.forEach((element) => {
|
this.prefecture.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -731,7 +723,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.activeIndex = index;
|
this.activeIndex = index;
|
||||||
|
|
||||||
},
|
},
|
||||||
selectGoodsa(item, index) {
|
selectGoodsa(item, index) {
|
||||||
this.activeIndex1 = index;
|
this.activeIndex1 = index;
|
||||||
@ -757,12 +748,12 @@ export default {
|
|||||||
this.activeIndexc = index;
|
this.activeIndexc = index;
|
||||||
this.userishwo1 = !this.userishwo1;
|
this.userishwo1 = !this.userishwo1;
|
||||||
console.log(this.userishwo1);
|
console.log(this.userishwo1);
|
||||||
if(item.checked==false){
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.userserachlist[0].tagUsedAge=item.tagName;
|
this.userserachlist[0].tagUsedAge = item.tagName;
|
||||||
this.$refs.chosebox1[index].className = "active";
|
this.$refs.chosebox1[index].className = "active";
|
||||||
}else{
|
} else {
|
||||||
this.userserachlist[0].tagUsedAge='';
|
this.userserachlist[0].tagUsedAge = "";
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.chosebox1[index].className = "unactive";
|
this.$refs.chosebox1[index].className = "unactive";
|
||||||
}
|
}
|
||||||
@ -772,20 +763,20 @@ export default {
|
|||||||
// this.userserachlist.push(tagUsedAge);
|
// this.userserachlist.push(tagUsedAge);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
},
|
},
|
||||||
selectagc(item, index) {
|
selectagc(item, index) {
|
||||||
// let tagFunction = {};
|
// let tagFunction = {};
|
||||||
this.activeIndexd = index;
|
this.activeIndexd = index;
|
||||||
this.userishwo2 = !this.userishwo2;
|
this.userishwo2 = !this.userishwo2;
|
||||||
if(item.checked==false){
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.$refs.cgosebox4[index].className = "active";
|
this.$refs.cgosebox4[index].className = "active";
|
||||||
this.userserachlist[0].tagFunction=item.tagName;
|
this.userserachlist[0].tagFunction = item.tagName;
|
||||||
}else{
|
} else {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.cgosebox4[index].className = "unactive";
|
this.$refs.cgosebox4[index].className = "unactive";
|
||||||
this.userserachlist[0].tagFunction='';
|
this.userserachlist[0].tagFunction = "";
|
||||||
}
|
}
|
||||||
// if (this.userishwo2 == false) {
|
// if (this.userishwo2 == false) {
|
||||||
// tagFunction = {
|
// tagFunction = {
|
||||||
@ -803,20 +794,20 @@ export default {
|
|||||||
// this.userserachlist.push(tagFunction);
|
// this.userserachlist.push(tagFunction);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
},
|
},
|
||||||
selectagd(item, index) {
|
selectagd(item, index) {
|
||||||
let tagBreed = {};
|
let tagBreed = {};
|
||||||
this.activeIndexe = index;
|
this.activeIndexe = index;
|
||||||
this.userishwo3 = !this.userishwo3;
|
this.userishwo3 = !this.userishwo3;
|
||||||
if(item.checked==false){
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.$refs.chosebox3[index].className = "active";
|
this.$refs.chosebox3[index].className = "active";
|
||||||
this.userserachlist[0].tagBreed=item.tagName;
|
this.userserachlist[0].tagBreed = item.tagName;
|
||||||
}else{
|
} else {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.chosebox3[index].className = "unactive";
|
this.$refs.chosebox3[index].className = "unactive";
|
||||||
this.userserachlist[0].tagBreed='';
|
this.userserachlist[0].tagBreed = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.$refs.chosebox3[index].className = "unactive";
|
// this.$refs.chosebox3[index].className = "unactive";
|
||||||
@ -825,19 +816,19 @@ export default {
|
|||||||
// this.userserachlist.push(tagBreed);
|
// this.userserachlist.push(tagBreed);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
},
|
},
|
||||||
selectproduct(item, index) {
|
selectproduct(item, index) {
|
||||||
this.activeIndexb = index;
|
this.activeIndexb = index;
|
||||||
// console.log(this.userishwo=!this.userishwo)
|
// console.log(this.userishwo=!this.userishwo)
|
||||||
if(item.checked==false){
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.$refs.chosebox[index].className = "active";
|
this.$refs.chosebox[index].className = "active";
|
||||||
this.userserachlist[0].categoryName=item.tagName;
|
this.userserachlist[0].categoryName = item.tagName;
|
||||||
}else{
|
} else {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.chosebox[index].className = "unactive";
|
this.$refs.chosebox[index].className = "unactive";
|
||||||
this.userserachlist[0].categoryName='';
|
this.userserachlist[0].categoryName = "";
|
||||||
}
|
}
|
||||||
// if (this.userishwo == false) {
|
// if (this.userishwo == false) {
|
||||||
// console.log("====");
|
// console.log("====");
|
||||||
@ -857,7 +848,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
},
|
},
|
||||||
|
|
||||||
//弹框的显示隐藏
|
//弹框的显示隐藏
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
<div @click="onSearch" class="rc-search">搜索</div>
|
<div @click="onSearch" class="rc-search">搜索</div>
|
||||||
</template>
|
</template>
|
||||||
</van-search>
|
</van-search>
|
||||||
<div class="ts-stand">
|
<div class="ts-stand">
|
||||||
<span @click="onSearch" class="ts-standard-btn">搜索</span>
|
<span @click="onSearch" class="ts-standard-btn">搜索</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rc-max-width--xl rc-title">
|
<div class="rc-max-width--xl rc-title">
|
||||||
<h2>热门搜索</h2>
|
<h2>热门搜索</h2>
|
||||||
@ -120,7 +120,7 @@
|
|||||||
<div class="rc-column">
|
<div class="rc-column">
|
||||||
<div class="rc-click" @click="selectproduce(item)">
|
<div class="rc-click" @click="selectproduce(item)">
|
||||||
<span>{{ item.categoryName }}</span>
|
<span>{{ item.categoryName }}</span>
|
||||||
<i>0.001{{ item.price }}</i>
|
<i>¥{{ item.ecPrice }}</i>
|
||||||
</div>
|
</div>
|
||||||
<strong
|
<strong
|
||||||
class="
|
class="
|
||||||
@ -168,7 +168,7 @@
|
|||||||
<li
|
<li
|
||||||
v-for="(item, index) in prefecture"
|
v-for="(item, index) in prefecture"
|
||||||
:key="index"
|
:key="index"
|
||||||
ref="chosebox"
|
ref="chosebox"
|
||||||
@click="selectproduct(item, index)"
|
@click="selectproduct(item, index)"
|
||||||
:class="item.checked ? 'active' : 'unactive'"
|
:class="item.checked ? 'active' : 'unactive'"
|
||||||
>
|
>
|
||||||
@ -199,7 +199,7 @@
|
|||||||
ref="cgosebox4"
|
ref="cgosebox4"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="selectagc(item, index)"
|
@click="selectagc(item, index)"
|
||||||
:class="item.checked ? 'active' : 'unactive'"
|
:class="item.checked ? 'active' : 'unactive'"
|
||||||
>
|
>
|
||||||
{{ item.tagName }}
|
{{ item.tagName }}
|
||||||
</li>
|
</li>
|
||||||
@ -219,14 +219,13 @@
|
|||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div class="rc-button">
|
<div class="rc-button">
|
||||||
<span @click="openclose()">取消</span>
|
<span @click="openclose()">取消</span>
|
||||||
<em @click="openclose()">确认</em>
|
<em @click="openclose()">确认</em>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<el-dialog :visible.sync="dialogInfo1" hegight="700px" v-if="!isadrond">
|
<el-dialog :visible.sync="dialogInfo1" hegight="700px" v-if="!isadrond">
|
||||||
<div class="usersearch">
|
<div class="usersearch">
|
||||||
@ -325,13 +324,14 @@ export default {
|
|||||||
value: "",
|
value: "",
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
|
|
||||||
userserachlist: [{
|
userserachlist: [
|
||||||
categoryName:'', //专区
|
{
|
||||||
tagUsedAge:'',//年龄
|
categoryName: "", //专区
|
||||||
tagFunction:'',//功能
|
tagUsedAge: "", //年龄
|
||||||
tagBreed:'', //品种
|
tagFunction: "", //功能
|
||||||
|
tagBreed: "", //品种
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
userstype: [],
|
userstype: [],
|
||||||
activeIndex: "-1",
|
activeIndex: "-1",
|
||||||
activeIndex1: 0,
|
activeIndex1: 0,
|
||||||
@ -573,8 +573,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async usersearch(stype,usertype) {
|
async usersearch(stype, usertype) {
|
||||||
let data = await searchchanpin(stype,usertype,1,10);
|
let data = await searchchanpin(stype, usertype, 1, 10);
|
||||||
if (data) {
|
if (data) {
|
||||||
this.rccontair = data;
|
this.rccontair = data;
|
||||||
}
|
}
|
||||||
@ -595,30 +595,30 @@ export default {
|
|||||||
if (element.name == "品种") {
|
if (element.name == "品种") {
|
||||||
pinzhong.push(element);
|
pinzhong.push(element);
|
||||||
this.catageb = pinzhong;
|
this.catageb = pinzhong;
|
||||||
this.catageb.forEach((element) => {
|
this.catageb.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "功能") {
|
if (element.name == "功能") {
|
||||||
gonneg.push(element);
|
gonneg.push(element);
|
||||||
this.catagea = gonneg;
|
this.catagea = gonneg;
|
||||||
this.catagea.forEach((element) => {
|
this.catagea.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "年龄") {
|
if (element.name == "年龄") {
|
||||||
age.push(element);
|
age.push(element);
|
||||||
this.catage = age;
|
this.catage = age;
|
||||||
this.catage.forEach((element) => {
|
this.catage.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (element.name == "专区") {
|
if (element.name == "专区") {
|
||||||
zhuanqu.push(element);
|
zhuanqu.push(element);
|
||||||
this.prefecture = zhuanqu;
|
this.prefecture = zhuanqu;
|
||||||
this.prefecture.forEach((element) => {
|
this.prefecture.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -630,7 +630,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.userstandard[0].style.margin = 0 + "px";
|
this.$refs.userstandard[0].style.margin = 0 + "px";
|
||||||
});
|
});
|
||||||
let data = await biaome(this.activeIndex1,this.value, 1, 10);
|
let data = await biaome(this.activeIndex1, this.value, 1, 10);
|
||||||
if (data) {
|
if (data) {
|
||||||
this.rccontair = data;
|
this.rccontair = data;
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
@ -658,7 +658,7 @@ export default {
|
|||||||
},
|
},
|
||||||
openclose() {
|
openclose() {
|
||||||
this.dialogInfo1 = false;
|
this.dialogInfo1 = false;
|
||||||
this.isshow=false
|
this.isshow = false;
|
||||||
},
|
},
|
||||||
ifadroind() {
|
ifadroind() {
|
||||||
var sUserAgent = navigator.userAgent.toLowerCase();
|
var sUserAgent = navigator.userAgent.toLowerCase();
|
||||||
@ -702,11 +702,11 @@ export default {
|
|||||||
},
|
},
|
||||||
//搜索
|
//搜索
|
||||||
onSearch(e) {
|
onSearch(e) {
|
||||||
this.usetmessage(this.activeIndex1,this.value,);
|
this.usetmessage(this.activeIndex1, this.value);
|
||||||
},
|
},
|
||||||
selectGoods(item, index) {
|
selectGoods(item, index) {
|
||||||
this.activeIndex1 = index;
|
this.activeIndex1 = index;
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
let pinzhong = [];
|
let pinzhong = [];
|
||||||
let zhuanqu = [];
|
let zhuanqu = [];
|
||||||
let age = [];
|
let age = [];
|
||||||
@ -717,22 +717,18 @@ export default {
|
|||||||
pinzhong.push(element);
|
pinzhong.push(element);
|
||||||
|
|
||||||
this.catageb = pinzhong;
|
this.catageb = pinzhong;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "功能") {
|
if (element.name == "功能") {
|
||||||
gonneg.push(element);
|
gonneg.push(element);
|
||||||
this.catagea = gonneg;
|
this.catagea = gonneg;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "年龄") {
|
if (element.name == "年龄") {
|
||||||
age.push(element);
|
age.push(element);
|
||||||
this.catage = age;
|
this.catage = age;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "专区") {
|
if (element.name == "专区") {
|
||||||
zhuanqu.push(element);
|
zhuanqu.push(element);
|
||||||
this.prefecture = zhuanqu;
|
this.prefecture = zhuanqu;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.activeIndex1 == 1) {
|
} else if (this.activeIndex1 == 1) {
|
||||||
@ -740,34 +736,30 @@ export default {
|
|||||||
if (element.name == "品种") {
|
if (element.name == "品种") {
|
||||||
pinzhong.push(element);
|
pinzhong.push(element);
|
||||||
this.catageb = pinzhong;
|
this.catageb = pinzhong;
|
||||||
this.catageb.forEach((element) => {
|
this.catageb.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "功能") {
|
if (element.name == "功能") {
|
||||||
gonneg.push(element);
|
gonneg.push(element);
|
||||||
this.catagea = gonneg;
|
this.catagea = gonneg;
|
||||||
this.catagea.forEach((element) => {
|
this.catagea.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "年龄") {
|
if (element.name == "年龄") {
|
||||||
age.push(element);
|
age.push(element);
|
||||||
this.catage = age;
|
this.catage = age;
|
||||||
this.catage.forEach((element) => {
|
this.catage.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
if (element.name == "专区") {
|
if (element.name == "专区") {
|
||||||
zhuanqu.push(element);
|
zhuanqu.push(element);
|
||||||
this.prefecture = zhuanqu;
|
this.prefecture = zhuanqu;
|
||||||
this.prefecture.forEach((element) => {
|
this.prefecture.forEach((element) => {
|
||||||
element.checked = false;
|
element.checked = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -845,10 +837,10 @@ export default {
|
|||||||
// this.userishwo1 = !this.userishwo1;
|
// this.userishwo1 = !this.userishwo1;
|
||||||
if (item.checked == false) {
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.userserachlist[0].tagUsedAge=item.tagName;
|
this.userserachlist[0].tagUsedAge = item.tagName;
|
||||||
this.$refs.chosebox1[index].className = "active";
|
this.$refs.chosebox1[index].className = "active";
|
||||||
} else {
|
} else {
|
||||||
this.userserachlist[0].tagUsedAge='';
|
this.userserachlist[0].tagUsedAge = "";
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.chosebox1[index].className = "unactive";
|
this.$refs.chosebox1[index].className = "unactive";
|
||||||
}
|
}
|
||||||
@ -867,7 +859,7 @@ export default {
|
|||||||
// this.userserachlist.push(tagUsedAge);
|
// this.userserachlist.push(tagUsedAge);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
this.activeIndexc = index;
|
this.activeIndexc = index;
|
||||||
},
|
},
|
||||||
selectagc(item, index) {
|
selectagc(item, index) {
|
||||||
@ -875,14 +867,14 @@ export default {
|
|||||||
// petType: this.activeIndex1,
|
// petType: this.activeIndex1,
|
||||||
// tagFunction: item.tagName,
|
// tagFunction: item.tagName,
|
||||||
// };
|
// };
|
||||||
if (item.checked == false) {
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.$refs.cgosebox4[index].className = "active";
|
this.$refs.cgosebox4[index].className = "active";
|
||||||
this.userserachlist[0].tagFunction=item.tagName;
|
this.userserachlist[0].tagFunction = item.tagName;
|
||||||
} else {
|
} else {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.cgosebox4[index].className = "unactive";
|
this.$refs.cgosebox4[index].className = "unactive";
|
||||||
this.userserachlist[0].tagFunction='';
|
this.userserachlist[0].tagFunction = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// for (let i = 0; i < this.userserachlist.length; i++) {
|
// for (let i = 0; i < this.userserachlist.length; i++) {
|
||||||
@ -890,7 +882,7 @@ export default {
|
|||||||
// this.userserachlist.push(tagFunction);
|
// this.userserachlist.push(tagFunction);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
this.activeIndexd = index;
|
this.activeIndexd = index;
|
||||||
},
|
},
|
||||||
selectagd(item, index) {
|
selectagd(item, index) {
|
||||||
@ -898,11 +890,11 @@ export default {
|
|||||||
if (item.checked == false) {
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.$refs.chosebox3[index].className = "active";
|
this.$refs.chosebox3[index].className = "active";
|
||||||
this.userserachlist[0].tagBreed=item.tagName;
|
this.userserachlist[0].tagBreed = item.tagName;
|
||||||
} else {
|
} else {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.chosebox3[index].className = "unactive";
|
this.$refs.chosebox3[index].className = "unactive";
|
||||||
this.userserachlist[0].tagBreed='';
|
this.userserachlist[0].tagBreed = "";
|
||||||
}
|
}
|
||||||
// if (this.userishwo3 == false) {
|
// if (this.userishwo3 == false) {
|
||||||
// tagBreed = {
|
// tagBreed = {
|
||||||
@ -919,7 +911,7 @@ export default {
|
|||||||
// this.userserachlist.push(tagBreed);
|
// this.userserachlist.push(tagBreed);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
this.activeIndexe = index;
|
this.activeIndexe = index;
|
||||||
},
|
},
|
||||||
selectproduct(item, index) {
|
selectproduct(item, index) {
|
||||||
@ -927,13 +919,12 @@ export default {
|
|||||||
if (item.checked == false) {
|
if (item.checked == false) {
|
||||||
item.checked = true;
|
item.checked = true;
|
||||||
this.$refs.chosebox[index].className = "active";
|
this.$refs.chosebox[index].className = "active";
|
||||||
this.userserachlist[0].categoryName=item.tagName;
|
this.userserachlist[0].categoryName = item.tagName;
|
||||||
} else {
|
} else {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
this.$refs.chosebox[index].className = "unactive";
|
this.$refs.chosebox[index].className = "unactive";
|
||||||
this.userserachlist[0].categoryName='';
|
this.userserachlist[0].categoryName = "";
|
||||||
|
}
|
||||||
}
|
|
||||||
// this.userishwo = !this.userishwo;
|
// this.userishwo = !this.userishwo;
|
||||||
// if (this.userishwo == false) {
|
// if (this.userishwo == false) {
|
||||||
// categoryName = {
|
// categoryName = {
|
||||||
@ -953,7 +944,7 @@ export default {
|
|||||||
// console.log(this.userserachlist);
|
// console.log(this.userserachlist);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
this.usersearch(this.userserachlist,this.activeIndex1);
|
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||||
},
|
},
|
||||||
|
|
||||||
//弹框的显示隐藏
|
//弹框的显示隐藏
|
||||||
|
Loading…
Reference in New Issue
Block a user