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 3c05ae04
authored
Mar 18, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 话术质检
1 parent
549def61
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
16 deletions
packageEquity/pages/aiInspection/aiInspection.js
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.js
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.sass
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxml
packageEquity/pages/aiInspectionReception/aiInspectionReception.sass
packageEquity/pages/aiInspectionReception/aiInspectionReception.wxml
packageEquity/pages/aiInspection/aiInspection.js
View file @
3c05ae0
...
@@ -12,13 +12,19 @@ Page({
...
@@ -12,13 +12,19 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
wx
.
$router
.
getData
(({
params
})
=>
{
wx
.
$router
.
getData
(({
this
.
setData
({
params
badgeId
:
params
.
badgeId
})
=>
{
})
this
.
loadData
(
params
)
this
.
searchDate
=
new
Date
().
format
(
'yyyy-MM-dd'
)
this
.
onLoadData
()
})
})
if
(
options
.
badgeId
)
this
.
loadData
(
options
)
},
loadData
(
params
)
{
this
.
setData
({
badgeId
:
params
.
badgeId
})
this
.
searchDate
=
new
Date
().
format
(
'yyyy-MM-dd'
)
this
.
onLoadData
()
},
},
onLoadData
()
{
onLoadData
()
{
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
...
@@ -83,7 +89,7 @@ Page({
...
@@ -83,7 +89,7 @@ Page({
if
(
!
e
.
estimatedResult
)
{
if
(
!
e
.
estimatedResult
)
{
e
.
estimatedResult
=
'未知'
e
.
estimatedResult
=
'未知'
e
.
estimatedStatus
=
-
1
e
.
estimatedStatus
=
-
1
}
else
e
.
estimatedStatus
==
'战败'
?
0
:
1
}
else
e
.
estimatedStatus
==
'战败'
?
0
:
1
})
})
this
.
setData
({
this
.
setData
({
list
:
data
.
list
||
[],
list
:
data
.
list
||
[],
...
@@ -101,6 +107,7 @@ Page({
...
@@ -101,6 +107,7 @@ Page({
},
},
formatTime
(
seconds
)
{
formatTime
(
seconds
)
{
seconds
=
seconds
/
1000
let
formattedTime
=
''
let
formattedTime
=
''
if
(
seconds
<
60
)
return
seconds
+
's'
if
(
seconds
<
60
)
return
seconds
+
's'
else
{
else
{
...
...
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.js
View file @
3c05ae0
...
@@ -40,6 +40,7 @@ Page({
...
@@ -40,6 +40,7 @@ Page({
})
})
this
.
getInspectionDetail
(
res
.
id
)
this
.
getInspectionDetail
(
res
.
id
)
})
})
this
.
getInspectionDetail
(
19
)
},
},
async
getInspectionDetail
(
batchId
)
{
async
getInspectionDetail
(
batchId
)
{
...
@@ -89,6 +90,7 @@ Page({
...
@@ -89,6 +90,7 @@ Page({
}
}
},
},
formatTime
(
seconds
)
{
formatTime
(
seconds
)
{
seconds
=
seconds
/
1000
let
formattedTime
=
''
let
formattedTime
=
''
if
(
seconds
<
60
)
return
seconds
+
'秒'
if
(
seconds
<
60
)
return
seconds
+
'秒'
else
{
else
{
...
...
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.sass
View file @
3c05ae0
...
@@ -101,6 +101,7 @@ page {
...
@@ -101,6 +101,7 @@ page {
color
:
#347BFF
;
color
:
#347BFF
;
line-height
:
var
(
--
fontSize44
)
;
line-height
:
var
(
--
fontSize44
)
;
}
}
}
}
}
}
}
}
...
@@ -126,4 +127,8 @@ page {
...
@@ -126,4 +127,8 @@ page {
}
}
}
}
}
}
}
.red
{
color
:
#F24724
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxml
View file @
3c05ae0
...
@@ -17,16 +17,18 @@
...
@@ -17,16 +17,18 @@
{{item.title}}
{{item.title}}
<view class="score flex">
<view class="score flex">
得分:
得分:
<view class="num flex"><view class="highlight">{{item.score}}</view>/{{item.rawScore}}</view>
<view class="num flex">
<view class="highlight {{item.score == 0 ?'red':''}}">{{item.score}}</view>/{{item.rawScore}}
</view>
</view>
</view>
</view>
</view>
<view class="content">
<view class="content">
<block wx:for="{{item.list}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<block wx:for="{{item.list}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="sub-item flex">
<view class="sub-item flex">
<view class="label">{{i.secondClassify}}</view>
<view class="label">{{i.secondClassify}}</view>
<view class="value">{{i.score}}/{{i.rawScore}}</view>
<view class="value">{{i.score}}/{{i.rawScore}}</view>
</view>
</view>
</block>
</block>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
packageEquity/pages/aiInspectionReception/aiInspectionReception.sass
View file @
3c05ae0
...
@@ -94,4 +94,8 @@ page {
...
@@ -94,4 +94,8 @@ page {
}
}
}
}
}
}
}
.red
{
color
:
#F24724
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/aiInspectionReception/aiInspectionReception.wxml
View file @
3c05ae0
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="score flex">
<view class="score flex">
得分:
得分:
<view class="num flex">
<view class="num flex">
<view class="highlight">{{detailInfo.score}}</view>/{{detailInfo.rawScore}}
<view class="highlight
{{detailInfo.score == 0 ?'red':''}}
">{{detailInfo.score}}</view>/{{detailInfo.rawScore}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<view class="score flex">
<view class="score flex">
得分:
得分:
<view class="num flex">
<view class="num flex">
<view class="highlight">{{item.score}}</view>/{{item.rawScore}}
<view class="highlight
{{item.score == 0 ?'red':''}}
">{{item.score}}</view>/{{item.rawScore}}
</view>
</view>
</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