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
efceaef5
Commit
efceaef5
authored
May 25, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
e670c83e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
255 additions
and
129 deletions
+255
-129
App.vue
src/App.vue
+1
-1
course-card.vue
src/components/index/course-card.vue
+108
-0
pages.json
src/pages.json
+1
-0
index.vue
src/pages/index/index.vue
+132
-122
iconfont.css
src/static/font/iconfont.css
+10
-3
iconfont.ttf
src/static/font/iconfont.ttf
+0
-0
request.js
src/utils/request.js
+3
-3
No files found.
src/App.vue
View file @
efceaef5
...
@@ -19,7 +19,7 @@ export default {
...
@@ -19,7 +19,7 @@ export default {
/*每个页面公共css */
/*每个页面公共css */
@import
"wxcomponents/vant/common/index.wxss"
;
@import
"wxcomponents/vant/common/index.wxss"
;
@import
"static/css/common.css"
;
@import
"static/css/common.css"
;
@import
"static/font/iconfont.css"
;
@import
url("/static/font/iconfont.css")
;
*
{
*
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
...
...
src/components/index/course-card.vue
0 → 100644
View file @
efceaef5
<
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
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>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
}
from
"vue"
;
export
default
{
props
:
{},
setup
()
{
let
data
=
reactive
({
statusBarHeight
:
24
});
const
os
=
uni
.
getSystemInfoSync
();
data
.
statusBarHeight
=
os
.
statusBarHeight
return
{
...
toRefs
(
data
),
};
},
};
</
script
>
<
style
scoped
>
.course-card
{
padding
:
70
rpx
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
;
}
</
style
>
src/pages.json
View file @
efceaef5
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
}
}
],
],
"subPackages"
:
[],
"subPackages"
:
[],
//
"tabBar"
:
{
//
"tabBar"
:
{
...
...
src/pages/index/index.vue
View file @
efceaef5
This diff is collapsed.
Click to expand it.
src/static/font/iconfont.css
View file @
efceaef5
@font-face
{
@font-face
{
font-family
:
"iconfont"
;
/* Project id 2734547 */
font-family
:
"iconfont"
;
/* Project id 2734547 */
src
:
url('//at.alicdn.com/t/font_2734547_vr2ckwvviob.woff2?t=1643341931052')
format
(
'woff2'
),
src
:
url('~@/static/font/iconfont.ttf')
;
url('//at.alicdn.com/t/font_2734547_vr2ckwvviob.woff?t=1643341931052')
format
(
'woff'
),
url('//at.alicdn.com/t/font_2734547_vr2ckwvviob.ttf?t=1643341931052')
format
(
'truetype'
);
}
}
.iconfont
{
.iconfont
{
...
@@ -13,6 +11,14 @@
...
@@ -13,6 +11,14 @@
-moz-osx-font-smoothing
:
grayscale
;
-moz-osx-font-smoothing
:
grayscale
;
}
}
.icon-qiehuan1
:before
{
content
:
"\e62a"
;
}
.icon-qiehuan
:before
{
content
:
"\e65b"
;
}
.icon-moreandroid
:before
{
.icon-moreandroid
:before
{
content
:
"\e6a5"
;
content
:
"\e6a5"
;
}
}
...
@@ -44,3 +50,4 @@
...
@@ -44,3 +50,4 @@
.icon-radio1
:before
{
.icon-radio1
:before
{
content
:
"\e600"
;
content
:
"\e600"
;
}
}
src/static/font/iconfont.ttf
0 → 100644
View file @
efceaef5
File added
src/utils/request.js
View file @
efceaef5
...
@@ -33,9 +33,9 @@ let request = (param) => {
...
@@ -33,9 +33,9 @@ let request = (param) => {
icon
:
"none"
,
icon
:
"none"
,
});
});
uni
.
removeStorageSync
(
'userInfo'
);
uni
.
removeStorageSync
(
'userInfo'
);
uni
.
reLaunch
({
//
uni.reLaunch({
url
:
"/pages/login/login"
//
url:"/pages/login/login"
})
//
})
reject
()
reject
()
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
...
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