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>
|
||||
<transition name="fade">
|
||||
<div class="userloding" v-show="isLoading"></div>
|
||||
|
||||
</transition>
|
||||
|
||||
<Myheader></Myheader>
|
||||
@ -112,7 +111,7 @@
|
||||
<div class="rc-column">
|
||||
<div class="rc-click" @click="selectproduce(item)">
|
||||
<span>{{ item.categoryName }}</span>
|
||||
<i>0.001{{ item.price }}</i>
|
||||
<i>¥{{ item.ecPrice }}</i>
|
||||
</div>
|
||||
<strong
|
||||
class="
|
||||
@ -323,13 +322,14 @@ export default {
|
||||
userishwo2: true,
|
||||
userishwo3: true,
|
||||
userishwo4: true,
|
||||
userserachlist: [{
|
||||
categoryName:'', //专区
|
||||
tagUsedAge:'',//年龄
|
||||
tagFunction:'',//功能
|
||||
tagBreed:'', //品种
|
||||
|
||||
}],
|
||||
userserachlist: [
|
||||
{
|
||||
categoryName: "", //专区
|
||||
tagUsedAge: "", //年龄
|
||||
tagFunction: "", //功能
|
||||
tagBreed: "", //品种
|
||||
},
|
||||
],
|
||||
activeIndex1: 0,
|
||||
activeIndexa: "-1",
|
||||
dialogInfo1: false,
|
||||
@ -512,11 +512,9 @@ export default {
|
||||
this.activeIndex = stype;
|
||||
if (stype !== "" && stype !== undefined) {
|
||||
this.onmessage(stype);
|
||||
|
||||
} else {
|
||||
this.usetmessage();
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
async usersearch(stype, usertype) {
|
||||
@ -541,31 +539,30 @@ export default {
|
||||
if (element.name == "品种") {
|
||||
pinzhong.push(element);
|
||||
this.catageb = pinzhong;
|
||||
this.catageb.forEach(element => {
|
||||
this.catageb.forEach((element) => {
|
||||
element.checked = false;
|
||||
})
|
||||
});
|
||||
}
|
||||
if (element.name == "功能") {
|
||||
gonneg.push(element);
|
||||
this.catagea = gonneg;
|
||||
this.catagea.forEach(element => {
|
||||
this.catagea.forEach((element) => {
|
||||
element.checked = false;
|
||||
})
|
||||
});
|
||||
}
|
||||
if (element.name == "年龄") {
|
||||
age.push(element);
|
||||
this.catage = age;
|
||||
this.catage.forEach(element => {
|
||||
this.catage.forEach((element) => {
|
||||
element.checked = false;
|
||||
})
|
||||
});
|
||||
}
|
||||
if (element.name == "专区") {
|
||||
zhuanqu.push(element);
|
||||
this.prefecture = zhuanqu;
|
||||
this.prefecture.forEach(element => {
|
||||
this.prefecture.forEach((element) => {
|
||||
element.checked = false;
|
||||
})
|
||||
|
||||
});
|
||||
}
|
||||
console.log(pinzhong);
|
||||
// debugger
|
||||
@ -575,7 +572,7 @@ export default {
|
||||
|
||||
async usetmessage() {
|
||||
this.isLoading = true;
|
||||
let data = await biaome(this.activeIndex1,'', 1, 10);
|
||||
let data = await biaome(this.activeIndex1, "", 1, 10);
|
||||
if (data) {
|
||||
this.rccontair = data;
|
||||
this.isLoading = false;
|
||||
@ -583,7 +580,7 @@ export default {
|
||||
},
|
||||
async onmessage(stype) {
|
||||
this.isLoading = true;
|
||||
let data = await biaomessage(stype,'',1,10);
|
||||
let data = await biaomessage(stype, "", 1, 10);
|
||||
if (data) {
|
||||
this.rccontair = data;
|
||||
this.isLoading = false;
|
||||
@ -656,7 +653,6 @@ export default {
|
||||
this.allacindex = index;
|
||||
this.usersearch(this.userserachlist, this.activeIndex1);
|
||||
|
||||
|
||||
// for (let i = 0; i < this.userserachlist.length; i++) {
|
||||
// if (!this.userserachlist.includes(petType)) {
|
||||
// this.userserachlist.push(petType);
|
||||
@ -664,12 +660,12 @@ export default {
|
||||
// }
|
||||
this.userserachlist = [
|
||||
{
|
||||
categoryName:'', //专区
|
||||
tagUsedAge:'',//年龄
|
||||
tagFunction:'',//功能
|
||||
tagBreed:'', //品种
|
||||
}
|
||||
]
|
||||
categoryName: "", //专区
|
||||
tagUsedAge: "", //年龄
|
||||
tagFunction: "", //功能
|
||||
tagBreed: "", //品种
|
||||
},
|
||||
];
|
||||
let pinzhong = [];
|
||||
let zhuanqu = [];
|
||||
let age = [];
|
||||
@ -678,23 +674,19 @@ export default {
|
||||
this.usercatlist.map((element) => {
|
||||
if (element.name == "品种") {
|
||||
pinzhong.push(element);
|
||||
|
||||
this.catageb = pinzhong;
|
||||
}
|
||||
if (element.name == "功能") {
|
||||
gonneg.push(element);
|
||||
this.catagea = gonneg;
|
||||
|
||||
}
|
||||
if (element.name == "年龄") {
|
||||
age.push(element);
|
||||
this.catage = age;
|
||||
|
||||
}
|
||||
if (element.name == "专区") {
|
||||
zhuanqu.push(element);
|
||||
this.prefecture = zhuanqu;
|
||||
|
||||
}
|
||||
});
|
||||
} else if (this.activeIndex1 == 1) {
|
||||
@ -731,7 +723,6 @@ export default {
|
||||
}
|
||||
|
||||
this.activeIndex = index;
|
||||
|
||||
},
|
||||
selectGoodsa(item, index) {
|
||||
this.activeIndex1 = index;
|
||||
@ -762,7 +753,7 @@ export default {
|
||||
this.userserachlist[0].tagUsedAge = item.tagName;
|
||||
this.$refs.chosebox1[index].className = "active";
|
||||
} else {
|
||||
this.userserachlist[0].tagUsedAge='';
|
||||
this.userserachlist[0].tagUsedAge = "";
|
||||
item.checked = false;
|
||||
this.$refs.chosebox1[index].className = "unactive";
|
||||
}
|
||||
@ -785,7 +776,7 @@ export default {
|
||||
} else {
|
||||
item.checked = false;
|
||||
this.$refs.cgosebox4[index].className = "unactive";
|
||||
this.userserachlist[0].tagFunction='';
|
||||
this.userserachlist[0].tagFunction = "";
|
||||
}
|
||||
// if (this.userishwo2 == false) {
|
||||
// tagFunction = {
|
||||
@ -816,7 +807,7 @@ export default {
|
||||
} else {
|
||||
item.checked = false;
|
||||
this.$refs.chosebox3[index].className = "unactive";
|
||||
this.userserachlist[0].tagBreed='';
|
||||
this.userserachlist[0].tagBreed = "";
|
||||
}
|
||||
|
||||
// this.$refs.chosebox3[index].className = "unactive";
|
||||
@ -837,7 +828,7 @@ export default {
|
||||
} else {
|
||||
item.checked = false;
|
||||
this.$refs.chosebox[index].className = "unactive";
|
||||
this.userserachlist[0].categoryName='';
|
||||
this.userserachlist[0].categoryName = "";
|
||||
}
|
||||
// if (this.userishwo == false) {
|
||||
// console.log("====");
|
||||
|
@ -120,7 +120,7 @@
|
||||
<div class="rc-column">
|
||||
<div class="rc-click" @click="selectproduce(item)">
|
||||
<span>{{ item.categoryName }}</span>
|
||||
<i>0.001{{ item.price }}</i>
|
||||
<i>¥{{ item.ecPrice }}</i>
|
||||
</div>
|
||||
<strong
|
||||
class="
|
||||
@ -226,7 +226,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<el-dialog :visible.sync="dialogInfo1" hegight="700px" v-if="!isadrond">
|
||||
<div class="usersearch">
|
||||
@ -325,13 +324,14 @@ export default {
|
||||
value: "",
|
||||
isLoading: true,
|
||||
|
||||
userserachlist: [{
|
||||
categoryName:'', //专区
|
||||
tagUsedAge:'',//年龄
|
||||
tagFunction:'',//功能
|
||||
tagBreed:'', //品种
|
||||
|
||||
}],
|
||||
userserachlist: [
|
||||
{
|
||||
categoryName: "", //专区
|
||||
tagUsedAge: "", //年龄
|
||||
tagFunction: "", //功能
|
||||
tagBreed: "", //品种
|
||||
},
|
||||
],
|
||||
userstype: [],
|
||||
activeIndex: "-1",
|
||||
activeIndex1: 0,
|
||||
@ -658,7 +658,7 @@ export default {
|
||||
},
|
||||
openclose() {
|
||||
this.dialogInfo1 = false;
|
||||
this.isshow=false
|
||||
this.isshow = false;
|
||||
},
|
||||
ifadroind() {
|
||||
var sUserAgent = navigator.userAgent.toLowerCase();
|
||||
@ -702,7 +702,7 @@ export default {
|
||||
},
|
||||
//搜索
|
||||
onSearch(e) {
|
||||
this.usetmessage(this.activeIndex1,this.value,);
|
||||
this.usetmessage(this.activeIndex1, this.value);
|
||||
},
|
||||
selectGoods(item, index) {
|
||||
this.activeIndex1 = index;
|
||||
@ -717,22 +717,18 @@ export default {
|
||||
pinzhong.push(element);
|
||||
|
||||
this.catageb = pinzhong;
|
||||
|
||||
}
|
||||
if (element.name == "功能") {
|
||||
gonneg.push(element);
|
||||
this.catagea = gonneg;
|
||||
|
||||
}
|
||||
if (element.name == "年龄") {
|
||||
age.push(element);
|
||||
this.catage = age;
|
||||
|
||||
}
|
||||
if (element.name == "专区") {
|
||||
zhuanqu.push(element);
|
||||
this.prefecture = zhuanqu;
|
||||
|
||||
}
|
||||
});
|
||||
} else if (this.activeIndex1 == 1) {
|
||||
@ -743,7 +739,6 @@ export default {
|
||||
this.catageb.forEach((element) => {
|
||||
element.checked = false;
|
||||
});
|
||||
|
||||
}
|
||||
if (element.name == "功能") {
|
||||
gonneg.push(element);
|
||||
@ -751,7 +746,6 @@ export default {
|
||||
this.catagea.forEach((element) => {
|
||||
element.checked = false;
|
||||
});
|
||||
|
||||
}
|
||||
if (element.name == "年龄") {
|
||||
age.push(element);
|
||||
@ -759,7 +753,6 @@ export default {
|
||||
this.catage.forEach((element) => {
|
||||
element.checked = false;
|
||||
});
|
||||
|
||||
}
|
||||
if (element.name == "专区") {
|
||||
zhuanqu.push(element);
|
||||
@ -767,7 +760,6 @@ export default {
|
||||
this.prefecture.forEach((element) => {
|
||||
element.checked = false;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -848,7 +840,7 @@ export default {
|
||||
this.userserachlist[0].tagUsedAge = item.tagName;
|
||||
this.$refs.chosebox1[index].className = "active";
|
||||
} else {
|
||||
this.userserachlist[0].tagUsedAge='';
|
||||
this.userserachlist[0].tagUsedAge = "";
|
||||
item.checked = false;
|
||||
this.$refs.chosebox1[index].className = "unactive";
|
||||
}
|
||||
@ -882,7 +874,7 @@ export default {
|
||||
} else {
|
||||
item.checked = false;
|
||||
this.$refs.cgosebox4[index].className = "unactive";
|
||||
this.userserachlist[0].tagFunction='';
|
||||
this.userserachlist[0].tagFunction = "";
|
||||
}
|
||||
|
||||
// for (let i = 0; i < this.userserachlist.length; i++) {
|
||||
@ -902,7 +894,7 @@ export default {
|
||||
} else {
|
||||
item.checked = false;
|
||||
this.$refs.chosebox3[index].className = "unactive";
|
||||
this.userserachlist[0].tagBreed='';
|
||||
this.userserachlist[0].tagBreed = "";
|
||||
}
|
||||
// if (this.userishwo3 == false) {
|
||||
// tagBreed = {
|
||||
@ -931,8 +923,7 @@ export default {
|
||||
} else {
|
||||
item.checked = false;
|
||||
this.$refs.chosebox[index].className = "unactive";
|
||||
this.userserachlist[0].categoryName='';
|
||||
|
||||
this.userserachlist[0].categoryName = "";
|
||||
}
|
||||
// this.userishwo = !this.userishwo;
|
||||
// if (this.userishwo == false) {
|
||||
|
Loading…
Reference in New Issue
Block a user