xuxueyang
2024-08-26 b6c8307813d161412d509e24b5662d406b864c7c
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<script>
    export default {
        data() {
            return {
                dto: {
                    id: '',
                    feedBack: '',
                    createTime: '',
                    reply: '',
                    replyTime: '',
                    type: '',
                    pictures: [],
                },
                id: '',
 
            };
        },
        async onLoad(options) {
            this.id = options.id || ''
 
 
            await this.init()
 
        },
 
        methods: {
            async init() {
                this.$message.showLoading()
                const {
                    data
                } = await this.$http.request('get', '/api/feedback/page/view?id=' + this.id, {})
 
                this.$message.hideLoading()
                if (data) {
                    var t = data || {}
                    if (!t.pictures) {
                        t.pictures = []
                    } else {
                        try {
                            t.pictures = JSON.parse(t.pictures) || []
                        } catch (e) {
                            console.log('parse arriveImages', e)
                        }
                    }
                    this.dto = {
                        ...this.dto,
                        ...t
                    }
                }
            },
 
 
 
        }
    }
</script>
<template>
    <view class="delivery-detail-page bg-white p20">
        <view v-if="dto.id">
            <view class="delivery-info p10 flex">
                <view class="flex1">
                    <view class="name">投诉反馈类型:{{ dto.typeStr || dto.type  || '-'}}</view>
 
                    <view class="name">投诉反馈内容:{{ dto.feedBack  || '-'}}</view>
                    <view class="name">提交时间:{{ dto.createTime || '-' }}</view>
                    <view class="line-gray"></view>
                    <view class="name">回复内容:{{ dto.reply  || '-'}}</view>
                    <view class="name">回复时间:{{ dto.replyTime || '-' }}</view>
 
                </view>
            </view>
 
 
        </view>
        <view class="p10" style="margin-top: 0rpx;padding-top: 0rpx;" v-if="dto.pictures&&dto.pictures.length>0">
            <view class="line-gray"></view>
 
            <view class="m-r-0">
                <view>投诉反馈图片:</view>
            </view>
            <view class="flex">
                <view class="m-t-12 m-r-10 " v-for="(timg,index) of dto.pictures" :key="index">
                    <image class="arrive-img" :src="timg" @click.stop="previewImg(timg)">
                    </image>
                </view>
            </view>
        </view>
    </view>
 
    </view>
</template>
 
<style lang="scss" scoped>
    .delivery-detail-page {
        font-weight: 400;
        font-size: 28rpx;
        line-height: 40rpx;
 
        .arrive-img {
            width: 96rpx;
            height: 96rpx;
            border-radius: 4rpx;
            border: 2rpx dashed #CECECE;
        }
 
        .delivery-order-item {
            .title {
                font-weight: 600;
                font-size: 28rpx;
                color: #000000;
                line-height: 40rpx;
 
                .level {
                    font-weight: 400;
                    font-size: 28rpx;
                    color: #20613D;
                    line-height: 40rpx;
                    margin-left: 20rpx;
                }
            }
 
            .buttons {
                display: flex;
 
                .button {
                    margin: 0 auto;
                    width: 98rpx;
                    line-height: 48rpx;
                    border-radius: 24rpx;
                    border: 2rpx solid #CECECE;
                    text-align: center;
                    font-size: 24rpx;
                    color: #666666;
                    line-height: 34rpx;
                }
 
                .button-0 {
                    color: #fff;
                    border: 2rpx solid #20613D;
                    background: #20613D;
                }
            }
 
            .flower-img {
                width: 128rpx;
                height: 118rpx;
                min-width: 128rpx;
                min-height: 118rpx;
            }
 
        }
 
 
        .delivery-info {
            // padding: 10rpx;
 
 
 
            .station {
                height: 50rpx;
                background: #C6E8D4;
                border-radius: 4rpx;
                padding-left: 20rpx;
                padding-right: 20rpx;
                min-width: 110rpx;
 
                line-height: 50rpx;
            }
        }
    }
</style>