Commit 8d0659fd by 前端

跳转

1 parent 77b084ad
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 4; let index = 2;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -58,7 +58,8 @@ export default { ...@@ -58,7 +58,8 @@ export default {
data, data,
[], [],
"/router/get/voice/config/1.0.0", "/router/get/voice/config/1.0.0",
"AI" "AI",
false
); );
}, },
getSensitive(data = {}) { getSensitive(data = {}) {
...@@ -67,7 +68,8 @@ export default { ...@@ -67,7 +68,8 @@ export default {
data, data,
[], [],
"/router/is/sensitive/1.0.0", "/router/is/sensitive/1.0.0",
"AI" "AI",
false
); );
}, },
//同义化话术 //同义化话术
...@@ -77,7 +79,8 @@ export default { ...@@ -77,7 +79,8 @@ export default {
data, data,
[], [],
"/router/similar/phrases/1.0.0", "/router/similar/phrases/1.0.0",
"AI" "AI",
false
); );
}, },
...@@ -88,7 +91,8 @@ export default { ...@@ -88,7 +91,8 @@ export default {
data, data,
[], [],
"/router/get/voice/to/text/1.0.0", "/router/get/voice/to/text/1.0.0",
"AI" "AI",
false
); );
}, },
/** /**
......
...@@ -76,12 +76,17 @@ Page({ ...@@ -76,12 +76,17 @@ Page({
if (list.length == 0) { if (list.length == 0) {
return this.back(); return this.back();
} }
let isJump = true; let isJump = true,Sentences = [];
list.forEach((i) => { list.forEach((i) => {
if (i.role == 2) { if (i.role == 2) {
isJump = false; isJump = false;
Sentences = [...Sentences, ...i.Sentences?i.Sentences:[]]
} }
}); });
if(Sentences.length == 0) {
wx.$util.showToast("对话内容太少");
return;
}
if (isJump) { if (isJump) {
return this.back(); return this.back();
} }
...@@ -95,10 +100,12 @@ Page({ ...@@ -95,10 +100,12 @@ Page({
batch_id, batch_id,
roleType, roleType,
step, step,
sparringTaskId sparringTaskId,
entry
} = this.data; } = this.data;
console.log(entry)
wx.redirectTo({ wx.redirectTo({
url: `/packageEquity/pages/aiCheck/result/result?roleType=${roleType}&duration=${duration}&history_message=${history_message}&batch_id=${batch_id}&sparringLink=${step}&sparringTaskId=${sparringTaskId}`, url: `/packageEquity/pages/aiCheck/result/result?roleType=${roleType}&duration=${duration}&history_message=${history_message}&batch_id=${batch_id}&sparringLink=${step}&sparringTaskId=${sparringTaskId}&entry=${entry}`,
}); });
}, },
toBottom() { toBottom() {
...@@ -387,7 +394,9 @@ Page({ ...@@ -387,7 +394,9 @@ Page({
content: "" content: ""
}; };
const audioBox = this.selectComponent("#audioBox"); const audioBox = this.selectComponent("#audioBox");
audioBox.addList(addVal); if(retryCount == 0) {
audioBox.addList(addVal);
}
const { const {
uuid uuid
} = wx.$util.getUserInfo(); } = wx.$util.getUserInfo();
...@@ -531,7 +540,8 @@ Page({ ...@@ -531,7 +540,8 @@ Page({
roleType: type, roleType: type,
stage, stage,
roleName: name, roleName: name,
isDemo isDemo,
entry
} = options; } = options;
let params = { let params = {
roleType: type, roleType: type,
...@@ -540,6 +550,10 @@ Page({ ...@@ -540,6 +550,10 @@ Page({
params = { params = {
roleName: name.replace('客户',''), roleName: name.replace('客户',''),
}; };
this.setData({entry:'other'})
}
if(entry == 'other') {
this.setData({entry:'other'})
} }
const roleInfo = await carLifeApi.sparringRole({ const roleInfo = await carLifeApi.sparringRole({
currentPage: 1, currentPage: 1,
......
...@@ -162,16 +162,19 @@ ...@@ -162,16 +162,19 @@
height: 14rpx; height: 14rpx;
border-radius: 50%; border-radius: 50%;
margin-right: 24rpx; margin-right: 24rpx;
animation: load 1s ease-in infinite;
&.first { &.first {
animation-delay:0.13s;
background-color: rgba(57, 137, 254, 0.3); background-color: rgba(57, 137, 254, 0.3);
} }
&.second { &.second {
animation-delay:0.26s;
background-color: rgba(57, 137, 254, 0.5); background-color: rgba(57, 137, 254, 0.5);
} }
&.third { &.third {
animation-delay:0.39s;
background-color: rgba(57, 137, 254, 0.7); background-color: rgba(57, 137, 254, 0.7);
} }
} }
...@@ -180,4 +183,12 @@ ...@@ -180,4 +183,12 @@
margin-top: 16rpx; margin-top: 16rpx;
font-size: 28rpx; font-size: 28rpx;
color: #999999; color: #999999;
}
@keyframes load {
0% {
opacity: 1;
}
100% {
opacity: 0.2;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -28,12 +28,17 @@ Page({ ...@@ -28,12 +28,17 @@ Page({
}, },
again() { again() {
const { const {
id id,
entry
} = this.data; } = this.data;
if (id) { if (id) {
wx.navigateTo({ wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`, url: `/packageEquity/pages/aiCheck/scene/scene`,
}); });
} else if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
} else { } else {
wx.navigateBack({ wx.navigateBack({
delta: 2, delta: 2,
...@@ -46,6 +51,13 @@ Page({ ...@@ -46,6 +51,13 @@ Page({
backHome() { backHome() {
const pages = getCurrentPages(); const pages = getCurrentPages();
const prevPage = pages[pages.length - 3]; const prevPage = pages[pages.length - 3];
const {entry} = this.data
if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/start/start`,
});
return
}
if (prevPage.route == "packageEquity/pages/aiCheck/start/start") { if (prevPage.route == "packageEquity/pages/aiCheck/start/start") {
wx.navigateBack({ wx.navigateBack({
delta: 2, delta: 2,
...@@ -67,7 +79,8 @@ Page({ ...@@ -67,7 +79,8 @@ Page({
reportItem, reportItem,
currentItem, currentItem,
id, id,
avatar avatar,
entry
}) => { }) => {
console.log(currentItem) console.log(currentItem)
// this.setTitle(0); // this.setTitle(0);
...@@ -80,6 +93,7 @@ Page({ ...@@ -80,6 +93,7 @@ Page({
id, id,
reportItems, reportItems,
avatar, avatar,
entry,
title: currentItem.reportItem title: currentItem.reportItem
}); });
}) })
......
...@@ -110,19 +110,32 @@ Page({ ...@@ -110,19 +110,32 @@ Page({
}, },
again() { again() {
const { const {
id id,
entry
} = this.data; } = this.data;
if (id) { if (id) {
wx.navigateTo({ wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`, url: `/packageEquity/pages/aiCheck/scene/scene`,
}); });
} else { } else if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
}else {
wx.$router.back(); wx.$router.back();
} }
}, },
backHome() { backHome() {
const pages = getCurrentPages(); const pages = getCurrentPages();
const prevPage = pages[pages.length - 2]; const prevPage = pages[pages.length - 2];
const {entry} = this.data
console.log(entry,'entry')
if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/start/start`,
});
return
}
if (prevPage.route == "packageEquity/pages/aiCheck/start/start") { if (prevPage.route == "packageEquity/pages/aiCheck/start/start") {
wx.navigateBack({ wx.navigateBack({
delta: 1, delta: 1,
...@@ -176,9 +189,11 @@ Page({ ...@@ -176,9 +189,11 @@ Page({
id, id,
sparringLink, sparringLink,
sparringTaskId, sparringTaskId,
entry
} = options; } = options;
this.setData({ this.setData({
id, id,
entry,
roleType, roleType,
sparringLink, sparringLink,
sparringTaskId, sparringTaskId,
...@@ -538,11 +553,13 @@ Page({ ...@@ -538,11 +553,13 @@ Page({
reportItem, reportItem,
avatar, avatar,
id, id,
entry
} = this.data } = this.data
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", { wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", {
reportItem, reportItem,
avatar, avatar,
id, id,
entry,
currentItem: item currentItem: item
}) })
}, },
......
...@@ -93,12 +93,12 @@ Page({ ...@@ -93,12 +93,12 @@ Page({
}) })
}, },
jump() { jump() {
const {selectedIndex,customeTypeList,stepName, step, linkChainList,isDemo} = this.data const {selectedIndex,customeTypeList,stepName, step, linkChainList,isDemo,entry} = this.data
const { roleType } = customeTypeList[selectedIndex] const { roleType } = customeTypeList[selectedIndex]
const { suggest } = linkChainList.find(item => item.type == step) const { suggest } = linkChainList.find(item => item.type == step)
console.log(roleType, stepName, suggest,isDemo) console.log(roleType, stepName, suggest,isDemo)
wx.navigateTo({ wx.navigateTo({
url: `/packageEquity/pages/aiCheck/chat/chat?roleType=${roleType}&stage=${stepName}&suggest=${suggest}&isDemo=${isDemo}` url: `/packageEquity/pages/aiCheck/chat/chat?roleType=${roleType}&stage=${stepName}&suggest=${suggest}&isDemo=${isDemo}&entry=${entry}`
}) })
this.setData({ this.setData({
show: false show: false
...@@ -127,7 +127,8 @@ Page({ ...@@ -127,7 +127,8 @@ Page({
this.setData({ this.setData({
stepName: findChain.name, stepName: findChain.name,
step: findChain.type, step: findChain.type,
show:true show:true,
entry:'other'
}) })
} }
const { const {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!