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
01018a2c
Commit
01018a2c
authored
Jul 04, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4aefd767
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
49 deletions
+48
-49
classList.vue
src/components/bookAclass/classList.vue
+45
-44
addPlan.vue
src/pages/bookAclass/addPlan.vue
+2
-2
index.vue
src/pages/bookAclass/index.vue
+1
-3
No files found.
src/components/bookAclass/classList.vue
View file @
01018a2c
<
template
>
<view
class=
"classList-box"
>
<view
class=
"classList-content-box"
v-for=
"(i,indexs) in classList"
:key=
"indexs"
>
<view
class=
"content-time"
>
<view
class=
"time-Wire"
>
<view
class=
"time-round"
></view>
</view>
<view
class=
"time-date"
>
<view
class=
"time-num"
>
<view>
{{
i
.
DateStr
.
slice
(
5
,
7
)
}}
/
</view>
<view>
{{
i
.
DateStr
.
slice
(
8
,
10
)
}}
日
</view>
<template
v-if=
"i.SubList.length>0"
>
<view
class=
"content-time"
>
<view
class=
"time-Wire"
>
<view
class=
"time-round"
></view>
</view>
<view
class=
"time-text"
>
{{
i
.
Week
}}
<view
class=
"time-date"
>
<view
class=
"time-num"
>
<view>
{{
i
.
DateStr
.
slice
(
5
,
7
)
}}
/
</view>
<view>
{{
i
.
DateStr
.
slice
(
8
,
10
)
}}
日
</view>
</view>
<view
class=
"time-text"
>
{{
i
.
Week
}}
</view>
</view>
</view>
</view>
<van-swipe-cell
class=
"content-right"
:class=
"
{'activeOne':indexs==0,'activeTwo':indexs==1
,
'activeThree':indexs==2,'activeFour':indexs==3
,
'activeFive':indexs==4,'activeSix':indexs==5,
'activeSeven':indexs==6}
"
id="swipe-cell
"
:right-width="116"
async-close
:disabled="true
">
<view
class=
"content-tex
t-box"
>
<view
class=
"right-box"
>
<view
v-for=
"(item,index) in i.SubList"
:key=
"index
"
class=
"Festival-box activeOne"
:class=
"
{'activeOne':item.StartTime=='09:30','activeTwo':item.StartTime=='11
:10',
'activeThree':item.StartTime=='13:30','activeFour':item.StartTime=='15:10',
'activeFive':item.StartTime=='16:50','activeSix':item.StartTime=='19:00'}">
<view>
第
<text
v-if=
"item.StartTime=='09:30'"
>
一
</text>
<text
v-if=
"item.StartTime=='11:10'"
>
二
</text>
<text
v-if=
"item.StartTime=='13:30'"
>
三
</text>
<text
v-if=
"item.StartTime=='15:10'"
>
四
</text>
<text
v-if=
"item.StartTime=='16:50'"
>
五
</text>
<text
v-if=
"item.StartTime=='19:00'"
>
六
</text
>
节
</
view>
<view>
{{
item
.
StartTime
}}
<van-swipe-cell
class=
"content-right"
:class=
"
{'activeOne':indexs==0,'activeTwo':indexs==1,
'activeThree':indexs==2,'activeFour':indexs==3
,
'activeFive':indexs==4,'activeSix':indexs==5
,
'activeSeven':indexs==6}"
id="swipe-cell
"
:right-width="116
"
async-close
:disabled="true">
<view
class=
"content-text-box
"
>
<view
class=
"righ
t-box"
>
<view
v-for=
"(item,index) in i.SubList"
:key=
"index"
class=
"Festival-box activeOne
"
:class=
"
{'activeOne':item.StartTime=='09:30','activeTwo':item.StartTime=='11:10',
'activeThree':item.StartTime=='13:30','activeFour':item.StartTime=='15
:10',
'activeFive':item.StartTime=='16:50','activeSix':item.StartTime=='19:00'}">
<view>
第
<text
v-if=
"item.StartTime=='09:30'"
>
一
</text>
<text
v-if=
"item.StartTime=='11:10'"
>
二
</text>
<text
v-if=
"item.StartTime=='13:30'"
>
三
</text>
<text
v-if=
"item.StartTime=='15:10'"
>
四
</text>
<text
v-if=
"item.StartTime=='16:50'"
>
五
</text>
<text
v-if=
"item.StartTime=='19:00'"
>
六
</text>
节
</view
>
<
view>
{{
item
.
StartTime
}}
</view>
</view>
</view>
</view>
</view
>
<view
slot=
"right"
class=
"van-swipe-cell__right"
>
<
van-button
square
type=
"danger"
custom-style=
"height:100%;"
>
删除
</van-button
>
</v
iew
>
</
van-swipe-cell
>
<view
slot=
"right"
class=
"van-swipe-cell__right"
>
<van-button
square
type=
"danger"
custom-style=
"height:100%;"
>
删除
</van-button
>
<
/view
>
</v
an-swipe-cell
>
</
template
>
</view>
</view>
</template>
...
...
@@ -79,7 +81,6 @@
}
onMounted
(()
=>
{
})
return
{
...
...
src/pages/bookAclass/addPlan.vue
View file @
01018a2c
...
...
@@ -332,7 +332,7 @@
display
:
flex
;
}
.header-title
{
width
:
1
10
rpx
;
width
:
1
02
rpx
;
flex-shrink
:
0
;
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -371,7 +371,7 @@
margin-left
:
2
rpx
;
}
.header-week
{
width
:
87
rpx
;
width
:
90
rpx
;
flex-shrink
:
0
;
display
:
flex
;
flex-direction
:
column
;
...
...
src/pages/bookAclass/index.vue
View file @
01018a2c
...
...
@@ -257,6 +257,7 @@
let
arr
=
[]
data
.
dataList
=
res
.
Data
data
.
dataList
.
forEach
((
item
,
index
)
=>
{
item
.
SubList
.
sort
((
a
,
b
)
=>
a
.
Sort
-
b
.
Sort
)
item
.
SubList
.
forEach
(
i
=>
{
arr
.
push
(
i
)
})
...
...
@@ -415,9 +416,6 @@
margin-right
:
5
rpx
;
margin-bottom
:
5
rpx
;
}
.titleHeader-mark
view
:last-child
{
margin-right
:
0
;
}
.titleHeader-mark
view
.activeOne
{
background
:
#FC952A
;
}
...
...
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