You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/pages/goods/list/index.vue

44 lines
912 B

3 years ago
<!--
* @Author: ch
* @Date: 2022-03-21 10:31:54
* @LastEditors: ch
* @LastEditTime: 2022-03-23 17:03:25
* @Description: file content
-->
<template>
<view>
<view class="header">
<BsSearchTop :value="$Route.query.search"></BsSearchTop>
<!-- 排序标签 -->
<Sort></Sort>
</view>
<BsGoodsGroup class="goods-group"></BsGoodsGroup>
</view>
</template>
<script>
import BsGoodsGroup from "@/components/BsGoodsGroup.vue";
import BsSearchTop from "@/components/BsSearchTop.vue";
import Sort from "./Sort.vue";
export default {
components: { BsGoodsGroup, BsSearchTop, Sort },
data() {
return {
sortType: "all", // 排序类型
sortPrice: false, // 价格排序 (true高到低 false低到高)
};
},
};
</script>
<style lang="scss" scoped>
page {
background: #f8f8f8;
}
.header {
position: sticky;
top: var(--window-top);
z-index: 99;
}
.goods-group {
padding-top: 30rpx;
}
</style>