You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.5 KiB
110 lines
2.5 KiB
7 months ago
|
<template>
|
||
|
<view class="feedback-list" :style="viewColor">
|
||
|
<block v-for="(item,index) in list" :key="index">
|
||
|
<view class="item" @click="goDetail(item)">
|
||
|
<view class="info">
|
||
|
<text class="tips">{{item.type.cate_name}}</text>
|
||
|
<view class="title line1">{{item.content}}</view>
|
||
|
</view>
|
||
|
<view class="time">{{item.create_time}}</view>
|
||
|
<view class="iconfont icon-xiangyou"></view>
|
||
|
</view>
|
||
|
</block>
|
||
|
<block v-if="list.length == 0">
|
||
|
<emptyPage title="暂无数据"></emptyPage>
|
||
|
</block>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Author: CRMEB Team <admin@crmeb.com>
|
||
|
// +----------------------------------------------------------------------
|
||
|
import emptyPage from '@/components/emptyPage.vue'
|
||
|
import { feedbackList } from '@/api/user.js'
|
||
|
import { mapGetters } from "vuex";
|
||
|
export default {
|
||
|
components:{
|
||
|
emptyPage
|
||
|
},
|
||
|
computed: mapGetters(['viewColor']),
|
||
|
data(){
|
||
|
return {
|
||
|
list:[],
|
||
|
page:1,
|
||
|
limit:10,
|
||
|
isScroll:true
|
||
|
}
|
||
|
},
|
||
|
onLoad() {
|
||
|
this.getList()
|
||
|
},
|
||
|
methods:{
|
||
|
getList(){
|
||
|
if(!this.isScroll) return
|
||
|
feedbackList({
|
||
|
page:this.page,
|
||
|
limit:this.limit
|
||
|
}).then(({data})=>{
|
||
|
this.isScroll = data.list.length>=this.limit
|
||
|
this.list = this.list.concat(data.list)
|
||
|
this.page+=1
|
||
|
})
|
||
|
},
|
||
|
// 详情
|
||
|
goDetail(item){
|
||
|
uni.navigateTo({
|
||
|
url:'/pages/users/feedback/detail?id='+item.feedback_id
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
onReachBottom() {
|
||
|
this.getList()
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.feedback-list{
|
||
|
.item{
|
||
|
position: relative;
|
||
|
padding: 20rpx 30rpx;
|
||
|
background-color: #fff;
|
||
|
border-bottom: 1px solid #f5f5f5;
|
||
|
.info{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
font-size: 28rpx;
|
||
|
color: #666;
|
||
|
.title{
|
||
|
flex: 1;
|
||
|
padding-right: 30rpx;
|
||
|
}
|
||
|
.tips{
|
||
|
margin-right: 10rpx;
|
||
|
color: var(--view-theme);
|
||
|
}
|
||
|
}
|
||
|
.time{
|
||
|
margin-top: 5rpx;
|
||
|
color: #BBBBBB;
|
||
|
font-size: 26rpx;
|
||
|
}
|
||
|
.iconfont{
|
||
|
position: absolute;
|
||
|
right: 20rpx;
|
||
|
top: 50%;
|
||
|
transform: translateY(-50%);
|
||
|
font-size: 26rpx;
|
||
|
color: #707070;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|