回退 'Pull Request !44 : 2022-1-19 Jiamin'

This commit is contained in:
Admin
2022-01-20 02:44:19 +00:00
committed by Gitee
parent 44fdcdb632
commit b0ae1cbe94
13 changed files with 470 additions and 820 deletions

View File

@@ -11,19 +11,17 @@
<div class="usercontentshow" ref="usercontent">
<div class="rc-product ts-scrollable-container">
<div class="rc-productcat ts-scrollable">
<ol>
<li
v-for="(item, index) in userproduct"
:key="index"
@click="selectGoods(item, index)"
:class="activeIndex == index ? 'active' : 'unactive'"
class="ts-standard-btn"
ref="userstandard"
>
<img :src="item.catimage" alt="" />
<span>{{ item.title }}</span>
</li>
</ol>
<div
class="rc-cat"
v-for="(item, index) in userproduct"
:key="index"
ref="userclicks"
@click="selectGoods(item, index)"
:class="activeIndex == index ? 'active' : 'unactive'"
>
<img :src="item.catimage" alt="" />
<span>{{ item.title }}</span>
</div>
</div>
</div>
<div class="online rc-md-up"></div>
@@ -299,13 +297,11 @@
<em>确认</em>
</div>
</el-dialog>
<MyFooter></MyFooter>
</div>
</template>
<script>
import Myheader from "~/components/header.vue";
import MyFooter from '~/components/rc-footer.vue'
import {
userstype,
biaome,
@@ -318,7 +314,7 @@ export default {
value: "",
isLoading: true,
userstype: [],
activeIndex: "-1",
activeIndex: "0",
allacindex: 0,
userishwo: true,
userishwo1: true,
@@ -508,20 +504,16 @@ export default {
},
components: {
Myheader,
MyFooter
},
mounted() {
let stype = this.$route.query.stype;
this.$nextTick(() => {
this.$refs.userstandard[0].style.margin = 0 + "px";
});
this.userst();
// this.activeIndex = stype;
// if (stype !== "" && stype !== undefined) {
// this.onmessage(stype);
// } else {
// this.usetmessage();
// }
this.activeIndex = stype;
if (stype !== "" && stype !== undefined) {
this.onmessage(stype);
} else {
this.usetmessage();
}
},
methods: {
async usersearch(stype, usertype) {
@@ -751,9 +743,6 @@ export default {
this.activeIndexa = index;
},
selectage(item, index) {
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
let tagUsedAge = {};
this.activeIndexc = index;
this.userishwo1 = !this.userishwo1;
@@ -777,9 +766,6 @@ export default {
},
selectagc(item, index) {
// let tagFunction = {};
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
this.activeIndexd = index;
this.userishwo2 = !this.userishwo2;
if (item.checked == false) {
@@ -810,9 +796,6 @@ export default {
this.usersearch(this.userserachlist, this.activeIndex1);
},
selectagd(item, index) {
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
let tagBreed = {};
this.activeIndexe = index;
this.userishwo3 = !this.userishwo3;
@@ -835,9 +818,6 @@ export default {
this.usersearch(this.userserachlist, this.activeIndex1);
},
selectproduct(item, index) {
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
this.activeIndexb = index;
// console.log(this.userishwo=!this.userishwo)
if (item.checked == false) {