2020-06-04 08:21:34 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="complaints">
|
2020-07-07 17:47:00 +08:00
|
|
|
|
<view class="complaints-box" v-for="item in feedbackList" :key="item.fb_id">
|
2020-06-04 08:21:34 +08:00
|
|
|
|
<view class="suggestions">
|
2020-07-07 17:47:00 +08:00
|
|
|
|
<view class="text">{{ item.fb_content }}</view>
|
2020-06-04 08:21:34 +08:00
|
|
|
|
<view class="image">
|
2020-07-07 17:47:00 +08:00
|
|
|
|
<image v-for="(url, index) in item.fb_images" :key="index" :src="url"></image>
|
2020-06-04 08:21:34 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="reply">
|
|
|
|
|
<view class="reply-title">后台回复:</view>
|
2020-07-07 17:47:00 +08:00
|
|
|
|
<view class="reply-content u-line-4">{{ item.reply_content }}</view>
|
2020-06-04 08:21:34 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="date">
|
2020-06-08 15:23:23 +08:00
|
|
|
|
<image src="../static/mine/26.png"></image>
|
2020-07-07 17:47:00 +08:00
|
|
|
|
<view>{{ reply_time }}</view>
|
2020-06-04 08:21:34 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
imgList: [
|
|
|
|
|
require('../static/mine/23.png'),
|
|
|
|
|
require('../static/mine/23.png'),
|
|
|
|
|
require('../static/mine/23.png'),
|
|
|
|
|
require('../static/mine/23.png')
|
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;
|
|
|
|
|
.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>
|