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