|
|
@@ -6,37 +6,37 @@
|
|
|
class="follow_search"
|
|
|
@click="$router.push('/productSearch')"
|
|
|
/> -->
|
|
|
- <van-sticky ref="top" :offset-top="barHeight">
|
|
|
- <van-tabs v-model:active="sort" :ellipsis="false" line-width="16" line-height="2" @change="getData(true)">
|
|
|
- <van-tab
|
|
|
- :title="item.label"
|
|
|
- :name="
|
|
|
- item.type === 'select' ? (sort === item.value[0] ? item.value[1] : item.value[0]) : item.value
|
|
|
- "
|
|
|
- :title-class="item.type === 'select' && sort === item.value[0] ? '' : 'asc'"
|
|
|
- :key="index"
|
|
|
- v-for="(item, index) in sourceOptions"
|
|
|
- >
|
|
|
- <template v-if="item.type === 'select'" #title>
|
|
|
- <div class="tab">
|
|
|
- <span>{{ item.label }}</span>
|
|
|
- <van-icon size="8" name="arrow-up" />
|
|
|
- <van-icon size="8" name="arrow-down" />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-tab>
|
|
|
- </van-tabs>
|
|
|
- </van-sticky>
|
|
|
- <van-list class="list" v-model:loading="loading" :finished="finished" finished-text="- 更多藏品敬请期待 -" @load="getData">
|
|
|
- <template v-for="(item, index) in list" :key="index">
|
|
|
- <creator-info v-model:info="list[index]"></creator-info>
|
|
|
- </template>
|
|
|
- <van-empty
|
|
|
- :image="require('@assets/kong_png_yongyoude (1).png')"
|
|
|
- v-if="empty"
|
|
|
- description="没有任何藏品哦~"
|
|
|
- />
|
|
|
- </van-list>
|
|
|
+ <van-sticky :offset-top="barHeight">
|
|
|
+ <van-tabs v-model:active="sort" :ellipsis="false" line-width="16" line-height="2" @change="getData(true)">
|
|
|
+ <van-tab
|
|
|
+ :title="item.label"
|
|
|
+ :name="item.type === 'select' ? (sort === item.value[0] ? item.value[1] : item.value[0]) : item.value"
|
|
|
+ :title-class="item.type === 'select' && sort === item.value[0] ? '' : 'asc'"
|
|
|
+ :key="index"
|
|
|
+ v-for="(item, index) in sourceOptions"
|
|
|
+ >
|
|
|
+ <template v-if="item.type === 'select'" #title>
|
|
|
+ <div class="tab">
|
|
|
+ <span>{{ item.label }}</span>
|
|
|
+ <van-icon size="8" name="arrow-up" />
|
|
|
+ <van-icon size="8" name="arrow-down" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </van-tab>
|
|
|
+ </van-tabs>
|
|
|
+ </van-sticky>
|
|
|
+ <van-list
|
|
|
+ class="list"
|
|
|
+ v-model:loading="loading"
|
|
|
+ :finished="finished"
|
|
|
+ finished-text="- 更多藏品敬请期待 -"
|
|
|
+ @load="getData"
|
|
|
+ >
|
|
|
+ <template v-for="(item, index) in list" :key="index">
|
|
|
+ <creator-info v-model:info="list[index]"></creator-info>
|
|
|
+ </template>
|
|
|
+ <van-empty :image="require('@assets/kong_png_yongyoude (1).png')" v-if="empty" description="没有任何藏品哦~" />
|
|
|
+ </van-list>
|
|
|
<!-- </div> -->
|
|
|
</template>
|
|
|
|
|
|
@@ -46,7 +46,7 @@ import list from '../../mixins/list';
|
|
|
export default {
|
|
|
name: 'creatorList',
|
|
|
components: { CreatorInfo },
|
|
|
- inject: ['bar', 'setKeeps', 'scrollWrapper', 'changeScroll','barHeight'],
|
|
|
+ inject: ['bar', 'setKeeps', 'scrollWrapper', 'changeScroll', 'barHeight'],
|
|
|
mixins: [list],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
border-color: @tabBorder;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
-/deep/ .van-tabs__line{
|
|
|
+/deep/ .van-tabs__line {
|
|
|
width: 0px !important;
|
|
|
height: 0px !important;
|
|
|
// z-index: -1;
|
|
|
@@ -165,23 +165,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-.van-tab--active.asc .tab .van-icon-arrow-up{
|
|
|
+.van-tab--active.asc .tab .van-icon-arrow-up {
|
|
|
color: #ffffff;
|
|
|
}
|
|
|
-/deep/ .van-tab{
|
|
|
+/deep/ .van-tab {
|
|
|
flex: 0 !important;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
-/deep/ .van-tabs__wrap{
|
|
|
+/deep/ .van-tabs__wrap {
|
|
|
height: 36px;
|
|
|
}
|
|
|
-/deep/ .van-tab--grow{
|
|
|
+/deep/ .van-tab--grow {
|
|
|
padding: 0px !important;
|
|
|
}
|
|
|
.van-tabs {
|
|
|
background-color: @bg;
|
|
|
}
|
|
|
-.list{
|
|
|
+.list {
|
|
|
margin-bottom: 80px;
|
|
|
}
|
|
|
</style>
|