wangzhibo
4 天以前 10595d8632f959d0954d1939243196f4eed02372
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
<template>
    <cl-page>
        <view class="page">
            <view class="header">
                <cl-tag type="info">{{ dict.getLabel("feedbackType", info?.type) }}</cl-tag>
                <cl-text :value="info?.content" block :margin="[20, 0, 30, 0]" :line-height="1.5" />
 
                <view class="pics">
                    <cl-image
                        v-for="(item, index) in info?.images"
                        :key="index"
                        :src="item"
                        :preview-list="info?.images"
                        :size="180"
                        :margin="[0, 20, 30, 0]"
                    />
                </view>
 
                <cl-row type="flex" justify="space-between">
                    <cl-text :value="info?.createTime" color="info" block />
 
                    <cl-text :value="`${info?.status == 1 ? '已解决' : '待解决'}`" />
                </cl-row>
            </view>
 
            <view class="container">
                <view class="card" v-if="info?.remark">
                    <cl-text block bold value="回复内容" :margin="[0, 0, 20, 0]" :size="28" />
 
                    <cl-text :value="info?.remark" :line-height="1.5" />
                </view>
            </view>
        </view>
    </cl-page>
</template>
 
<script lang="ts" setup>
import { ref } from "vue";
import { useCool, useStore } from "/@/cool";
import { onReady } from "@dcloudio/uni-app";
import { useUi } from "/$/cool-ui";
 
const { service, router } = useCool();
const ui = useUi();
const { dict } = useStore();
 
const info = ref<Eps.AppFeedbackEntity>();
 
async function refresh() {
    ui.showLoading();
 
    await service.app.feedback
        .info({
            id: router.query.id,
        })
        .then((res) => {
            info.value = res;
        });
 
    ui.hideLoading();
}
 
onReady(() => {
    refresh();
});
</script>
 
<style lang="scss" scoped>
.page {
    .header {
        background-color: #fff;
        padding: 24rpx;
 
        .pics {
            display: flex;
            flex-wrap: wrap;
        }
    }
 
    .container {
        padding: 24rpx;
 
        .card {
            border-radius: 16rpx;
            background-color: #fff;
            padding: 24rpx;
            margin-bottom: 24rpx;
        }
    }
}
</style>