反馈处理

version/0412
wangdong 6 months ago
parent 30a2ec4e99
commit 0c68b305f3
  1. 8
      api/category/index.js
  2. 33
      pages/feedback/list.vue
  3. 4
      pages/shopList/shopPage.vue

@ -3,7 +3,8 @@ import request from '@/utils/request'
// api地址
const api = {
list: 'category/list',
sonList:'goods/list'
sonList:'goods/list',
listmerchant: 'category/listmerchant'
}
@ -17,4 +18,9 @@ export const sonList = (param, option) => {
}
export const childrenList = (param, option) => {
return request.get('category/childrenList', param, option)
}
// 获取商户下商品分类列表
export const listmerchant = (param, option) => {
return request.get(api.listmerchant, param, option)
}

@ -5,7 +5,7 @@
<view class="f-top">
<view class="top-type">
<view class="type-info">您的反馈{{ typeList[item.type - 1] }}</view>
<text :class="{ 'ing': item.status !== 1 }">{{ item.status === 1 ? '已完成' : '受理中' }}</text>
<text :class="{ 'ing': !item.answer }">{{ item.answer ? '已完成' : '受理中' }}</text>
</view>
<view class="top-suggest">
<view class="suggest" :class="{'suggest-mask': !item.openSuggest }">
@ -19,7 +19,7 @@
</view>
<view class="time">{{ item.create_time }}</view>
</view>
<view v-if="item.status === 1" class="f-bottom">
<view v-if="item.answer" class="f-bottom">
<view class="title">
处理结果
<view v-if="item.showResultBtn" class="btn" @click="item.openResult = !item.openResult">
@ -29,12 +29,12 @@
</view>
<view class="result" style="margin-bottom: 30rpx;">
<view class="result-label">处理时间</view>
<view class="result-content" style="color: #333;">{{ item.solveTime }}</view>
<view class="result-content" style="color: #333;">{{ item.deal_time }}</view>
</view>
<view class="result">
<view class="result-label">回复内容</view>
<view class="result-content" :class="{'result-mask': !item.openResult }">
{{ item.solveResult }}
{{ item.answer }}
<view v-if="!item.openResult && item.showResultBtn" class="mask"></view>
</view>
</view>
@ -59,28 +59,7 @@
'功能新增:我想用的功能,希望能开发新增',
'服务建议:服务商服务不到位,我有建议',
],
list: [
// {
// type: '',
// suggest: '退',
// create_time: '2024-04-01 20:22:31',
// status: 0,
// solveTime: '2024-04-01 20:22:31',
// solveResult: '-',
// openSuggest: false,
// openResult: false,
// },
// {
// type: '',
// suggest: '退',
// create_time: '2024-04-01 20:22:31',
// status: 1,
// solveTime: '2024-04-01 20:22:31',
// solveResult: '-',
// openSuggest: false,
// openResult: false,
// }
],
list: [],
loading: false,
};
},
@ -103,7 +82,7 @@
item.openSuggest = false;
item.openResult = false;
item.showSuggestBtn = this.calcContentWidth(item.suggest);
item.showResultBtn = this.calcContentWidth(item.solveResult);
item.showResultBtn = this.calcContentWidth(item.answer);
}
})
.finally(() => this.loading = false)

@ -213,8 +213,8 @@
getGoodsTypeList() {
const that = this;
return new Promise((resolve, reject) => {
cstegory.list({
// merchantId: this.id
cstegory.listmerchant({
merchantId: this.id
})
.then(res => {
//

Loading…
Cancel
Save