Files
app-govern/pages/message/feedback.vue

135 lines
3.6 KiB
Vue
Raw Normal View History

2023-02-09 16:37:53 +08:00
<template>
2023-08-29 16:14:09 +08:00
<view class="message-list">
2023-09-06 10:56:10 +08:00
<view class="message-list-item" v-for="(item, index) in store.data" :key="index" @click="jump(item)">
<view class="hide-txt message-list-item-title">{{ item.title }}</view>
<view class="message-list-item-footer">
<view class="mr20 message-list-item-footer-status message-list-item-footer-status-over"
v-if="item.status === '0'">
已解决
2023-08-29 16:14:09 +08:00
</view>
2023-09-06 10:56:10 +08:00
<view class="mr20 message-list-item-footer-status message-list-item-footer-status-processing"
v-else-if="item.status === '1'">
待处理
</view>
<view class="mr20 message-list-item-footer-status message-list-item-footer-status-handler"
v-else-if="item.status === '2'">
处理中
</view>
<view class="message-list-item-footer-time"> {{ item.createTime }}</view>
<uni-badge class="uni-badge-left-margin" :text="item.chatCount"/>
2023-08-29 16:14:09 +08:00
</view>
2023-09-06 10:56:10 +08:00
</view>
2023-04-10 09:48:03 +08:00
<Cn-empty v-if="store.empty"></Cn-empty>
<uni-load-more v-if="store.data && store.data.length > 0" :status="store.status"></uni-load-more>
2023-02-09 16:37:53 +08:00
</view>
</template>
<script>
2023-08-29 16:14:09 +08:00
import {queryFeedBackPage} from '../../common/api/feedback'
2023-04-10 09:48:03 +08:00
import list from '../../common/js/list'
2023-02-09 16:37:53 +08:00
export default {
2023-04-10 09:48:03 +08:00
mixins: [list],
data() {
2023-02-09 16:37:53 +08:00
return {
2023-03-13 10:15:16 +08:00
title: '灿能'
2023-02-09 16:37:53 +08:00
}
},
2023-04-10 09:48:03 +08:00
onShow() {
this.init()
2023-02-09 16:37:53 +08:00
},
methods: {
2023-04-10 09:48:03 +08:00
init() {
2023-08-17 09:24:59 +08:00
this.store = this.DataSource('/cs-system-boot/feedback/queryFeedBackPage')
2023-04-10 09:48:03 +08:00
this.store.reload()
},
jump(item) {
2023-08-29 16:14:09 +08:00
uni.navigateTo({url: '/pages/message/feedbackDetail?id=' + item.id + '&chatCount=' + item.chatCount})
},
2023-02-09 16:37:53 +08:00
}
}
</script>
<style lang="scss">
2023-08-29 16:14:09 +08:00
.message-list {
2023-02-09 16:37:53 +08:00
padding-top: 20rpx;
2023-08-29 16:14:09 +08:00
.message-list-item {
padding: 28rpx;
background: #fff;
border-bottom: 1rpx solid #ddd;
2023-09-06 10:56:10 +08:00
2023-08-29 16:14:09 +08:00
&-title {
font-size: 28rpx;
color: #3b4144;
}
.message-list-item-footer {
margin-top: 8rpx;
display: flex;
align-items: center;
2023-09-06 10:56:10 +08:00
&-time {
2023-08-29 16:14:09 +08:00
margin-right: 20rpx;
flex: 1;
color: #999;
font-size: 12px;
}
2023-09-06 10:56:10 +08:00
2023-08-29 16:14:09 +08:00
&-status {
padding: 4rpx 12rpx;
font-size: 24rpx;
border-radius: 4rpx;
2023-09-06 10:56:10 +08:00
2023-08-29 16:14:09 +08:00
&-over {
background-color: #f0f9eb;
border-color: #e1f3d8;
color: #67c23a;
}
&-close {
background-color: #f4f4f5;
border-color: #e9e9eb;
color: #909399;
}
&-processing {
background-color: #fdf6ec;
border-color: #faecd8;
color: #e6a23c;
}
2023-09-06 10:56:10 +08:00
&-handler {
background-color: #ecf5ff;
border-color: #d9ecff;
color: #409eff;
}
2023-08-29 16:14:09 +08:00
}
}
}
2023-02-09 16:37:53 +08:00
}
/deep/ .uni-list-item {
background-color: $uni-theme-white !important;
}
2023-03-13 10:15:16 +08:00
2023-08-29 16:14:09 +08:00
.list-footer {
display: flex;
flex-direction: column;
justify-content: space-between;
&-status {
flex: 1;
color: #999;
font-size: 24rpx;
}
2023-03-13 10:15:16 +08:00
}
2023-08-29 16:14:09 +08:00
///deep/ .uni-badge {
// background-color: unset !important;
// color: #dd524d !important;
// font-size: 28rpx !important;
//}
2023-02-09 16:37:53 +08:00
</style>