123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <template>
- <view class="feedback-detail" :style="viewColor">
- <view class="hd">
- <view class="item">
- <view class="label">反馈类型</view>
- <view class="txt">{{detail.category}}</view>
- </view>
- <view class="item">
- <view class="label">问题分类</view>
- <view class="txt">{{detail.type}}</view>
- </view>
- <view class="item">
- <view class="label">姓名</view>
- <view class="txt">{{detail.realname}}</view>
- </view>
- <view class="item">
- <view class="label">电话/邮箱</view>
- <view class="txt">{{detail.contact}}</view>
- </view>
- <view class="item" v-if="detail.reply">
- <view class="label">回复状态</view>
- <view class="txt color">已回复</view>
- </view>
- </view>
- <view class="content">
- <view class="con">{{detail.content}}</view>
- <view class="img-box" v-if="detail">
- <image class="img-list" v-for="(item,index) in detail.images" :key="index" :src="item" @click="clickImg(item)" mode="scaleToFill"></image>
- </view>
- </view>
- <view class="content" v-if="detail.reply">
- <view class="reply">
- <view class="reply-left">
- <image :src="`${domain}/static/images/gly.png`" mode=""></image>
- </view>
- <view class="reply-right">
- <view class="clearfix reply-right-top">
- <view class="pull-left">管理员</view>
- <view class="pull-right">{{detail.update_time}}</view>
- </view>
- <view class="">{{detail.reply}}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
-
-
-
-
-
-
-
-
-
- import { HTTP_REQUEST_URL } from '@/config/app';
- import { feedbackDetail } from '@/api/user.js'
- import { mapGetters } from "vuex";
- export default{
- computed: mapGetters(['viewColor']),
- data(){
- return {
- con:'',
- id:'',
- detail:{},
- domain: HTTP_REQUEST_URL,
- }
- },
- onLoad(options) {
- this.id = options.id
- feedbackDetail(options.id).then(res=>{
- this.detail = res.data
- })
- },
- methods:{
- clickImg(item) {
- wx.previewImage({
- urls: this.detail.images,
- current: item,
- success: function(res) {},
- fail: function(res) {},
- complete: function(res) {},
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .feedback-detail{
- .hd{
- margin: 20rpx;
- padding: 30rpx;
- border-radius: 10rpx;
- background-color: #fff;
- .item{
- display: flex;
- justify-content: space-between;
- margin-bottom: 30rpx;
- font-size: 28rpx;
- color: #282828;
- &:last-child{
- margin-bottom: 0;
- }
- .txt{
- flex: 1;
- margin-left: 50rpx;
- text-align: right;
- color: #868686;
- }
- .color{
- color: var(--view-theme);
- }
- }
- }
- .content{
- position: relative;
- margin: 20rpx;
- padding: 30rpx;
- border-radius: 10rpx;
- line-height: 1.5;
- background-color: #fff;
- }
- .img-box{
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- .img-list{
- border-radius: 10rpx;
- margin-top: 20rpx;
- width: 210rpx;
- height: 210rpx;
- }
- }
- .reply{
- display: flex;
- .reply-left{
- width: 70rpx;
- uni-image, image{
- width: 50rpx;
- height: 50rpx;
- border-radius: 50%;
- }
- }
- .reply-right{
- width: calc( 100% - 70rpx );
- color: #282828;
- .reply-right-top{
- color: #999999;
- margin-bottom: 14rpx;
- }
- }
- }
- }
- </style>
|