Commit 5aff8ee3 by 胡悦

提交AI导师传参数问题

1 parent ab08ffd7
......@@ -46,7 +46,7 @@ export default {
this.list = res
},
async jump(data) {
let {agentUrl,domainName,presuppositionProblem, sopTaskDetailInfoDTO} = data
let {agentUrl,domainName,presuppositionProblem, taskStatus, checkDate} = data
if(!agentUrl) {
return uni.showToast({
title: '待开放',
......@@ -54,13 +54,11 @@ export default {
})
}
let url = `/pages/common/aiWebview?url=${agentUrl}&domain=${domainName}&presuppositionProblem=${presuppositionProblem}`
if (sopTaskDetailInfoDTO) {
const {phone} = uni.$storage.get("userInfo")
url += `&practice_status=${sopTaskDetailInfoDTO.taskStatus}&date=${sopTaskDetailInfoDTO.checkDate}`
const res = await uni.$api.commonApi.updateSopAiAgentMessageStatus({
staffPhone: phone
})
}
const {phone} = uni.$storage.get("userInfo")
url += `&practice_status=${taskStatus}&date=${checkDate}`
const res = await uni.$api.commonApi.updateSopAiAgentMessageStatus({
staffPhone: phone
})
uni.navigateTo({ url })
}
}
......
......@@ -38,6 +38,12 @@ export default {
3:'其他'
}[channelType]
this.url = `${options.url}?no_header=1&business_type=${ bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${options.domain}&presuppositionProblem=${options.presuppositionProblem}`
if(options.practice_status) {
this.url += `&practice_status=${options.practice_status}`
}
if(options.date) {
this.url += `&date=${options.date}`
}
console.log(this.url,999)
// this.url='http://assistant.test.glsx.com.cn/chat/jHpvpOmuMWPxYxKo?business_type=12&brand=%E9%97%AE%E7%95%8C&one_id=266&platformType=2&no_header=1&domain=http://aiassistant.test.glsx.com.cn'
setTimeout(() => {
......
......@@ -217,7 +217,7 @@ export default {
icon: 'none'
});
}
const url = `/pages/common/aiWebview?url=${agentUrl}&domain=${domainName}&presuppositionProblem=${presuppositionProblem}&practice_status=${taskStatus}&checkDate=${checkDate}`;
const url = `/pages/common/aiWebview?url=${agentUrl}&domain=${domainName}&presuppositionProblem=${presuppositionProblem}&practice_status=${taskStatus}&date=${checkDate}`;
uni.navigateTo({ url });
// 不刷新列表的更新消息状态
if (row.status == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!