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
@ -2,7 +2,6 @@
|
|||||||
<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>
|
||||||
@ -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="
|
||||||
@ -317,19 +316,20 @@ export default {
|
|||||||
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,15 +512,13 @@ 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;
|
||||||
}
|
}
|
||||||
@ -541,31 +539,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;
|
||||||
})
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log(pinzhong);
|
console.log(pinzhong);
|
||||||
// debugger
|
// debugger
|
||||||
@ -575,7 +572,7 @@ export default {
|
|||||||
|
|
||||||
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;
|
||||||
@ -583,7 +580,7 @@ export default {
|
|||||||
},
|
},
|
||||||
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;
|
||||||
@ -653,23 +650,22 @@ 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 = [];
|
||||||
@ -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) {
|
||||||
@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
//弹框的显示隐藏
|
//弹框的显示隐藏
|
||||||
|
@ -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="
|
||||||
@ -226,7 +226,6 @@
|
|||||||
</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;
|
||||||
}
|
}
|
||||||
@ -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) {
|
||||||
@ -743,7 +739,6 @@ export default {
|
|||||||
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);
|
||||||
@ -751,7 +746,6 @@ export default {
|
|||||||
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);
|
||||||
@ -759,7 +753,6 @@ export default {
|
|||||||
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);
|
||||||
@ -767,7 +760,6 @@ export default {
|
|||||||
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) {
|
||||||
@ -878,11 +870,11 @@ export default {
|
|||||||
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,12 +919,11 @@ 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) {
|
||||||
@ -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