@current="handleCurrentConversation" 点击没反应
来源:13-15 前端TS实现IM模块信息区显示业务数据

qq_北辰元凰_0
2024-01-16
<TUIConversation @current=“handleCurrentConversation” />
下面是 script 代码
const handleCurrentConversation = (value : string) => {
console.log(1233)
console.log(value)
console.log(212)
let account = value.substr(3); //获取客户IM账号
let customerId = account.split("_")[1] //获取客户主键值
data.customer.id = customerId
let json = { customerId: customerId }
//查询客户基本信息和订单统计数据
proxy.$http("/mis/customer/searchSummary", “POST”, json, true, function (resp) {
let result = resp.result
data.customer.name = result.name
data.customer.sex = result.sex
data.customer.tel = result.tel
data.customer.createTime = result.createTime
data.customer.photo = result.photo
data.statistic.amount = result.amount
data.statistic.count = result.count
data.statistic.number = result.number
})
//加载订单分页记录
loadOrderList()
};
function sizeChangeHandle(val) {
data.order.pageSize = val;
data.order.pageIndex = 1;
loadOrderList();
}
function currentChangeHandle(val) {
data.order.pageIndex = val;
loadOrderList();
}
3回答
-
weixin_慕尼黑5051028
2024-02-27
我用@current也不行,用这个可以
<TUIConversation @handleSwitchConversation="handleCurrentConversation"></TUIConversation>
20 -
恒木西逻
2024-02-02
哥们,感谢你前提提供的IM报错解答,本章节你的问题我还是和你一样也存在,我搞了大半天解决了,案例还是发布在本章节13-15,你可以看看
10 -
神思者
2024-01-17
去看浏览器控制台报错信息
022024-01-18
相似问题