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 b159f7ed
authored
Aug 07, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
报告
1 parent
78a55b3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/chat/chat.wxml
packageEquity/pages/aiCheck/result/result.js
packageEquity/pages/aiCheck/chat/chat.js
View file @
b159f7e
// packageEquity/pages/aiCheck/chat/chat.js
import
carLifeApi
from
"../../../carEquityApi"
;
import
api
from
'~/api/api.js'
const
VOICE
=
{
1
:
"zhifeng_emo"
,
2
:
"stanley"
,
...
...
@@ -264,7 +265,27 @@ Page({
content
,
};
},
handleSave
(
list
,
sparringDuration
,
triggerSensitive
)
{
getOpenId
()
{
return
new
Promise
((
resolve
)
=>
{
wx
.
login
({
success
({
code
})
{
if
(
code
)
{
api
.
ssoLogin
({
code
,
appId
:
wx
.
getAccountInfoSync
().
miniProgram
.
appId
}).
then
(
res
=>
{
resolve
(
res
.
data
.
openId
)
})
}
},
})
})
},
async
handleSave
(
list
,
sparringDuration
,
triggerSensitive
)
{
let
totalTime
=
0
;
let
Sentences
=
[];
let
content
=
""
;
...
...
@@ -329,8 +350,10 @@ Page({
redundant
,
};
});
const
openId
=
wx
.
$util
.
getOpenId
();
console
.
log
(
openId
,
'openId'
)
let
openId
=
wx
.
$util
.
getOpenId
();
if
(
!
openId
)
{
openId
=
await
this
.
getOpenId
()
}
carLifeApi
.
sparringCommit
({
openId
,
...
...
packageEquity/pages/aiCheck/chat/chat.wxml
View file @
b159f7e
...
...
@@ -59,7 +59,7 @@
<view class="wrapper-content">
<gl-image class="icon-tips" webp src="/aiCheck/icon-tips.webp"></gl-image>
<view class="title">温馨提示</view>
<view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒</view>
<view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒
!
</view>
<view class="footer">
<view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn sure" bind:tap="handleSure">确定</view>
...
...
packageEquity/pages/aiCheck/result/result.js
View file @
b159f7e
...
...
@@ -265,6 +265,10 @@ Page({
id
,
})
.
then
((
res
)
=>
{
if
(
!
res
.
data
)
{
wx
.
$router
.
reLaunch
(
'packageEquity.equityPage'
)
return
}
const
{
descriptionList
,
reportItem
,
sparringDuration
,
score
}
=
res
.
data
||
{};
let
{
minutes
,
seconds
}
=
this
.
formatTime
(
sparringDuration
||
0
);
...
...
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