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
ca5477bc
Commit
ca5477bc
authored
Aug 13, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1a269f96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
3 deletions
+108
-3
chapter.vue
src/pages/course/chapter.vue
+108
-0
timeTable.vue
src/pages/course/timeTable.vue
+0
-3
No files found.
src/pages/course/chapter.vue
0 → 100644
View file @
ca5477bc
<
template
>
<div
class=
"con"
>
<view
class=
"info"
>
<view
class=
"info-top flex flex_start_center"
>
<view
class=
"left-icon"
></view>
<view
class=
"wrapper-title"
>
{{
data
.
node
.
ChapterName
}}
</view>
</view>
<view
class=
"info-main"
>
<view
class=
"flex flex flex_start_center wrapper-section"
>
<view
class=
"left-bot"
></view>
章节学习内容
</view>
<view
class=
"info-con"
>
<rich-text
:nodes=
"data.richText"
/>
</view>
</view>
</view>
</div>
</
template
>
<
script
>
import
{
reactive
,
toRefs
,
getCurrentInstance
,
onMounted
}
from
"vue"
;
import
{}
from
"../../api/index"
;
export
default
{
setup
(
props
)
{
let
data
=
reactive
({
data
:
{
node
:
""
,
richText
:
""
,
},
});
let
methods
=
{};
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
(
options
)
{
uni
.
setNavigationBarTitle
({
title
:
"章节学习内容"
,
});
let
{
ctx
}
=
getCurrentInstance
();
let
data
=
JSON
.
parse
(
decodeURIComponent
(
options
.
con
));
ctx
.
data
.
node
=
data
;
ctx
.
data
.
richText
=
decodeURIComponent
(
data
.
ChapterContent
);
console
.
log
(
44
,
ctx
.
data
.
node
);
},
};
</
script
>
<
style
scoped
>
.con
{
box-sizing
:
border-box
;
padding
:
30
rpx
;
}
.info
{
background-color
:
#fff
;
border-radius
:
12
rpx
;
overflow
:
hidden
;
}
.info-top
{
height
:
90
rpx
;
background-color
:
#b4ddfe
;
box-sizing
:
border-box
;
padding
:
0
30
rpx
;
}
.left-icon
{
width
:
6
rpx
;
height
:
22
rpx
;
background-image
:
linear-gradient
(
180deg
,
#00acf9
,
#ffffff
);
margin-right
:
10
rpx
;
}
.wrapper-title
{
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
}
.info-main
{
padding-top
:
30
rpx
;
}
.wrapper-section
{
padding-left
:
50
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
margin-bottom
:
30
rpx
;
}
.wrapper-section
.left-bot
{
width
:
8
rpx
;
height
:
8
rpx
;
background-color
:
#00acf9
;
border-radius
:
50%
;
margin-right
:
10
rpx
;
}
.info-con
{
height
:
340
rpx
;
padding-left
:
65
rpx
;
padding-right
:
55
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#111111
;
overflow-y
:
scroll
;
}
</
style
>
\ No newline at end of file
src/pages/course/timeTable.vue
View file @
ca5477bc
...
...
@@ -87,9 +87,6 @@
</view>
</view>
<view
class=
"Timetable-box"
>
<van-button
@
click=
"jumpPage('/pages/course/askForLeave')"
>
请假
</van-button
>
<van-empty
description=
"暂无数据"
v-if=
"dataList.length === 0"
/>
<view
v-for=
"(item, index) in dataList"
...
...
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