反馈添加图片展示,字段,帮助中心页面优化

version/0412
mujinxia 9 months ago
parent b7814ac0cb
commit 4a6af73b4f
  1. 25
      pages/news1/feedback.vue
  2. 14
      pages/news1/help.vue

@ -104,6 +104,11 @@
<u-read-more showHeight="160" textIndent="0" fontSize="26rpx" color="#9E9E9E" :toggle="true" <u-read-more showHeight="160" textIndent="0" fontSize="26rpx" color="#9E9E9E" :toggle="true"
close-text="展开"> close-text="展开">
<rich-text :nodes="item.content"></rich-text> <rich-text :nodes="item.content"></rich-text>
<view v-if="item.file_path">
<u-upload width="180" height="180" max-count="1" :file-list="item.file_paths" :deletable="false">
</u-upload>
</view>
</u-read-more> </u-read-more>
<view class="timefb" v-if="OrderType == 1"> <view class="timefb" v-if="OrderType == 1">
<text>反馈人</text> {{ item.user_name }} <text>反馈人</text> {{ item.user_name }}
@ -165,7 +170,7 @@ import Config from '@/core/config'
import * as feedback from '@/api/feedback' import * as feedback from '@/api/feedback'
export default { export default {
data() { data() {
return { return {
action: '', action: '',
header: '', header: '',
OrderType: 0, OrderType: 0,
@ -342,7 +347,19 @@ export default {
.then(res => { .then(res => {
if (res.status == 200) { if (res.status == 200) {
that.total = res.data.list.total that.total = res.data.list.total
that.feedBackList = that.feedBackList.concat(res.data.list.data) let end = res.data.list.data
end.map(itme=>{
if(itme.file_path){
itme.file_paths = []
let img_arr = itme.file_path.split(',')
img_arr.map(src=>{
itme.file_paths.push({
url:src
})
})
}
})
that.feedBackList = that.feedBackList.concat(end)
} }
}) })
.catch(reject) .catch(reject)
@ -566,7 +583,7 @@ page {
// width: calc(100% - 100rpx); // width: calc(100% - 100rpx);
.fbFlag { .fbFlag {
background: #FFFFFF; background: #FFFFFF;
border-radius: 3px; border-radius: 3px;
padding: 5rpx; padding: 5rpx;
border: 1px solid #FF4D4D; border: 1px solid #FF4D4D;
font-size: 26rpx; font-size: 26rpx;
@ -594,7 +611,7 @@ page {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #000; color: #000;
font-weight: bold; font-weight: bold;
} }
} }

@ -90,11 +90,13 @@
border-radius: 20upx; border-radius: 20upx;
overflow: hidden; overflow: hidden;
padding: 20upx; padding: 20upx;
padding-bottom: 160rpx;
.helpTitle { .helpTitle {
font-size: 32upx; font-size: 32upx;
color: #000000; color: #000000;
padding: 20upx 0; padding: 20upx 0;
font-weight: bold;
// border-bottom: 3upx solid #dfdbdb; // border-bottom: 3upx solid #dfdbdb;
} }
@ -184,18 +186,15 @@
bottom: 0; bottom: 0;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
padding: 30rpx;
.btn { .btn {
height: 100upx; height: 100upx;
margin: 10upx 30upx;
background: #FE6048; background: #FE6048;
border-radius: 28px 28px 28px 28px; border-radius: 28px 28px 28px 28px;
opacity: 1; opacity: 1;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
justify-content: center;
image { image {
width: 54upx; width: 54upx;
height: auto; height: auto;
@ -213,6 +212,7 @@
image { image {
width: 54upx; width: 54upx;
height: auto; height: auto;
margin-right: 100rpx;
} }
text-align: center; text-align: center;
display: flex; display: flex;

Loading…
Cancel
Save