|
|
@@ -20,7 +20,7 @@
|
|
|
>
|
|
|
<template v-if="active === 2">
|
|
|
<product-info
|
|
|
- v-for="(item, index) in list"
|
|
|
+ v-for="(item, index) in showList"
|
|
|
@choose="choose"
|
|
|
:key="index"
|
|
|
:info="item"
|
|
|
@@ -29,7 +29,7 @@
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<pass-card
|
|
|
- v-for="(item, index) in list"
|
|
|
+ v-for="(item, index) in showList"
|
|
|
@choose="choose"
|
|
|
:key="index"
|
|
|
:info="item"
|
|
|
@@ -84,6 +84,13 @@ export default {
|
|
|
} else {
|
|
|
return '/ticketPrice/all';
|
|
|
}
|
|
|
+ },
|
|
|
+ showList() {
|
|
|
+ let list = [...this.list];
|
|
|
+ if (this.active == 0 || this.active === 1) {
|
|
|
+ return list.slice(0, 4);
|
|
|
+ }
|
|
|
+ return list;
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -121,9 +128,10 @@ export default {
|
|
|
if (this.active === 1) {
|
|
|
this.$router.push('/exchange?ticket=' + this.chooseTicket + '&buyType=' + this.buyType);
|
|
|
} else {
|
|
|
- this.$router.push(
|
|
|
- '/exchangeCollection?exchangeItemId=' + this.chooseTicket + '&buyType=' + this.buyType
|
|
|
- );
|
|
|
+ // this.$router.push(
|
|
|
+ // '/exchangeCollection?exchangeItemId=' + this.chooseTicket + '&buyType=' + this.buyType
|
|
|
+ // );
|
|
|
+ this.wait();
|
|
|
}
|
|
|
},
|
|
|
beforeData() {
|