Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
ab758c95
Commit
ab758c95
authored
Jan 12, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
ff2bd7bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
index.vue
src/pages/index/index.vue
+1
-1
person.vue
src/pages/person/person.vue
+11
-11
index.js
src/utils/index.js
+3
-4
No files found.
src/pages/index/index.vue
View file @
ab758c95
...
...
@@ -126,7 +126,7 @@
</view>
</view>
<bottom></bottom>
<canvas
type=
"2d"
canvas-id=
"myCanvas"
class=
"canvas"
style=
"position:absolute;left: -1000px;"
></canvas>
<canvas
canvas-id=
"myCanvas"
class=
"canvas"
style=
"position:absolute;left: -1000px;"
></canvas>
<van-toast
id=
"van-toast"
/>
</view>
</
template
>
...
...
src/pages/person/person.vue
View file @
ab758c95
...
...
@@ -45,26 +45,26 @@
<view
class=
"title"
>
课程信息
</view>
<view
class=
"statistic"
>
<view
class=
"statisticItem"
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
TotalHours
}}
<
text
class=
"unit"
>
节
</text
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
TotalHours
||
0
}}
<
!--
<text
class=
"unit"
>
节
</text>
--
>
</view>
<view
class=
"statisticName"
>
总共课时
</view>
</view>
<view
class=
"statisticItem"
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
CompleteHours
}}
<
text
class=
"unit"
>
节
</text
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
CompleteHours
||
0
}}
<
!--
<text
class=
"unit"
>
节
</text>
--
>
</view>
<view
class=
"statisticName"
>
已学课时
</view>
</view>
<view
class=
"statisticItem"
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
AbsenceNum
}}
<
text
class=
"unit"
>
节
</text
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
AbsenceNum
||
0
}}
<
!--
<text
class=
"unit"
>
节
</text>
--
>
</view>
<view
class=
"statisticName"
>
缺勤课时
</view>
</view>
<view
class=
"statisticItem"
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
LeaveNum
}}
<
text
class=
"unit"
>
节
</text
>
<view
class=
"time"
>
{{
pageData
.
CourseInfo
.
LeaveNum
||
0
}}
<
!--
<text
class=
"unit"
>
节
</text>
--
>
</view>
<view
class=
"statisticName"
>
请假课时
</view>
</view>
...
...
@@ -81,7 +81,7 @@
<view
class=
"Grade"
style=
"margin-bottom:20rpx"
>
{{
pageData
.
CourseInfo
.
ClassName
}}
</view>
<view
class=
"Grade"
>
等级:
{{
pageData
.
CourseInfo
.
CourseRate
}}
</view>
<view
class=
"Grade"
>
等级:
{{
pageData
.
CourseInfo
.
CourseRate
||
''
}}
</view>
<view><text
class=
"Grade"
>
状态:
</text>
<text
class=
"StatusName"
>
{{
pageData
.
CourseInfo
.
ClassStatusName
...
...
@@ -103,7 +103,7 @@
</view>
<view
class=
"serviceInfo flex_between_center"
>
<view
class=
"flex_start_around"
style=
"width:380rpx;height:100%"
>
<view
class=
"flex_start_center"
style=
"height:32rpx"
>
<view
class=
"flex_start_center"
style=
"height:32rpx
;width:100%
"
>
<text
class=
"EmployeeName"
>
{{
item
.
EmployeeName
}}
</text><text
class=
"AssistTypeName"
>
{{
item
.
AssistTypeName
}}
</text>
</view>
...
...
@@ -284,7 +284,7 @@
.statisticItem
.time
{
width
:
100%
;
font-size
:
46
rpx
;
line-height
:
30
rpx
;
/* line-height: 30rpx; */
font-weight
:
800
;
font-style
:
italic
;
color
:
#111111
;
...
...
src/utils/index.js
View file @
ab758c95
...
...
@@ -233,9 +233,8 @@ export let getImageColor = async (canvasID, imgID, imgSrc) => {
await
new
Promise
(
resolve
=>
{
uni
.
createSelectorQuery
().
select
(
"#"
+
imgID
).
boundingClientRect
(
res
=>
{
console
.
log
(
234
,
res
)
imgWidth
=
res
?.
width
??
10
;
imgHeight
=
res
?.
height
??
10
;
imgWidth
=
res
?.
width
??
100
;
imgHeight
=
res
?.
height
??
100
;
resolve
()
}).
exec
()
})
...
...
@@ -309,7 +308,7 @@ export let netUrlTobase64= async (url,suc)=> {
success
(
res
)
{
const
base64
=
wx
.
arrayBufferToBase64
(
res
.
data
);
//把arraybuffer转成base64
const
conType
=
res
.
header
[
'Content-Type'
]
toBase64Url
=
'data:'
+
conType
+
';base64,'
+
base64
;
//不加上这串字符,在页面无法显示
toBase64Url
=
'data:'
+
conType
+
';base64,'
+
base64
;
resolve
(
toBase64Url
)
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment