list.vue
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<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>