|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="follow">
|
|
|
- <van-sticky ref="top" :offset-top="bar.value.show ? 46 : 0">
|
|
|
+ <van-sticky ref="top" class="list-top" :offset-top="bar.value.show ? 46 : 0">
|
|
|
<div class="top" v-if="!minterId">
|
|
|
<div class="name">{{ title || pageName }}</div>
|
|
|
<img src="@assets/icon-sosuo.png" alt="" @click="goSearch" class="search" />
|
|
|
@@ -12,6 +12,7 @@
|
|
|
line-width="16"
|
|
|
line-height="2"
|
|
|
@change="getData(true)"
|
|
|
+ :class="{ trans: source == 'TRANSFER' }"
|
|
|
>
|
|
|
<van-tab
|
|
|
:title="item.label"
|
|
|
@@ -31,6 +32,7 @@
|
|
|
</template>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
+ <van-checkbox @change="getData(true)" class="sala" v-model="salable">仅看在售</van-checkbox>
|
|
|
</van-sticky>
|
|
|
|
|
|
<van-list v-model:loading="loading" :finished="finished" finished-text="" @load="getData">
|
|
|
@@ -83,7 +85,8 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
url: '/collection/all',
|
|
|
- title: ''
|
|
|
+ title: '',
|
|
|
+ salable: false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -115,7 +118,8 @@ export default {
|
|
|
source: this.source,
|
|
|
onShelf: true,
|
|
|
del: false,
|
|
|
- minterId: this.minterId
|
|
|
+ minterId: this.minterId,
|
|
|
+ salable: this.salable || ''
|
|
|
},
|
|
|
sort: this.sortOptions[this.title] || this.sort
|
|
|
};
|
|
|
@@ -190,7 +194,45 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/deep/.trans {
|
|
|
+ .van-tab {
|
|
|
+ margin-right: 30px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.van-tabs {
|
|
|
background-color: @bg;
|
|
|
}
|
|
|
+
|
|
|
+.list-top {
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+/deep/.sala {
|
|
|
+ position: absolute;
|
|
|
+ right: 16px;
|
|
|
+ top: 63px;
|
|
|
+ .van-checkbox__icon {
|
|
|
+ color: #fff;
|
|
|
+ transform: scale(0.6);
|
|
|
+
|
|
|
+ .van-icon {
|
|
|
+ border-color: @text3;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.van-checkbox__icon--checked {
|
|
|
+ .van-icon {
|
|
|
+ border-width: 0;
|
|
|
+ .linear();
|
|
|
+ &::before {
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .van-checkbox__label {
|
|
|
+ color: @text3;
|
|
|
+ margin-left: 0px;
|
|
|
+ font-size: @font1;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|