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 a982c7ca
authored
Jun 28, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
口语化
1 parent
19158f21
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
packageEquity/carEquityApi.js
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
packageEquity/pages/aiCheck/scene/scene.js
packageEquity/carEquityApi.js
View file @
a982c7c
...
@@ -201,7 +201,7 @@ export default {
...
@@ -201,7 +201,7 @@ export default {
* 获取客户角色
* 获取客户角色
*/
*/
sparringRole
(
data
)
{
sparringRole
(
data
)
{
return
api
.
post
(
"dj.api.carboutique.ai.sparring.role.info.page"
,
data
,[],
"/rop-dj-
pairexc
/router"
);
return
api
.
post
(
"dj.api.carboutique.ai.sparring.role.info.page"
,
data
,[],
"/rop-dj-
car-boutique
/router"
);
},
},
/**
/**
* 对练次数
* 对练次数
...
...
packageEquity/pages/aiCheck/chat/chat.js
View file @
a982c7c
...
@@ -307,6 +307,7 @@ Page({
...
@@ -307,6 +307,7 @@ Page({
main_point
,
main_point
,
roleInspiration
,
roleInspiration
,
round
,
round
,
person_type
,
}
=
this
.
data
;
}
=
this
.
data
;
this
.
data
.
isSend
=
false
;
this
.
data
.
isSend
=
false
;
let
history_message
=
this
.
getHistory
();
let
history_message
=
this
.
getHistory
();
...
@@ -320,6 +321,7 @@ Page({
...
@@ -320,6 +321,7 @@ Page({
const
{
uuid
}
=
wx
.
$util
.
getUserInfo
();
const
{
uuid
}
=
wx
.
$util
.
getUserInfo
();
aiApi
aiApi
.
sparring
({
.
sparring
({
person_type
,
user_message
,
user_message
,
history_message
,
history_message
,
step
,
step
,
...
@@ -464,10 +466,11 @@ Page({
...
@@ -464,10 +466,11 @@ Page({
timer
=
setInterval
(()
=>
{
timer
=
setInterval
(()
=>
{
duration
++
;
duration
++
;
},
1000
);
},
1000
);
const
{
sex
,
avatar
,
roleName
,
roleType
,
attackScript
}
=
options
;
const
{
sex
,
avatar
,
roleName
,
roleType
,
attackScript
,
person_type
}
=
options
;
this
.
getScriptList
(
attackScript
);
this
.
getScriptList
(
attackScript
);
this
.
setData
({
this
.
setData
({
avatar
,
avatar
,
person_type
,
sex
,
sex
,
roleName
,
roleName
,
roleType
,
roleType
,
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
View file @
a982c7c
...
@@ -285,6 +285,9 @@ Component({
...
@@ -285,6 +285,9 @@ Component({
this
.
toBottom
()
this
.
toBottom
()
this
.
stopAudio
()
this
.
stopAudio
()
},
},
/**
* @param index 1代表结束了,不播放音频
*/
setList
(
val
,
index
)
{
setList
(
val
,
index
)
{
const
{
const
{
list
list
...
...
packageEquity/pages/aiCheck/scene/scene.js
View file @
a982c7c
...
@@ -25,10 +25,10 @@ Page({
...
@@ -25,10 +25,10 @@ Page({
},
},
jump
()
{
jump
()
{
const
{
selectedIndex
,
customeTypeList
}
=
this
.
data
const
{
selectedIndex
,
customeTypeList
}
=
this
.
data
const
{
avatar
,
roleName
,
roleType
,
attackScript
,
roleDetail
}
=
customeTypeList
[
selectedIndex
]
const
{
avatar
,
roleName
,
roleType
,
attackScript
,
roleDetail
,
languageStyle
}
=
customeTypeList
[
selectedIndex
]
const
sex
=
/性别:男/
.
test
(
roleDetail
)?
1
:
0
const
sex
=
/性别:男/
.
test
(
roleDetail
)?
1
:
0
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/chat/chat?avatar=
${
avatar
}
&sex=
${
sex
}
&roleName=
${
roleName
}
&roleType=
${
roleType
}
&attackScript=
${
attackScript
}
`
url
:
`/packageEquity/pages/aiCheck/chat/chat?avatar=
${
avatar
}
&sex=
${
sex
}
&roleName=
${
roleName
}
&roleType=
${
roleType
}
&attackScript=
${
attackScript
}
&person_type=
${
languageStyle
}
`
})
})
this
.
setData
({
show
:
false
})
this
.
setData
({
show
:
false
})
},
},
...
...
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