|
|
@@ -6,6 +6,9 @@
|
|
|
<div class="btn" :class="{ active: active === 'explore' }" @click="changeActive('explore')">
|
|
|
我拥有的
|
|
|
</div>
|
|
|
+ <div class="btn" :class="{ active: active === 'showRoom' }" @click="changeActive('showRoom')">
|
|
|
+ 我的展馆
|
|
|
+ </div>
|
|
|
<div class="btn" :class="{ active: active === 'creator' }" @click="changeActive('creator')">
|
|
|
我卖出的
|
|
|
</div>
|
|
|
@@ -57,10 +60,12 @@
|
|
|
class="box-list"
|
|
|
:style="{
|
|
|
backgroundImage:
|
|
|
- active !== 'coupon' && showList.length > 0 ? `url(${require('../assets/png-zhantai.png')})` : '',
|
|
|
+ active !== 'coupon' && active !== 'showRoom' && showList.length > 0
|
|
|
+ ? `url(${require('../assets/png-zhantai.png')})`
|
|
|
+ : '',
|
|
|
paddingBottom: showList.length % 3 === 0 ? '35.73vw' : '20px'
|
|
|
}"
|
|
|
- :class="{ couponList: active === 'coupon' }"
|
|
|
+ :class="{ couponList: active === 'coupon', roomList: active === 'showRoom' }"
|
|
|
v-model:loading="loading"
|
|
|
:finished="finished"
|
|
|
finished-text=""
|
|
|
@@ -68,6 +73,7 @@
|
|
|
>
|
|
|
<template v-for="(item, index) in showList" :key="index">
|
|
|
<coupon-info :info="item" v-if="active == 'coupon'"></coupon-info>
|
|
|
+ <show-info :info="item" v-if="active == 'showRoom'"></show-info>
|
|
|
<asset-info :info="item" v-else></asset-info>
|
|
|
</template>
|
|
|
|
|
|
@@ -95,6 +101,7 @@
|
|
|
|
|
|
<script>
|
|
|
import AssetInfo from '../components/asset/assetInfo.vue';
|
|
|
+import ShowInfo from '../components/asset/showInfo.vue';
|
|
|
import CouponInfo from '../components/CouponInfo.vue';
|
|
|
import asset from '../mixins/asset';
|
|
|
import coupon from '../mixins/coupon';
|
|
|
@@ -104,11 +111,12 @@ export default {
|
|
|
inject: ['bar', 'setKeeps', 'scrollWrapper', 'changeScroll', 'bodyScroll'],
|
|
|
components: {
|
|
|
AssetInfo,
|
|
|
- CouponInfo
|
|
|
+ CouponInfo,
|
|
|
+ ShowInfo
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- active: 'explore',
|
|
|
+ active: 'showRoom',
|
|
|
stiky: null,
|
|
|
type: '',
|
|
|
empty: false,
|
|
|
@@ -146,6 +154,24 @@ export default {
|
|
|
type: ''
|
|
|
}
|
|
|
];
|
|
|
+ } else if (this.active === 'showRoom') {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ label: '全部',
|
|
|
+ value: '',
|
|
|
+ type: ''
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '展览中',
|
|
|
+ value: 'ON_SALE',
|
|
|
+ type: ''
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '未展览',
|
|
|
+ value: 'NORMAL',
|
|
|
+ type: ''
|
|
|
+ }
|
|
|
+ ];
|
|
|
} else if (this.active === 'creator') {
|
|
|
return [
|
|
|
{
|
|
|
@@ -294,6 +320,25 @@ export default {
|
|
|
if (this.active == 'explore') {
|
|
|
form = {
|
|
|
status: this.status
|
|
|
+ // type: 'BLIND_BOX,DEFAULT,'
|
|
|
+ };
|
|
|
+ if (this.type === 'NORMAL') {
|
|
|
+ form = {
|
|
|
+ ...form,
|
|
|
+ publicShow: true,
|
|
|
+ consignment: false
|
|
|
+ };
|
|
|
+ }
|
|
|
+ if (this.type === 'ON_SALE') {
|
|
|
+ form = {
|
|
|
+ ...form,
|
|
|
+ consignment: true
|
|
|
+ };
|
|
|
+ }
|
|
|
+ } else if (this.active == 'showRoom') {
|
|
|
+ form = {
|
|
|
+ status: this.status,
|
|
|
+ type: 'SHOWROOM'
|
|
|
};
|
|
|
if (this.type === 'NORMAL') {
|
|
|
form = {
|
|
|
@@ -370,7 +415,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.btn + .btn {
|
|
|
- margin-left: 30px;
|
|
|
+ margin-left: 20px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -441,6 +486,9 @@ export default {
|
|
|
&.couponList {
|
|
|
padding: 8px 8px 100px;
|
|
|
}
|
|
|
+ &.roomList {
|
|
|
+ padding: 10px 0 100px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.tab {
|