|
|
<template>
|
|
|
<LayoutApp :show-back="true" title="二手">
|
|
|
|
|
|
<LayoutApp :show-back="true" title="二手" class="list-wrapper">
|
|
|
<LayoutScroll
|
|
|
ref="scrolllist"
|
|
|
@pulling-up="fetchSkupList(isMore)"
|
|
|
v-if="secondList.length"
|
|
|
class="list-scroll-bg"
|
|
|
>
|
|
|
<SecondList :list="secondList"></SecondList>
|
|
|
</LayoutScroll>
|
|
|
</LayoutApp>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import SecondList from "./components/second-list";
|
|
|
|
|
|
import { createNamespacedHelpers } from "vuex";
|
|
|
const { mapState, mapActions } = createNamespacedHelpers("second/skupList");
|
|
|
|
|
|
export default {
|
|
|
name: 'UfoSecondListPage'
|
|
|
name: 'UfoSecondListPage',
|
|
|
components: {
|
|
|
SecondList
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
secondList : [
|
|
|
{
|
|
|
size_name: "37 2/3",
|
|
|
skup: 24066,
|
|
|
product_id: 10014795,
|
|
|
pre_sale_flag: 6,
|
|
|
size_id: 292,
|
|
|
skup_price: 99,
|
|
|
secondhand_image: "http://img11.static.yhbimg.com/goodsimg/2019/05/28/14/01d668690176efa91b99042ceed94eaee3.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
product_name: "DXF测试商品",
|
|
|
save_price: null
|
|
|
},
|
|
|
{
|
|
|
size_name: "36.5",
|
|
|
skup: 18328,
|
|
|
product_id: 10014834,
|
|
|
pre_sale_flag: 5,
|
|
|
size_id: 1214,
|
|
|
skup_price: 9,
|
|
|
secondhand_image: "http://img11.static.yhbimg.com/goodsimg/2019/05/28/14/01d668690176efa91b99042ceed94eaee3.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
product_name: "wyc的专用球鞋02",
|
|
|
save_price: null
|
|
|
},
|
|
|
{
|
|
|
size_name: "41",
|
|
|
skup: 18304,
|
|
|
product_id: 10001280,
|
|
|
pre_sale_flag: 6,
|
|
|
size_id: 314,
|
|
|
skup_price: 111,
|
|
|
secondhand_image: "http://img11.static.yhbimg.com/goodsimg/2019/05/28/14/01d668690176efa91b99042ceed94eaee3.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
product_name: "出售类型测试商品-cuicui",
|
|
|
save_price: null
|
|
|
}]
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(["skupList", "isMore"])
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(["fetchSecondSkupList"]),
|
|
|
|
|
|
async fetchSkupList(isMore) {
|
|
|
if (this.isMore) {
|
|
|
await this.fetchSecondSkupList({ isReset: false });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
this.fetchSecondSkupList({ isReset: true });
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.list-wrapper {
|
|
|
/deep/ .layout-context {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
.empty {
|
|
|
flex: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.list-scroll-bg {
|
|
|
background-color: #f5f5f5;
|
|
|
flex: 1;
|
|
|
}
|
|
|
</style> |
...
|
...
|
|