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

55 lines
1.4 KiB
Vue
Raw Normal View History

2023-02-09 16:37:53 +08:00
<template>
<view class="content">
<uni-list :border="false">
2023-04-10 09:48:03 +08:00
<uni-list-item :show-badge="item.chatCount > 0" badgeType="error" isDot badge-text="新消息" :title="item.title"
:note="item.createTime" clickable v-for="(item, index) in store.data" :key="index" @click="jump(item)" />
2023-02-09 16:37:53 +08:00
</uni-list>
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-04-10 09:48:03 +08:00
import { queryFeedBackPage } from '../../common/api/feedback'
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() {
this.store = this.DataSource('/feedback/queryFeedBackPage')
this.store.params.userId = uni.getStorageSync('userInfo').id
this.store.reload()
},
jump(item) {
uni.navigateTo({ url: '/pages/message/feedbackDetail?id=' + item.id +'&chatCount=' + item.chatCount })
2023-03-13 10:15:16 +08:00
}
2023-02-09 16:37:53 +08:00
}
}
</script>
<style lang="scss">
.content {
padding-top: 20rpx;
}
/deep/ .uni-list-item {
background-color: $uni-theme-white !important;
}
2023-03-13 10:15:16 +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>