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 9cd3c86e
authored
Aug 01, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
报告
1 parent
cec78e4a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
22 deletions
config.js
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/result/result.js
utils/request/environment.js
config.js
View file @
9cd3c86
...
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let
index
=
2
;
let
index
=
4
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
@@ -36,7 +36,7 @@ if (systemInfo.platform != "devtools") {
case
"develop"
:
break
;
case
"trial"
:
index
=
manual
?
index
:
2
;
index
=
manual
?
index
:
4
;
break
;
case
"release"
:
index
=
release
?
index
:
3
;
...
...
packageEquity/pages/aiCheck/chat/chat.js
View file @
9cd3c86
...
...
@@ -151,7 +151,7 @@ Page({
openAudio
:
false
};
audioBox
.
addList
(
addVal
,
1
);
const
index
=
Math
.
floor
(
Math
.
random
()
*
3
);
const
index
=
Math
.
floor
(
Math
.
random
()
*
scriptList
.
length
);
const
message
=
scriptList
[
index
].
content
;
const
Phrases
=
await
aiApi
.
getPhrases
({
message
...
...
@@ -598,6 +598,7 @@ Page({
staffUuid
:
uuid
,
yqMerchantId
:
merchantId
,
});
console
.
log
(
res
.
data
.
sparringTaskId
,
'sparringTaskIdsparringTaskIdsparringTaskId'
)
this
.
setData
({
sparringTaskId
:
res
.
data
.
sparringTaskId
});
...
...
packageEquity/pages/aiCheck/result/result.js
View file @
9cd3c86
...
...
@@ -117,25 +117,27 @@ Page({
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene`
,
});
}
else
if
(
entry
==
'other'
)
{
}
else
if
(
entry
==
'other'
)
{
wx
.
navigateTo
({
url
:
`/packageEquity/pages/aiCheck/scene/scene`
,
});
}
else
{
}
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'
){
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
,
...
...
@@ -212,13 +214,15 @@ Page({
id
})
}
else
{
const
sensitiveRes
=
await
aiApi
.
getSensitive
({
history_message
})
const
sensitiveRes
=
await
aiApi
.
getSensitive
({
history_message
})
const
is_sensitive
=
sensitiveRes
.
is_sensitive
const
chatList
=
JSON
.
parse
(
wx
.
getStorageSync
(
"chatList"
));
this
.
setData
({
chatList
})
this
.
handleSave
(
chatList
,
duration
,
is_sensitive
)
this
.
handleSave
(
chatList
,
duration
,
is_sensitive
)
}
console
.
log
(
windowW
);
},
...
...
@@ -319,7 +323,7 @@ Page({
let
axisX
=
[];
let
axisY_SpeechRate
=
[];
let
axisY_EmotionValue
=
[];
if
(
Sentences
.
length
==
0
)
{
if
(
Sentences
.
length
==
0
)
{
return
}
if
(
Sentences
.
length
>
2
)
{
...
...
@@ -366,7 +370,7 @@ Page({
}
const
axisY_Intonation
=
axisY_EmotionValue
.
map
((
currentValue
,
index
)
=>
{
if
(
index
<
axisY_EmotionValue
.
length
-
1
)
{
const
mul
=
Math
.
ceil
(
axisY_EmotionValue
[
index
+
1
]
-
currentValue
)
+
1
const
mul
=
Math
.
ceil
(
axisY_EmotionValue
[
index
+
1
]
-
currentValue
)
+
1
return
mul
>
0
?
mul
:
0
}
else
{
return
1
...
...
@@ -417,7 +421,7 @@ Page({
content
}
},
handleSave
(
list
,
sparringDuration
,
triggerSensitive
)
{
handleSave
(
list
,
sparringDuration
,
triggerSensitive
)
{
console
.
log
(
list
)
let
totalTime
=
0
;
let
Sentences
=
[];
...
...
@@ -434,7 +438,7 @@ Page({
redundantWords
,
definition
,
intonation
}
=
this
.
getSentencesDetail
(
Sentences
,
totalTime
,
content
)
||
{}
}
=
this
.
getSentencesDetail
(
Sentences
,
totalTime
,
content
)
||
{}
const
{
sparringTaskId
,
roleType
,
...
...
@@ -481,9 +485,10 @@ Page({
redundant
};
});
console
.
log
(
sparringTaskId
,
'sparringTaskId'
)
carLifeApi
.
sparringCommit
({
staffUuid
:
uuid
,
sparringTaskId
,
sparringTaskId
:
sparringTaskId
||
-
1
,
roleType
,
sparringDuration
:
sparringDuration
*
1000
,
yqMerchantId
:
merchantId
,
...
...
@@ -522,15 +527,15 @@ Page({
extra
:
{
radar
:
{
max
:
6
,
gridColor
:
'#F3F5FA'
,
bgColor
:
'#ffffff'
,
gridColor
:
'#F3F5FA'
,
bgColor
:
'#ffffff'
,
maxAlpha
:
0.3
},
},
},
{
dataPointShape
:
[
"circle"
],
drawLine
:
true
,
radarGridCount
:
6
radarGridCount
:
6
});
setTimeout
(()
=>
{
console
.
log
(
this
.
a
)
...
...
@@ -556,7 +561,7 @@ Page({
id
,
entry
}
=
this
.
data
if
(
score
==
null
)
return
if
(
score
==
null
)
return
wx
.
$router
.
go
(
"/packageEquity/pages/aiCheck/detail/detail"
,
{
reportItem
,
avatar
,
...
...
utils/request/environment.js
View file @
9cd3c86
...
...
@@ -89,9 +89,9 @@ const domain_items = {
merchants
:
"https://commodity.glsx.com.cn"
,
},
preRelease
:
{
dj
:
"http://dj.beta.glsx.com.cn"
,
dj
:
"http
s
://dj.beta.glsx.com.cn"
,
scrm
:
"https://scrm.beta.glsx.com.cn"
,
merchants
:
"http://rop-merchant.beta.glsx.com.cn"
,
merchants
:
"http
s
://rop-merchant.beta.glsx.com.cn"
,
AI
:
'https://aipractice.beta.glsx.com.cn'
,
},
cdptest
:
{
...
...
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