list.vue 1.74 KB
<template>
  <LayoutApp :title="title" :class="classes">
    <ScrollView ref="scroll" :options="scrollOption" @pulling-up="onPullingUp" @pulling-down="onPullingDown">
      <div class="order-page">
        <div class="title">出售中</div>
        <div class="product" @click="onClickProduct">
          <ImgSize class="pro-img" :src="productInfo.imageUrl" :width="200" :height="200"></ImgSize>
        </div>
      </div>
    </ScrollView>
  </LayoutApp>
</template>

<script>
import LayoutApp from '../../../components/layout/layout-app';
import ScrollView from '../../../components/layout/scroll-view';

import {createNamespacedHelpers} from 'vuex';
import ImgSize from '../../../components/img-size';

const {mapState, mapActions, mapMutations} = createNamespacedHelpers('order/priceChange')

export default {
  components: {ImgSize, ScrollView, LayoutApp},
  name: 'PriceChange',
  data() {
    return {
      title: '订单',
      classes: {},
      scrollOption: {
        pullDownRefresh: {
          threshold: 70,
          stop: 90
        },
        observeDOM: false,
        pullUpLoad: true
      },
      page: 1,
      modalLoad: false,
      pageSize: 10,
    };
  },
  asyncData({store, router}) {
    return store.dispatch('order/priceChange/fetchProduct', {productId: router.params.orderId});
  },
  mounted() {
    this.modalLoad = true;
  },
  computed: {
    ...mapState(['productInfo', 'skcs']),
  },
  methods: {
    ...mapMutations(['fetchProduct']),
    async onPullingUp() {

    },
    async onPullingDown() {

    },
    onClickProduct() {

    }
  }
};
</script>

<style lang="scss" scoped>
  .order-page {
    .title {
      line-height: 95px;
      font-size: 68px;
      font-weight: bold;
      padding: 24px 40px 0 40px;
    }
  }
</style>