修改商家端客服列表的数据展示逻辑

This commit is contained in:
赵毅 2025-10-14 09:47:50 +08:00
parent 244b6dea60
commit 30a2765505
2 changed files with 6 additions and 4 deletions

View File

@ -35,10 +35,12 @@ export default {
isLoading: false,
page_num: 1,
page_size: 10,
itemObj: {}
itemObj: {},
merchantId: ''
}
},
onLoad(){
onLoad(options){
this.merchantId = JSON.parse(options.merchant_id)
},
onShow(){
//
@ -56,7 +58,7 @@ export default {
page_num: this.page_num,
page_size: this.page_size
}).then((res) => {
this.recordsList = res.msg_list.filter(item => item.client_id_one !== item.client_id_two)
this.recordsList = res.msg_list.filter(item => item.client_id_one !== item.client_id_two && item.mch_id == this.merchantId)
})
} catch (error) {
console.error('加载聊天记录失败', error)

View File

@ -183,7 +183,7 @@ export default {
click(item) {
// itemurl
if (item.url) {
NavgateTo(item.url)
NavgateTo(item.url + '?merchant_id=' + this.selectedShop.id)
} else {
console.warn('未配置跳转URL');
//