陶杰
2024-09-11 8840efb29d8818afcfd2176914bcf4811d9c60fe
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
77
78
79
80
81
82
83
84
85
86
87
88
89
<template>
    <!-- 列表页面 -->
    <view>
        <view class="p15" style="min-height: calc(100vh - 260rpx);">
            <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
            <view v-for="(item,index) in list" :key="index" class="m-b-24">
                <view @click.stop="toDetail(item)" class="notice-item">
                    <view v-if="item.typeStr" class="type">{{item.typeStr||'-'}}</view>
                    <view class="time">{{item.recordDate || ''}}</view>
                    <view class="form-item">
                        <view class="form-item-label">变更类型</view>
                        <view class="form-item-value">{{item.changeTypeStr || ''}}</view>
                    </view>
                    <view class="form-item">
                        <view class="form-item-label">积分</view>
                        <view class="form-item-value">{{item.point || ''}}</view>
                    </view>
                    <view class="form-item">
                        <view class="form-item-label">备注</view>
                        <view class="form-item-value">{{item.remarks || ''}}</view>
                    </view>
                </view>
            </view>
        </view>
 
        <!-- 判断是否到底了,自动吧 -->
        <footer-msg :more="page.total>0&&page.total>page.current*page.size"></footer-msg>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                query: {
                    // status: ''
                }
            }
        },
        onLoad() {
 
 
            this.listApi = '/api/customer/point/list'
 
            this.getList()
 
        },
        onReachBottom() {
            this.getMore()
        },
        async onPullDownRefresh() {
            this.page.current = 1
            await this.getList()
            uni.stopPullDownRefresh()
        },
        methods: {
 
        }
    }
</script>
 
<style lang="scss" scoped>
    .notice-item {
        padding: 20rpx;
        font-size: 28rpx;
        background-color: #fff;
 
        .type {
            font-weight: 600;
 
        }
 
        .time {
            font-size: 24rpx;
            color: darkgray;
        }
 
        .form-item {
            display: flex;
 
            .form-item-label {}
 
            .form-item-value {
                flex: 1;
                text-align: right;
            }
        }
    }
</style>