Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
c74dee3d
Commit
c74dee3d
authored
May 27, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/youjie/thinkapp
parents
f528002d
563252ec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
372 additions
and
11 deletions
+372
-11
courseCard.vue
src/components/index/workSituation/courseCard.vue
+361
-0
workSituation.vue
src/pages/index/workSituation.vue
+3
-3
index.vue
src/utils/wxcomponents/vant/search/index.vue
+2
-2
index.wxss
src/utils/wxcomponents/vant/search/index.wxss
+2
-2
index.vue
src/wxcomponents/vant/search/index.vue
+2
-2
index.wxss
src/wxcomponents/vant/search/index.wxss
+2
-2
No files found.
src/components/index/workSituation/courseCard.vue
0 → 100644
View file @
c74dee3d
<
template
>
<view
class=
"course-card"
>
<view
class=
"course-item"
>
<view
style=
"width:287rpx;"
>
<view
class=
"course-name"
>
成都2022科学益智L4-05乐思会
</view>
<van-progress
percentage=
"75"
:show-pivot=
"false"
track-color=
"#EFEFEF"
color=
"#282828"
stroke-width=
"5"
/>
<view
class=
"course-progress"
>
上课进度 5/12
</view>
<view
class=
"course-opera"
>
<van-button
@
click=
"exchangeItemHandler"
class-prefix=
"iconfont"
icon=
" icon-qiehuan1"
round
type=
"default"
size=
"mini"
custom-style=
"color:#E23B4A;font-size: 24rpx;padding-left:10rpx;padding-right:10px;"
>
切换课程
</van-button>
</view>
</view>
<image
class=
"illustration"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_494.png"
mode=
"widthFix"
></image>
</view>
<image
class=
"end"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_413.png"
mode=
"widthFix"
></image>
<van-popup
:show=
"showItems"
round
position=
"bottom"
@
click-overlay=
"hideExchangeBoxHandler"
custom-style=
"height: 75%"
>
<view
class=
"exchange-items"
>
<view
class=
"title-box"
>
<text
class=
"main-title"
>
课程选择
</text>
<text
class=
"sub-title"
>
(共有3门课程)
</text>
</view>
<view
class=
"courseCard-search"
>
<van-search
v-model=
"Keywords"
shape=
"round"
style=
"border-radius: 20rpx;"
input-align=
"center"
background=
"#F6F6F6"
placeholder=
"请输入搜索关键词"
/>
<!--
<input
v-model=
"Keywords"
placeholder=
"请输入搜索关键词"
/>
-->
</view>
<view
class=
"courseCard-title"
>
<view
class=
"workSituation-title-box flex"
>
<view
class=
"workSituation-title flex"
:class=
"tabNme==t.name?'active':''"
v-for=
"(t,index) in titleList"
:key=
"index"
@
click=
"toggleTitle(t.name)"
>
<text
class=
"name"
>
{{
t
.
name
}}
</text>
<view
class=
"num"
>
(
{{
t
.
num
}}
)
</view>
<view
class=
"current-title-box flex"
v-show=
"tabNme==t.name"
>
<text
class=
"name"
>
{{
t
.
name
}}
</text>
<view
class=
"num"
>
(
{{
t
.
num
}}
)
</view>
</view>
</view>
</view>
</view>
<view
class=
"items"
>
<view
class=
"item-course"
>
<view
class=
"course-pic"
>
<image
src=
"https://www.kfzimg.com/G06/M00/B5/48/p4YBAFsJY12AK0n7AAEM2KDUHRw535_n.jpg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"content"
>
<view
class=
"one_line course-name"
>
高中物理鸿志班(二期周五下午上课)
</view>
<van-progress
percentage=
"46"
:show-pivot=
"false"
track-color=
"#EFEFEF"
color=
"#282828"
stroke-width=
"5"
/>
<view
class=
"course-progress"
>
上课进度 5/12
</view>
<view
style=
"text-align: right;"
>
<van-button
@
click=
"hideExchangeBoxHandler"
color=
"#C91727"
round
size=
"mini"
custom-style=
"color:#FFF;font-size: 24rpx;padding-left:16rpx;padding-right:10px;"
>
选择课程
</van-button>
</view>
</view>
</view>
<view
class=
"item-course"
>
<view
class=
"course-pic"
>
<image
src=
"https://www.kfzimg.com/G06/M00/B5/48/p4YBAFsJY12AK0n7AAEM2KDUHRw535_n.jpg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"content"
>
<view
class=
"one_line course-name"
>
高中物理鸿志班(二期周五下午上课)
</view>
<van-progress
percentage=
"46"
:show-pivot=
"false"
track-color=
"#EFEFEF"
color=
"#282828"
stroke-width=
"5"
/>
<view
class=
"course-progress"
>
上课进度 5/12
</view>
<view
style=
"text-align: right;"
>
<van-button
@
click=
"hideExchangeBoxHandler"
color=
"#C91727"
round
size=
"mini"
custom-style=
"color:#FFF;font-size: 24rpx;padding-left:16rpx;padding-right:10px;"
>
选择课程
</van-button>
</view>
</view>
</view>
<view
class=
"item-course"
>
<view
class=
"course-pic"
>
<image
src=
"https://www.kfzimg.com/G06/M00/B5/48/p4YBAFsJY12AK0n7AAEM2KDUHRw535_n.jpg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"content"
>
<view
class=
"one_line course-name"
>
高中物理鸿志班(二期周五下午上课)
</view>
<van-progress
percentage=
"46"
:show-pivot=
"false"
track-color=
"#EFEFEF"
color=
"#282828"
stroke-width=
"5"
/>
<view
class=
"course-progress"
>
上课进度 5/12
</view>
<view
style=
"text-align: right;"
>
<van-button
@
click=
"hideExchangeBoxHandler"
color=
"#C91727"
round
size=
"mini"
custom-style=
"color:#FFF;font-size: 24rpx;padding-left:16rpx;padding-right:10px;"
>
选择课程
</van-button>
</view>
</view>
</view>
<view
class=
"item-course"
>
<view
class=
"course-pic"
>
<image
src=
"https://www.kfzimg.com/G06/M00/B5/48/p4YBAFsJY12AK0n7AAEM2KDUHRw535_n.jpg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"content"
>
<view
class=
"one_line course-name"
>
高中物理鸿志班(二期周五下午上课)
</view>
<van-progress
percentage=
"46"
:show-pivot=
"false"
track-color=
"#EFEFEF"
color=
"#282828"
stroke-width=
"5"
/>
<view
class=
"course-progress"
>
上课进度 5/12
</view>
<view
style=
"text-align: right;"
>
<van-button
@
click=
"hideExchangeBoxHandler"
color=
"#C91727"
round
size=
"mini"
custom-style=
"color:#FFF;font-size: 24rpx;padding-left:16rpx;padding-right:10px;"
>
选择课程
</van-button>
</view>
</view>
</view>
</view>
</view>
</van-popup>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
}
from
"vue"
;
export
default
{
props
:
{},
setup
()
{
let
data
=
reactive
({
statusBarHeight
:
24
,
showItems
:
false
,
Keywords
:
''
,
titleList
:[
{
name
:
'全部课程'
,
num
:
18
},
{
name
:
'进行中'
,
num
:
5
},
{
name
:
'已完成'
,
num
:
18
},
],
tabNme
:
'进行中'
});
let
methods
=
{
toggleTitle
(
t
)
{
data
.
tabNme
=
t
},
exchangeItemHandler
(){
data
.
showItems
=
true
},
hideExchangeBoxHandler
(){
data
.
showItems
=
false
}
}
return
{
...
toRefs
(
data
),
...
methods
};
},
};
</
script
>
<
style
scoped
>
.num
{
font-size
:
20
rpx
;
display
:
inline-block
;
margin-top
:
5
rpx
;
}
.current-title-box
{
color
:
#FFFFFF
;
background
:
#282828
;
padding
:
26
rpx
36
rpx
;
width
:
80%
;
position
:
absolute
;
left
:
-18%
;
right
:
0
;
top
:
-28
rpx
;
border-radius
:
39
rpx
;
justify-content
:
center
;
}
.workSituation-title.active
{
position
:
relative
;
}
.workSituation-title
{
flex
:
1
;
color
:
#282828
;
font-size
:
26
rpx
;
font-weight
:
bold
;
align-items
:
center
;
letter-spacing
:
1px
;
}
.workSituation-title-box
{
margin
:
0
50
rpx
;
padding
:
17
rpx
0
17
rpx
28
rpx
;
background
:
#F0F0F0
;
border-radius
:
30
rpx
;
}
.courseCard-search
{
margin
:
40
rpx
0
;
padding
:
0
30
rpx
;
overflow
:
hidden
;
/* background: #FFFFFF; */
}
.course-card
{
padding
:
70
rpx
50
rpx
0
50
rpx
;
}
.course-card
.course-item
{
height
:
294
rpx
;
background
:
linear-gradient
(
37deg
,
#C91727
,
#E64150
);
padding
:
40
rpx
35
rpx
;
border-radius
:
50
rpx
;
position
:
relative
;
box-sizing
:
border-box
;
}
.course-card
.course-item
.illustration
{
position
:
absolute
;
left
:
350
rpx
;
top
:
-11
rpx
;
width
:
340
rpx
;
}
.course-card
.end
{
width
:
550
rpx
;
margin
:
0
auto
;
display
:
block
;
}
.course-card
.course-item
.course-name
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
line-height
:
42
rpx
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-bottom
:
20
rpx
;
}
.course-card
.course-item
.course-progress
{
font-size
:
20
rpx
;
font-weight
:
400
;
color
:
#FDC4CA
;
line-height
:
45
rpx
;
}
.course-card
.course-item
.course-opera
{
margin-top
:
20
rpx
;
}
.course-card
.exchange-items
{
padding
:
50
rpx
0
;
padding-bottom
:
0
;
height
:
100%
;
box-sizing
:
border-box
;
display
:
flex
;
flex-direction
:
column
;
background
:
#F6F6F6
;
}
.course-card
.exchange-items
.title-box
{
padding
:
0
50
rpx
;
}
.course-card
.exchange-items
.title-box
.main-title
{
font-size
:
36
rpx
;
font-weight
:
800
;
color
:
#282828
;
}
.course-card
.exchange-items
.title-box
.sub-title
{
font-size
:
26
rpx
;
font-weight
:
normal
;
color
:
#6F6F6F
;
margin-left
:
10
rpx
;
}
.course-card
.exchange-items
.items
{
width
:
100%
;
flex
:
1
;
overflow-y
:
auto
;
margin-top
:
40
rpx
;
padding
:
0
50
rpx
;
box-sizing
:
border-box
;
}
.course-card
.exchange-items
.items
.item-course
{
margin-bottom
:
50
rpx
;
padding
:
40
rpx
36
rpx
;
display
:
flex
;
align-items
:
flex-start
;
background-color
:
#FFF
;
border-radius
:
30
rpx
;
}
.course-card
.exchange-items
.items
.item-course
.course-pic
{
width
:
100
rpx
;
height
:
140
rpx
;
margin-right
:
36
rpx
;
overflow
:
hidden
;
}
.course-card
.exchange-items
.items
.item-course
.course-pic
image
{
width
:
100%
;
height
:
100%
;
}
.course-card
.exchange-items
.items
.item-course
.content
{
flex
:
1
;
width
:
1px
;
}
.course-card
.exchange-items
.items
.item-course
.content
.course-name
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
line-height
:
42
rpx
;
margin-bottom
:
20
rpx
;
}
.course-card
.exchange-items
.items
.item-course
.content
.course-progress
{
color
:
#282828
;
font-weight
:
400
;
font-size
:
20
rpx
;
margin-top
:
4
rpx
;
margin-bottom
:
10
rpx
;
}
</
style
>
src/pages/index/workSituation.vue
View file @
c74dee3d
...
...
@@ -20,7 +20,7 @@
<view
style=
"font-size: 50rpx;"
>
李老师
</view>
</view>
</view>
<course
-card></course-c
ard>
<course
Card></courseC
ard>
<view
class=
"index-student-information"
>
<view
class=
"workSituation-title-box flex"
>
<view
class=
"workSituation-title flex"
...
...
@@ -43,7 +43,7 @@
</
template
>
<
script
>
import
courseCard
from
'
../../components/index/course-c
ard'
import
courseCard
from
'
@/components/index/workSituation/courseC
ard'
import
operation
from
'@/components/index/workSituation/operation'
import
studentList
from
'@/components/index/workSituation/studentList'
import
examList
from
'@/components/index/workSituation/examList'
...
...
@@ -166,7 +166,7 @@
border-radius
:
30
rpx
;
}
.index-student-information
{
min-height
:
5
00
rpx
;
min-height
:
8
00
rpx
;
background
:
rgba
(
255
,
255
,
255
,
.7
);
border-radius
:
50
rpx
50
rpx
0
0
;
padding
:
50
rpx
0
30
rpx
0
;
...
...
src/utils/wxcomponents/vant/search/index.vue
View file @
c74dee3d
...
...
@@ -126,8 +126,8 @@ export default global['__wxComponents']['vant/search/index']
padding-left
:
var
(
--padding-sm
,
24
rpx
);
border-radius
:
4
rpx
;
border-radius
:
var
(
--border-radius-sm
,
4
rpx
);
background-color
:
#
f7f8fa
;
background-color
:
var
(
--search-background-color
,
#
f7f8fa
);
background-color
:
#
FFFFFF
;
background-color
:
var
(
--search-background-color
,
#
FFFFFF
);
}
.van-search__content--round
{
...
...
src/utils/wxcomponents/vant/search/index.wxss
View file @
c74dee3d
...
...
@@ -21,8 +21,8 @@
padding-left: var(--padding-sm,24rpx);
border-radius: 4rpx;
border-radius: var(--border-radius-sm,4rpx);
background-color: #
f7f8fa
;
background-color: var(--search-background-color,#
f7f8fa
);
background-color: #
FFFFFF
;
background-color: var(--search-background-color,#
FFFFFF
);
}
.van-search__content--round {
...
...
src/wxcomponents/vant/search/index.vue
View file @
c74dee3d
...
...
@@ -126,8 +126,8 @@ export default global['__wxComponents']['vant/search/index']
padding-left
:
var
(
--padding-sm
,
24
rpx
);
border-radius
:
4
rpx
;
border-radius
:
var
(
--border-radius-sm
,
4
rpx
);
background-color
:
#
f7f8fa
;
background-color
:
var
(
--search-background-color
,
#
f7f8fa
);
background-color
:
#
FFFFFF
;
background-color
:
var
(
--search-background-color
,
#
FFFFFF
);
}
.van-search__content--round
{
...
...
src/wxcomponents/vant/search/index.wxss
View file @
c74dee3d
...
...
@@ -21,8 +21,8 @@
padding-left: var(--padding-sm,24rpx);
border-radius: 4rpx;
border-radius: var(--border-radius-sm,4rpx);
background-color: #
f7f8fa
;
background-color: var(--search-background-color,#
f7f8fa
);
background-color: #
FFFFFF
;
background-color: var(--search-background-color,#
FFFFFF
);
}
.van-search__content--round {
...
...
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