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 e2e384ba
authored
Jul 20, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
d1fb87c5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
packageEquity/aiApi.js
packageEquity/pages/aiCheck/result/result.js
packageEquity/pages/aiCheck/result/result.wxml
packageEquity/pages/aiCheck/start/components/RecordList/RecordList.wxml
packageEquity/aiApi.js
View file @
e2e384b
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
*/
*/
getSparringPage
(
data
)
{
getSparringPage
(
data
)
{
return
api
.
post
(
return
api
.
post
(
"dj.api.carboutique.
fun.sparring
.record.page"
,
"dj.api.carboutique.
ai.sparring.staff
.record.page"
,
data
,[],
"/rop-dj-pairexc/router"
data
,[],
"/rop-dj-pairexc/router"
);
);
},
},
...
...
packageEquity/pages/aiCheck/result/result.js
View file @
e2e384b
...
@@ -87,6 +87,7 @@ Page({
...
@@ -87,6 +87,7 @@ Page({
// 头部返回上一级
// 头部返回上一级
back
()
{
back
()
{
console
.
log
(
111111
)
const
pages
=
getCurrentPages
();
const
pages
=
getCurrentPages
();
const
prevPage
=
pages
[
pages
.
length
-
2
];
const
prevPage
=
pages
[
pages
.
length
-
2
];
console
.
log
(
prevPage
.
route
);
console
.
log
(
prevPage
.
route
);
...
@@ -179,19 +180,31 @@ Page({
...
@@ -179,19 +180,31 @@ Page({
sparringTaskId
,
sparringTaskId
,
});
});
this
.
getAvatar
(
roleType
);
this
.
getAvatar
(
roleType
);
const
chatList
=
JSON
.
parse
(
wx
.
getStorageSync
(
"chatList"
));
const
{
const
{
uuid
uuid
}
=
wx
.
$util
.
getUserInfo
();
}
=
wx
.
$util
.
getUserInfo
();
console
.
log
(
history_message
);
console
.
log
(
history_message
);
if
(
id
)
{
if
(
id
)
{
this
.
setData
({
duration
:
false
})
this
.
getDetail
(
id
);
this
.
getDetail
(
id
);
this
.
getChatDetail
({
staffRecordId
:
uuid
})
}
else
{
}
else
{
const
chatList
=
JSON
.
parse
(
wx
.
getStorageSync
(
"chatList"
));
this
.
setData
({
chatList
})
this
.
handleSave
(
chatList
,
duration
)
this
.
handleSave
(
chatList
,
duration
)
}
}
console
.
log
(
windowW
);
console
.
log
(
windowW
);
},
},
getChatDetail
(
staffRecordId
)
{
carLifeApi
.
getSparringDetail
({
staffRecordId
,
pageNum
:
1
,
pageSize
:
100
}).
then
(
res
=>
{
const
{
list
=
[]
}
=
res
.
data
this
.
setData
({
chatList
:
list
})
})
},
//提交数据
//提交数据
sparringCommit
()
{
sparringCommit
()
{
const
{
const
{
...
@@ -280,7 +293,8 @@ Page({
...
@@ -280,7 +293,8 @@ Page({
reportItem
,
reportItem
,
minutes
,
minutes
,
seconds
,
seconds
,
score
score
,
duration
:
true
})
})
this
.
setDetail
(
reportItem
)
this
.
setDetail
(
reportItem
)
//延迟动画
//延迟动画
...
@@ -498,6 +512,7 @@ Page({
...
@@ -498,6 +512,7 @@ Page({
let
XYListCopy
=
[...
XYList
]
let
XYListCopy
=
[...
XYList
]
let
list
=
descriptionList
.
map
((
desc
)
=>
{
let
list
=
descriptionList
.
map
((
desc
)
=>
{
const
randomIndex
=
Math
.
floor
(
Math
.
random
()
*
XYListCopy
.
length
);
const
randomIndex
=
Math
.
floor
(
Math
.
random
()
*
XYListCopy
.
length
);
console
.
log
(
randomIndex
)
const
selectedXYItem
=
XYListCopy
[
randomIndex
];
const
selectedXYItem
=
XYListCopy
[
randomIndex
];
XYListCopy
.
splice
(
randomIndex
,
1
);
XYListCopy
.
splice
(
randomIndex
,
1
);
return
{
return
{
...
...
packageEquity/pages/aiCheck/result/result.wxml
View file @
e2e384b
...
@@ -12,9 +12,11 @@
...
@@ -12,9 +12,11 @@
<view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" wx:if="{{tabId == 1}}">
<view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" wx:if="{{tabId == 1}}">
<block wx:if="{{duration}}">
<block wx:if="{{duration}}">
<view class="canvas-box type-{{reportItem.length}}">
<view class="canvas-box type-{{reportItem.length}}">
<view style="position: relative;">
<gl-image class="score-bg" src="/aiCheck/radar-bg-{{reportItem.length}}.png"></gl-image>
<gl-image class="score-bg" src="/aiCheck/radar-bg-{{reportItem.length}}.png"></gl-image>
<!-- <canvas disable-scroll="{{true}}" id="radarCanvas" type="2d" class="canvas canvas2" /> -->
<!-- <canvas disable-scroll="{{true}}" id="radarCanvas" type="2d" class="canvas canvas2" /> -->
<canvas canvas-id="radarCanvas" disable-scroll="{{true}}" class="canvas"></canvas>
<canvas canvas-id="radarCanvas" disable-scroll="{{true}}" class="canvas"></canvas>
</view>
<block wx:for="{{reportItem}}" wx:key="index">
<block wx:for="{{reportItem}}" wx:key="index">
<view class="categories categories-{{index + 1}}" bindtap="jump" data-item="{{item}}">
<view class="categories categories-{{index + 1}}" bindtap="jump" data-item="{{item}}">
<view class="title">{{item.reportItem}}</view>
<view class="title">{{item.reportItem}}</view>
...
...
packageEquity/pages/aiCheck/start/components/RecordList/RecordList.wxml
View file @
e2e384b
...
@@ -6,12 +6,12 @@ refresher-threshold="104" scroll-top="{{scrollTop}}" refresher-triggered="{{trig
...
@@ -6,12 +6,12 @@ refresher-threshold="104" scroll-top="{{scrollTop}}" refresher-triggered="{{trig
<view class="record-item" wx:for="{{recordList}}" data-role="{{item.roleType}}" wx:key="id" bindtap="toReport" data-id="{{item.id}}">
<view class="record-item" wx:for="{{recordList}}" data-role="{{item.roleType}}" wx:key="id" bindtap="toReport" data-id="{{item.id}}">
<view class="record-left">
<view class="record-left">
<view class="record-title">驻店延保</view>
<view class="record-title">驻店延保</view>
<view class="record-time" wx:if="{{item.
checkResult}}">练习{{item.checkResult.d
uration}}</view>
<view class="record-time" wx:if="{{item.
sparringDuration}}">练习{{item.sparringD
uration}}</view>
<view class="record-date">日期:{{item.createdDate}}</view>
<view class="record-date">日期:{{item.createdDate}}</view>
</view>
</view>
<view class="record-right">
<view class="record-right">
<view class="under-way" wx:if="{{
!item.checkResult
}}">报告生成中...</view>
<view class="under-way" wx:if="{{
item.sparringStatus == 0
}}">报告生成中...</view>
<view class="score" wx:else><view class="score-num">{{item.
checkResult.
score}}</view>分</view>
<view class="score" wx:else><view class="score-num">{{item.score}}</view>分</view>
<gl-image class="arrow-right" src="/equity/arrow-right.png"></gl-image>
<gl-image class="arrow-right" src="/equity/arrow-right.png"></gl-image>
</view>
</view>
</view>
</view>
...
...
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