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
c68e4fe6
Commit
c68e4fe6
authored
May 25, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1c7d9e82
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
494 deletions
+37
-494
index.vue
src/pages/index/index.vue
+36
-490
accountLogin.vue
src/pages/login/accountLogin.vue
+0
-2
login.vue
src/pages/login/login.vue
+1
-2
No files found.
src/pages/index/index.vue
View file @
c68e4fe6
<
template
>
<view
class=
"indexpage"
:class=
"[
{'no-scroll':SurveyObj.ActivitySurveyId>0}]">
<navbar
class=
"navbarSticky"
bg=
"#F5F5F5"
>
<view
class=
"navbarCon"
>
<view
class=
"pagetitle"
>
首页
<view
class=
"indexpage"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"index-header-box"
>
<view
class=
"index-header-img"
>
<van-image
width=
"54rpx"
height=
"52rpx"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png"
/>
</view>
<view
class=
"
loginBo
x"
>
<view
v-if=
"userData && userData.AccountName && userData.AccountId>0
"
>
{{
userData
.
AccountName
}}
<view
class=
"
index-header-tet
x"
>
<view
class=
"index-header-title
"
>
welcome
</view>
<indexassembly
@
success=
'againdata'
v-else
>
<view
class=
"flex_start_center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/login2x.png"
mode=
"aspectFit"
class=
"loginIcon"
id=
"loadImg"
></image>
登录
<view
class=
"index-header-name"
>
周一围
</view>
</view>
</indexassembly>
</view>
<!-- 扫码登陆 -->
<view
class=
"scanBox"
@
click=
"scan"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/scan2x.png"
mode=
"aspectFit"
class=
"scanIcon"
>
</image>
</view>
</view>
</navbar>
<view
class=
"activeContent"
v-if=
"ActivityList.length > 0"
>
<swiper
class=
"swiper"
:indicator-dots=
"indicatorDots"
:autoplay=
"autoplay"
indicator-color=
"#CCCCCC"
indicator-active-color=
"#000000"
:vertical=
"true"
circular
>
<swiper-item
v-for=
"(item, index) in ActivityList"
:key=
"index"
@
click=
"goActiveDetail(item.Id)"
>
<view
class=
"swiperList"
:style=
"
{
'background-image': item.CoverImg
? `url(${item.CoverImg})`
: `url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/defaultBgimg.png)`,
}">
<view
class=
"swiper_Time"
>
{{
item
.
BMStart
}}
</view>
<view
class=
"swiper_Name"
>
{{
item
.
ActivityName
}}
</view>
</view>
</swiper-item>
</swiper>
</view>
<view
class=
"wordBox"
>
<view
class=
"wordTitle"
>
单词练习
</view>
<view
class=
"flex_around_center "
>
<view
class=
"wordItem"
>
<text
class=
"wordItemTitle"
>
今日新词
</text>
<text
class=
"wordItemText"
>
{{
pageData
.
Words
.
NextWord
||
0
}}
<text
class=
"wordItemTextUnit"
>
词
</text></text>
</view>
<view
class=
"wordItem"
>
<text
class=
"wordItemTitle"
>
复习词语
</text>
<text
class=
"wordItemText"
>
{{
pageData
.
Words
.
ReviewWord
||
0
}}
<text
class=
"wordItemTextUnit"
>
词
</text></text>
</view>
</view>
<view
class=
"wordDuration"
style=
"visibility: hidden;"
>
预计用时10分钟
</view>
<view
style=
"text-align: center;font-size: 22rpx;color: #4C50E7;"
v-if=
"(pageData.Words.NextWord==0||!pageData.Words.NextWord)&&(pageData.Words.ReviewWord==0||!pageData.Words.ReviewWord)"
>
暂无新词
</view>
<view
class=
"wordBtn"
v-else
@
click=
"jumpPage(`/pages/word/word?CourseId=$
{pageData.Words.CourseId||0}
&&
ChapterId=${pageData.Words.NextCourseNo||0}
&&
ReviewChapterId=${pageData.Words.ReviewCourseNo||0}
&&
ClassId=${pageData.Words.ClassId||0}`)">
开始学习
</view>
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/coffee/xbkbanner2.png"
mode=
"widthFix"
class=
"starbucks"
@
click=
"jumpJiahemini"
></image>
<view
class=
"courseBox"
>
<view
class=
"courseInnerBox"
@
click=
"jumpTimetable"
>
<view
class=
"top"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/classtime.png"
mode=
"aspectFit"
class=
"courseIcon"
></image>
<text
class=
"courseDateStr"
style=
"margin: 0 16rpx 0 8rpx;"
>
{{
pageData
.
ClassNext
.
DateStr
||
'暂无'
}}
</text>
<text
class=
"courseDateStr"
v-if=
"pageData.ClassNext.DateStart"
>
{{
pageData
.
ClassNext
.
DateStart
}}
</text>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/classroom.png"
mode=
"aspectFit"
class=
"courseIcon"
style=
"margin: 0 12rpx 0 50rpx;"
></image>
<text
class=
"courseDateStr"
style=
"margin-right: 30rpx;"
>
{{
pageData
.
ClassNext
.
RoomName
||
'暂无'
}}
</text>
</view>
<view
class=
"flex"
>
<view
class=
"courseNameBox"
>
<view
class=
"className one_line"
>
{{
pageData
.
ClassNext
.
ClassName
||
'暂无'
}}
</view>
<view
class=
"courseName one_line"
>
{{
pageData
.
ClassNext
.
CourseName
||
'暂无'
}}
</view>
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/female2x.png"
mode=
"aspectFit"
class=
"courseIcon2"
></image>
</view>
</view>
<view
class=
"courseTitle"
>
<text
v-if=
"pageData.ClassNext.ClassPlanState==1"
>
上课中
</text>
<text
v-else-if=
"pageData.ClassNext.ClassPlanState==2"
>
下节课
</text>
<text
v-else
>
暂无
</text>
</view>
</view>
<view
class=
"learningGarden"
v-if=
"pageData.LearningGardenList.length>0"
>
<view
class=
"learningGardenSbutitle"
>
扩展学习
</view>
<view
v-for=
"(item,index) in pageData.LearningGardenList"
:key=
"index"
v-if=
"item.List.length>0"
>
<view
class=
"learningGardenTitle"
>
<text>
{{
item
.
Name
}}
</text>
<view
style=
"
height: 60rpx;
font-size: 24rpx;
font-weight: 500;
color: #4C50E7;display: flex;align-items: center;"
@
click=
"jumpGarden(item.Id)"
>
查看更多
<van-icon
name=
"arrow"
/>
</view>
</view>
<view
class=
"gardenCon"
v-for=
"(item1,index1) in item.List"
:key=
"index1"
id=
"img"
@
click=
"jumpPage(`/pages/learningGarden/learningGardenDetails?Id=$
{item1.Id}`)">
<image
:src=
"item1.Img"
mode=
"aspectFill"
:id=
"'img'+index1"
style=
"width: 100%;height:100%;border-radius: 24rpx 24rpx 0 0;"
></image>
<view
class=
"gardenTextBox"
:style=
"
{'background':`linear-gradient(to bottom,${item1.bgcolor},${item1.bgcolor1} , ${item1.bgcolor2})` }">
<view
class=
"gardenTitle one_line"
>
{{
item1
.
Title
}}
</view>
<view
class=
"gardenDigest one_line"
>
{{
item1
.
Digest
}}
</view>
</view>
</view>
</view>
</view>
<bottom></bottom>
<canvas
canvas-id=
"myCanvas"
class=
"canvas"
style=
"position:absolute;left: -1000px;"
></canvas>
<van-toast
id=
"van-toast"
/>
<view
class=
"diaocha-box"
v-if=
"SurveyObj.ActivitySurveyId>0"
>
<image
@
click=
"goTongji()"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1652251724000_835.png"
mode=
"widthFix"
></image>
</view>
</view>
</
template
>
...
...
@@ -221,7 +93,7 @@
},
//跳转至详情
goActiveDetail
(
Id
)
{
this
.
jumpPage
(
`/pages/activity/activityDetails?Id=
${
Id
}
`
);
//
this.jumpPage(`/pages/activity/activityDetails?Id=${Id}`);
},
base64_decode
(
data
)
{
var
b64
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
;
...
...
@@ -414,371 +286,45 @@
</
script
>
<
style
scoped
>
.indexpage
{
min-height
:
100vh
;
background-color
:
#F5F5F5
;
box-sizing
:
border-box
;
}
.wenjuan_dc
{
position
:
fixed
;
width
:
83
rpx
;
height
:
83
rpx
;
right
:
30
rpx
;
bottom
:
200
rpx
;
z-index
:
999
;
.index-header-name
{
font-size
:
30
rpx
;
color
:
#474747
;
}
.wenjuan_dc
img
{
width
:
100%
;
height
:
100%
;
}
.navbarSticky
{
display
:
sticky
;
top
:
0
;
z-index
:
9
;
}
.navbarCon
{
height
:
100%
;
box-sizing
:
border-box
;
padding
:
0
30
rpx
;
display
:
flex
;
align-items
:
center
;
background-color
:
#F5F5F5
;
}
.pagetitle
{
font-size
:
46
rpx
;
font-weight
:
800
;
color
:
#111111
;
margin-right
:
30
rpx
;
}
.loginBox
{
width
:
110
rpx
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
.index-header-tetx
{
color
:
#D0D0D0
;
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
800
;
color
:
#4C50E7
;
margin-right
:
220
rpx
;
}
.loginIcon
{
width
:
50
rpx
;
height
:
50
rpx
;
margin-right
:
10
rpx
;
}
.scanBox
{
width
:
40
rpx
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.scanIcon
{
width
:
40
rpx
;
height
:
40
rpx
;
}
.scanText
{
font-size
:
20
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
800
;
color
:
#111111
;
line-height
:
20
rpx
;
}
.activeContent
{
width
:
100%
;
height
:
300
rpx
;
border-radius
:
20
rpx
;
margin
:
40
rpx
0
60
rpx
0
;
.index-header-img
.img
{
display
:
inline-block
;
border
:
1
rpx
solid
#E3E3E3
;
border-radius
:
50%
;
overflow
:
hidden
;
box-sizing
:
border-box
;
padding
:
0
30
rpx
;
}
.swiperList
{
position
:
relative
;
width
:
100%
;
height
:
300
rpx
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-clip
:
border-box
;
box-sizing
:
border-box
;
.index-header-img
{
width
:
60
rpx
;
height
:
60
rpx
;
border-radius
:
50%
;
overflow
:
hidden
;
color
:
#fff
;
border-radius
:
20
rpx
;
}
.swiper_Time
{
position
:
absolute
;
top
:
20
rpx
;
right
:
40
rpx
;
font-size
:
26
rpx
;
}
.swiper_Name
{
position
:
absolute
;
bottom
:
20
rpx
;
left
:
30
rpx
;
font-size
:
26
rpx
;
}
.swiper
{
height
:
100%
;
position
:
relative
;
border-radius
:
20
rpx
;
}
.swiper
/
deep
/
.wx-swiper-dot
{
width
:
10
rpx
;
height
:
10
rpx
;
margin-right
:
0
;
}
.wordBox
{
box-sizing
:
border-box
;
/* height: 390rpx; */
background-color
:
#EBEBEB
;
padding
:
60
rpx
30
rpx
;
margin-bottom
:
20
rpx
;
}
.wordTitle
{
font-size
:
28
rpx
;
font-weight
:
bold
;
color
:
#111111
;
margin-bottom
:
45
rpx
;
}
.wordItem
{
width
:
200
rpx
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
}
.wordItemTitle
{
width
:
100%
;
font-size
:
22
rpx
;
font-weight
:
500
;
color
:
#666666
;
text-align
:
center
;
margin-bottom
:
10
rpx
;
}
.wordItemText
{
font-size
:
78
rpx
;
line-height
:
60
rpx
;
font-weight
:
800
;
font-style
:
italic
;
color
:
#111111
;
white-space
:
nowrap
;
}
.wordItemTextUnit
{
font-size
:
22
rpx
;
font-weight
:
400
;
font-style
:
normal
;
margin-left
:
10
rpx
;
}
.wordDuration
{
margin
:
50
rpx
0
15
rpx
;
font-size
:
22
rpx
;
font-weight
:
500
;
color
:
#999999
;
text-align
:
center
;
margin-right
:
20
rpx
;
background
:
#FFFFFF
;
padding
:
4
rpx
;
}
.wordBtn
{
width
:
130
rpx
;
height
:
50
rpx
;
text-align
:
center
;
line-height
:
50
rpx
;
background-color
:
#4C50E7
;
border-radius
:
25
rpx
;
margin
:
10
rpx
auto
;
font-size
:
22
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#FEFEFF
;
}
.courseBox
{
width
:
690
rpx
;
margin
:
0
auto
;
height
:
350
rpx
;
background
:
linear-gradient
(
0deg
,
#FFFFFF
,
#4C50E7
);
box-shadow
:
2
rpx
4
rpx
40
rpx
0
rpx
rgba
(
212
,
212
,
212
,
0.6
);
border-radius
:
24
rpx
;
box-sizing
:
border-box
;
padding
:
10
rpx
;
position
:
relative
;
margin-bottom
:
80
rpx
;
}
.courseInnerBox
{
width
:
100%
;
height
:
100%
;
background-color
:
#FFFFFF
;
border-radius
:
24
rpx
;
}
.courseTitle
{
box-sizing
:
border-box
;
padding
:
10
rpx
20
rpx
10
rpx
10
rpx
;
background
:
linear-gradient
(
0deg
,
#6C70EB
,
#505FEB
);
position
:
absolute
;
top
:
10
rpx
;
left
:
10
rpx
;
border-bottom-right-radius
:
30
rpx
;
font-size
:
28
rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
}
.courseInnerBox
.top
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
height
:
60
rpx
;
margin-bottom
:
50
rpx
;
}
.courseIcon
{
width
:
30
rpx
;
height
:
30
rpx
;
}
.courseDateStr
{
font-size
:
22
rpx
;
font-weight
:
500
;
color
:
#111111
;
}
.courseIcon2
{
width
:
235
rpx
;
height
:
225
rpx
;
}
.courseNameBox
{
width
:
410
rpx
;
box-sizing
:
border-box
;
padding
:
0
25
rpx
;
}
.className
{
font-size
:
22
rpx
;
font-weight
:
500
;
color
:
#666666
;
margin-bottom
:
20
rpx
;
}
.courseName
{
width
:
355
rrpx
;
height
:
75
rpx
;
line-height
:
73
rpx
;
.indexpage
{
min-height
:
100vh
;
background-color
:
#F5F5F5
;
border-radius
:
35
rpx
;
font-size
:
42
rpx
;
font-weight
:
bold
;
color
:
#111111
;
padding
:
0
10
rpx
;
box-sizing
:
border-box
;
}
.learningGarden
{
box-sizing
:
border-box
;
padding
:
0
30
rpx
;
}
.learningGardenSbutitle
{
font-size
:
28
rpx
;
font-weight
:
500
;
color
:
#666666
;
margin-bottom
:
30
rpx
;
}
.learningGardenTitle
{
font-size
:
46
rpx
;
font-weight
:
800
;
color
:
#111111
;
margin-bottom
:
50
rpx
;
.index-header-box
{
display
:
flex
;
justify-content
:
space-between
;
flex-direction
:
row
;
align-items
:
center
;
padding
:
29
rpx
42
rpx
;
}
.gardenCon
{
width
:
680
rpx
;
height
:
455
rpx
;
border-radius
:
24
rpx
;
margin-bottom
:
60
rpx
;
overflow
:
hidden
;
position
:
relative
;
}
.gardenTextBox
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
height
:
180
rpx
;
background
:
linear-gradient
(
0deg
,
#FBD140
);
box-sizing
:
border-box
;
padding
:
80
rpx
40
rpx
0
;
overflow
:
hidden
;
}
.gardenTitle
{
font-size
:
28
rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
white-space
:
nowrap
;
}
.gardenDigest
{
font-size
:
20
rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
margin-top
:
15
rpx
;
white-space
:
nowrap
;
}
.starbucks
{
display
:
block
;
width
:
700
rpx
;
height
:
auto
;
box-sizing
:
border-box
;
overflow
:
hidden
;
border-radius
:
20
rpx
;
margin
:
60
rpx
auto
;
}
.diaocha-box
{
position
:
absolute
;
left
:
0
;
right
:
0
;
.navbarSticky
{
display
:
sticky
;
top
:
0
;
bottom
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,
.3
);
padding
:
0
10vw
;
display
:
flex
;
align-items
:
center
;
z-index
:
1000
;
}
.diaocha-box
image
{
width
:
80vw
;
}
.no-scroll
{
overflow
:
hidden
!important
;
height
:
100vh
!important
;
z-index
:
9
;
}
</
style
>
src/pages/login/accountLogin.vue
View file @
c68e4fe6
...
...
@@ -132,7 +132,6 @@
<
style
scoped
>
.login-Welcome-title
{
font-size
:
50
rpx
;
font-family
:
PingFang
SC
;
color
:
#FFFFFF
;
margin-bottom
:
33
rpx
;
font-weight
:
300
;
...
...
@@ -221,7 +220,6 @@
margin-bottom
:
110
rpx
;
background-color
:
#C91727
;
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#FFFFFF
;
text-align
:
center
;
...
...
src/pages/login/login.vue
View file @
c68e4fe6
...
...
@@ -3,7 +3,7 @@
<view
class=
"login-background"
></view>
<view
class=
"login-content"
>
<view
class=
"login-image"
>
<van-image
width=
"398rpx"
height=
"398rpx"
fit=
"cover"
class=
"yuqi"
<van-image
width=
"398rpx"
height=
"398rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653448851000_616.png"
/>
</view>
<view
class=
"btnBox"
@
click=
"login"
>
...
...
@@ -84,7 +84,6 @@
margin-bottom
:
53
rpx
;
background-color
:
#C91727
;
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#FFFFFF
;
text-align
:
center
;
...
...
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