修改商家端客服列表的数据展示逻辑
This commit is contained in:
parent
244b6dea60
commit
30a2765505
@ -35,10 +35,12 @@ export default {
|
|||||||
isLoading: false,
|
isLoading: false,
|
||||||
page_num: 1,
|
page_num: 1,
|
||||||
page_size: 10,
|
page_size: 10,
|
||||||
itemObj: {}
|
itemObj: {},
|
||||||
|
merchantId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
|
this.merchantId = JSON.parse(options.merchant_id)
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
// 页面显示时重新加载聊天记录
|
// 页面显示时重新加载聊天记录
|
||||||
@ -56,7 +58,7 @@ export default {
|
|||||||
page_num: this.page_num,
|
page_num: this.page_num,
|
||||||
page_size: this.page_size
|
page_size: this.page_size
|
||||||
}).then((res) => {
|
}).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) {
|
} catch (error) {
|
||||||
console.error('加载聊天记录失败', error)
|
console.error('加载聊天记录失败', error)
|
||||||
|
|||||||
@ -183,7 +183,7 @@ export default {
|
|||||||
click(item) {
|
click(item) {
|
||||||
// 根据item中的url进行跳转
|
// 根据item中的url进行跳转
|
||||||
if (item.url) {
|
if (item.url) {
|
||||||
NavgateTo(item.url)
|
NavgateTo(item.url + '?merchant_id=' + this.selectedShop.id)
|
||||||
} else {
|
} else {
|
||||||
console.warn('未配置跳转URL');
|
console.warn('未配置跳转URL');
|
||||||
// 可添加默认跳转或提示
|
// 可添加默认跳转或提示
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user