Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d0659fd
authored
Jul 30, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转
1 parent
77b084ad
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
79 additions
and
18 deletions
config.js
packageEquity/aiApi.js
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.sass
packageEquity/pages/aiCheck/detail/detail.js
packageEquity/pages/aiCheck/result/result.js
packageEquity/pages/aiCheck/scene/scene.js
config.js
View file @
8d0659f
...
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let
index
=
4
;
let
index
=
2
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
packageEquity/aiApi.js
View file @
8d0659f
...
...
@@ -58,7 +58,8 @@ export default {
data
,
[],
"/router/get/voice/config/1.0.0"
,
"AI"
"AI"
,
false
);
},
getSensitive
(
data
=
{})
{
...
...
@@ -67,7 +68,8 @@ export default {
data
,
[],
"/router/is/sensitive/1.0.0"
,
"AI"
"AI"
,
false
);
},
//同义化话术
...
...
@@ -77,7 +79,8 @@ export default {
data
,
[],
"/router/similar/phrases/1.0.0"
,
"AI"
"AI"
,
false
);
},
...
...
@@ -88,7 +91,8 @@ export default {
data
,
[],
"/router/get/voice/to/text/1.0.0"
,
"AI"
"AI"
,
false
);
},
/**
...
...
packageEquity/pages/aiCheck/chat/chat.js
View file @
8d0659f
...
...
@@ -76,12 +76,17 @@ Page({
if
(
list
.
length
==
0
)
{
return
this
.
back
();
}
let
isJump
=
true
;
let
isJump
=
true
,
Sentences
=
[]
;
list
.
forEach
((
i
)
=>
{
if
(
i
.
role
==
2
)
{
isJump
=
false
;
Sentences
=
[...
Sentences
,
...
i
.
Sentences
?
i
.
Sentences
:[]]
}
});
if
(
Sentences
.
length
==
0
)
{
wx
.
$util
.
showToast
(
"对话内容太少"
);
return
;
}
if
(
isJump
)
{
return
this
.
back
();
}
...
...
@@ -95,10 +100,12 @@ Page({
batch_id
,
roleType
,
step
,
sparringTaskId
sparringTaskId
,
entry
}
=
this
.
data
;
console
.
log
(
entry
)
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
()
{
...
...
@@ -387,7 +394,9 @@ Page({
content
:
""
};
const
audioBox
=
this
.
selectComponent
(
"#audioBox"
);
audioBox
.
addList
(
addVal
);
if
(
retryCount
==
0
)
{
audioBox
.
addList
(
addVal
);
}
const
{
uuid
}
=
wx
.
$util
.
getUserInfo
();
...
...
@@ -531,7 +540,8 @@ Page({
roleType
:
type
,
stage
,
roleName
:
name
,
isDemo
isDemo
,
entry
}
=
options
;
let
params
=
{
roleType
:
type
,
...
...
@@ -540,6 +550,10 @@ Page({
params
=
{
roleName
:
name
.
replace
(
'客户'
,
''
),
};
this
.
setData
({
entry
:
'other'
})
}
if
(
entry
==
'other'
)
{
this
.
setData
({
entry
:
'other'
})
}
const
roleInfo
=
await
carLifeApi
.
sparringRole
({
currentPage
:
1
,
...
...
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.sass
View file @
8d0659f
...
...
@@ -162,16 +162,19 @@
height
:
14rpx
;
border-radius
:
50%
;
margin-right
:
24rpx
;
animation
:
load
1s
ease-in
infinite
;
&
.first
{
animation-delay
:
0
.13s
;
background-color
:
rgba
(
57
,
137
,
254
,
0
.3
)
;
}
&
.second
{
animation-delay
:
0
.26s
;
background-color
:
rgba
(
57
,
137
,
254
,
0
.5
)
;
}
&
.third
{
animation-delay
:
0
.39s
;
background-color
:
rgba
(
57
,
137
,
254
,
0
.7
)
;
}
}
...
...
@@ -180,4 +183,12 @@
margin-top
:
16rpx
;
font-size
:
28rpx
;
color
:
#999999
;
}
@keyframes
load
{
0
%
{
opacity
:
1
;
}
100
%
{
opacity
:
0
.2
;
}
}
\ No newline at end of file
packageEquity/pages/aiCheck/detail/detail.js
View file @
8d0659f
...
...
@@ -28,12 +28,17 @@ Page({
},
again
()
{
const
{
id
id
,
entry
}
=
this
.
data
;
if
(
id
)
{
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene`
,
});
}
else
if
(
entry
==
'other'
){
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene`
,
});
}
else
{
wx
.
navigateBack
({
delta
:
2
,
...
...
@@ -46,6 +51,13 @@ Page({
backHome
()
{
const
pages
=
getCurrentPages
();
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"
)
{
wx
.
navigateBack
({
delta
:
2
,
...
...
@@ -67,7 +79,8 @@ Page({
reportItem
,
currentItem
,
id
,
avatar
avatar
,
entry
})
=>
{
console
.
log
(
currentItem
)
// this.setTitle(0);
...
...
@@ -80,6 +93,7 @@ Page({
id
,
reportItems
,
avatar
,
entry
,
title
:
currentItem
.
reportItem
});
})
...
...
packageEquity/pages/aiCheck/result/result.js
View file @
8d0659f
...
...
@@ -110,19 +110,32 @@ Page({
},
again
()
{
const
{
id
id
,
entry
}
=
this
.
data
;
if
(
id
)
{
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene`
,
});
}
else
{
}
else
if
(
entry
==
'other'
){
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene`
,
});
}
else
{
wx
.
$router
.
back
();
}
},
backHome
()
{
const
pages
=
getCurrentPages
();
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"
)
{
wx
.
navigateBack
({
delta
:
1
,
...
...
@@ -176,9 +189,11 @@ Page({
id
,
sparringLink
,
sparringTaskId
,
entry
}
=
options
;
this
.
setData
({
id
,
entry
,
roleType
,
sparringLink
,
sparringTaskId
,
...
...
@@ -538,11 +553,13 @@ Page({
reportItem
,
avatar
,
id
,
entry
}
=
this
.
data
wx
.
$router
.
go
(
"/packageEquity/pages/aiCheck/detail/detail"
,
{
reportItem
,
avatar
,
id
,
entry
,
currentItem
:
item
})
},
...
...
packageEquity/pages/aiCheck/scene/scene.js
View file @
8d0659f
...
...
@@ -93,12 +93,12 @@ Page({
})
},
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
{
suggest
}
=
linkChainList
.
find
(
item
=>
item
.
type
==
step
)
console
.
log
(
roleType
,
stepName
,
suggest
,
isDemo
)
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
({
show
:
false
...
...
@@ -127,7 +127,8 @@ Page({
this
.
setData
({
stepName
:
findChain
.
name
,
step
:
findChain
.
type
,
show
:
true
show
:
true
,
entry
:
'other'
})
}
const
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment