2020-06-04 08:21:34 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="complaints">
|
2020-07-10 09:03:19 +08:00
|
|
|
|
<scroll-view scroll-y @scrolltolower="reachBottom">
|
|
|
|
|
<view class="complaints-box" v-for="item in feedbackList" :key="item.fb_id">
|
|
|
|
|
<view class="suggestions">
|
|
|
|
|
<view class="text">{{ item.fb_content }}</view>
|
|
|
|
|
<view class="image">
|
|
|
|
|
<image v-for="(url, index) in item.fb_images" :key="index" :src="url"></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2020-07-10 17:38:21 +08:00
|
|
|
|
<view class="reply" v-if="item.is_reply">
|
2020-07-10 09:03:19 +08:00
|
|
|
|
<view class="reply-title">后台回复:</view>
|
|
|
|
|
<view class="reply-content u-line-4">{{ item.reply_content }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="date">
|
|
|
|
|
<image src="../static/mine/26.png"></image>
|
2020-07-10 17:38:21 +08:00
|
|
|
|
<view>{{ item.fb_time }}</view>
|
2020-06-04 08:21:34 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2020-07-10 09:03:19 +08:00
|
|
|
|
<u-empty text="暂无意见" mode="list" color="#000000" icon-size="90" margin-top="300" v-if="!feedbackList.length"></u-empty>
|
|
|
|
|
</scroll-view>
|
2020-06-04 08:21:34 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2020-07-07 17:47:00 +08:00
|
|
|
|
feedbackList: [],
|
|
|
|
|
page: 1, // 默认1
|
2020-06-04 08:21:34 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onNavigationBarButtonTap() {
|
|
|
|
|
uni.navigateTo({
|
2020-06-08 15:23:23 +08:00
|
|
|
|
url: '/pageE/more/WriteComments'
|
2020-06-04 08:21:34 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
2020-07-07 17:47:00 +08:00
|
|
|
|
onShow() {
|
|
|
|
|
this.getFeedbackList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getFeedbackList() {
|
|
|
|
|
this.$u.api.getFeedbackList({ page: this.page }).then(res => {
|
|
|
|
|
if(res.errCode == 0) {
|
|
|
|
|
this.feedbackList = res.data.feedbackList;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-06-04 08:21:34 +08:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.complaints {
|
|
|
|
|
min-height: calc(100vh - var(--window-top));
|
|
|
|
|
background-color: #ECECEC;
|
|
|
|
|
padding-top: 1rpx;
|
|
|
|
|
.complaints-box {
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
background-color: #ffffff;
|
2020-07-10 17:38:21 +08:00
|
|
|
|
margin-bottom: 20rpx;
|
2020-06-04 08:21:34 +08:00
|
|
|
|
.suggestions {
|
|
|
|
|
.text {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: rgba(51,51,51,1);
|
|
|
|
|
margin-bottom: 25rpx;
|
|
|
|
|
line-height: 36rpx;
|
|
|
|
|
}
|
|
|
|
|
.image {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
2020-06-08 15:23:23 +08:00
|
|
|
|
> image {
|
2020-06-04 08:21:34 +08:00
|
|
|
|
width: 210rpx;
|
|
|
|
|
height: 210rpx;
|
2020-06-08 15:23:23 +08:00
|
|
|
|
flex-shrink: 0;
|
2020-06-04 08:21:34 +08:00
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
&:not(:nth-child(3n)) {
|
|
|
|
|
margin-right: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.reply {
|
|
|
|
|
width: 690rpx;
|
|
|
|
|
height: 224rpx;
|
|
|
|
|
background: rgba(240,238,238,1);
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: rgba(102,102,102,1);
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
.reply-title {
|
|
|
|
|
margin-bottom: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
.reply-content {
|
|
|
|
|
line-height: 36rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.date {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2020-06-08 15:23:23 +08:00
|
|
|
|
> image {
|
2020-06-04 08:21:34 +08:00
|
|
|
|
width: 28rpx;
|
|
|
|
|
height: 28rpx;
|
|
|
|
|
margin-right: 12rpx;
|
2020-06-08 15:23:23 +08:00
|
|
|
|
flex-shrink: 0;
|
2020-06-04 08:21:34 +08:00
|
|
|
|
}
|
|
|
|
|
> view {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: rgba(153,153,153,1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|