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 5a6eed05
authored
Nov 04, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
db28cb03
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/chat/chat.wxml
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
packageEquity/pages/aiCheck/defense/defense.js
packageEquity/pages/aiCheck/chat/chat.js
View file @
5a6eed0
...
@@ -892,7 +892,8 @@ Page({
...
@@ -892,7 +892,8 @@ Page({
entry
,
entry
,
recordName
,
recordName
,
objection_id
,
objection_id
,
title
title
,
product_name
}
=
options
;
}
=
options
;
console
.
log
(
recordName
)
console
.
log
(
recordName
)
let
params
=
{
let
params
=
{
...
@@ -931,7 +932,7 @@ Page({
...
@@ -931,7 +932,7 @@ Page({
const
findChain
=
linkChainList
.
find
((
link
)
=>
link
.
name
==
stage
);
const
findChain
=
linkChainList
.
find
((
link
)
=>
link
.
name
==
stage
);
this
.
setData
({
this
.
setData
({
objection_id
,
objection_id
,
stage
:
findChain
.
name
,
stage
:
product_name
||
`
${
findChain
.
name
}
环节`
,
step
:
findChain
.
type
,
step
:
findChain
.
type
,
avatar
,
avatar
,
isDemo
:
isDemo
===
"true"
,
isDemo
:
isDemo
===
"true"
,
...
...
packageEquity/pages/aiCheck/chat/chat.wxml
View file @
5a6eed0
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<view class="chat-left">
<view class="chat-left">
<image class="avatar-icon" src="{{avatar}}"></image>
<image class="avatar-icon" src="{{avatar}}"></image>
<view class="chat-box">
<view class="chat-box">
<view class="content-box">你已选择:<text class="font-b">{{roleName}}、{{stage}}
环节
</text></view>
<view class="content-box">你已选择:<text class="font-b">{{roleName}}、{{stage}}</text></view>
<view class="operation">
<view class="operation">
<view class="operation-top">
<view class="operation-top">
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
View file @
5a6eed0
...
@@ -246,7 +246,7 @@ Component({
...
@@ -246,7 +246,7 @@ Component({
toBottom
()
{
toBottom
()
{
const
pages
=
getCurrentPages
()
const
pages
=
getCurrentPages
()
const
curPage
=
pages
[
pages
.
length
-
1
];
const
curPage
=
pages
[
pages
.
length
-
1
];
curPage
.
toBottom
()
if
(
curPage
)
curPage
.
toBottom
()
},
},
setAudio
(
index
,
filePath
,
type
)
{
setAudio
(
index
,
filePath
,
type
)
{
if
(
!
this
.
data
[
'ctx_'
+
index
])
if
(
!
this
.
data
[
'ctx_'
+
index
])
...
...
packageEquity/pages/aiCheck/defense/defense.js
View file @
5a6eed0
...
@@ -85,14 +85,16 @@ Page({
...
@@ -85,14 +85,16 @@ Page({
toChat
(
e
)
{
toChat
(
e
)
{
const
{
id
,
title
}
=
e
.
currentTarget
.
dataset
const
{
id
,
title
}
=
e
.
currentTarget
.
dataset
const
objection_id
=
id
.
split
(
'-'
).
pop
()
const
objection_id
=
id
.
split
(
'-'
).
pop
()
const
{
customeTypeList
,
isDemo
,
linkChainList
,
recordName
}
=
this
.
data
const
type_id
=
id
.
split
(
'-'
)[
1
]
const
{
customeTypeList
,
isDemo
,
linkChainList
,
recordName
,
typeList
}
=
this
.
data
console
.
log
(
customeTypeList
)
console
.
log
(
customeTypeList
)
const
selectedIndex
=
Math
.
floor
(
Math
.
random
()
*
customeTypeList
.
length
)
const
selectedIndex
=
Math
.
floor
(
Math
.
random
()
*
customeTypeList
.
length
)
const
linkIndex
=
Math
.
floor
(
Math
.
random
()
*
linkChainList
.
length
)
const
linkIndex
=
Math
.
floor
(
Math
.
random
()
*
linkChainList
.
length
)
const
{
roleType
}
=
customeTypeList
[
selectedIndex
]
const
{
roleType
}
=
customeTypeList
[
selectedIndex
]
const
{
name
:
stage
,
suggest
}
=
linkChainList
[
linkIndex
]
const
{
name
:
stage
,
suggest
}
=
linkChainList
[
linkIndex
]
const
product_name
=
typeList
.
find
(
item
=>
item
.
id
==
type_id
)?.
name
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/chat/chat?roleType=
${
roleType
}
&stage=
${
stage
}
&suggest=
${
suggest
}
&isDemo=
${
isDemo
}
&isInspiration=1&objection_id=
${
objection_id
}
&recordName=
${
recordName
}
&title=
${
title
}
`
url
:
`/packageEquity/pages/aiCheck/chat/chat?roleType=
${
roleType
}
&stage=
${
stage
}
&suggest=
${
suggest
}
&isDemo=
${
isDemo
}
&isInspiration=1&objection_id=
${
objection_id
}
&recordName=
${
recordName
}
&title=
${
title
}
&product_name=
${
product_name
}
`
})
})
// wx.navigateTo({
// wx.navigateTo({
// url: `/packageEquity/pages/aiCheck/chat/chat?id=${id}`
// url: `/packageEquity/pages/aiCheck/chat/chat?id=${id}`
...
...
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