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
7ce8d06d
Commit
7ce8d06d
authored
Mar 15, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
73910377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
13 deletions
+43
-13
index.vue
src/pages/index/index.vue
+43
-13
No files found.
src/pages/index/index.vue
View file @
7ce8d06d
...
...
@@ -44,7 +44,7 @@
<view
class=
"wordBox"
>
<view
class=
"wordTitle"
>
单词练习
</view>
</view>
<view
class=
"flex_around_center "
>
<view
class=
"wordItem"
>
<text
class=
"wordItemTitle"
>
今日新词
</text>
...
...
@@ -60,12 +60,16 @@
<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
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"
>
...
...
@@ -177,7 +181,7 @@
},
ActivityList
:
[],
pageData
:
{
LearningGardenList
:[]
LearningGardenList
:
[]
},
userData
:
{}
});
...
...
@@ -195,7 +199,7 @@
},
//跳转至详情
goActiveDetail
(
Id
)
{
this
.
jumpPage
(
`/pages/activity/activityDetails?Id=
${
Id
}
`
);
this
.
jumpPage
(
`/pages/activity/activityDetails?Id=
${
Id
}
`
);
},
scan
()
{
// 调起条码扫描
...
...
@@ -220,14 +224,19 @@
if
(
data
.
pageData
.
LearningGardenList
.
length
>
0
)
{
data
.
pageData
.
LearningGardenList
.
forEach
((
x
,
y
)
=>
{
if
(
x
.
List
.
length
>
0
)
{
x
.
List
.
forEach
(
async
(
item
,
index
)
=>
{
x
.
List
.
forEach
(
async
(
item
,
index
)
=>
{
await
this
.
getColor
(
item
.
Img
,
index
,
y
).
then
(
v
=>
{
data
.
pageData
.
LearningGardenList
[
v
.
y
].
List
[
v
.
index
].
bgcolor
=
v
.
formatres
;
data
.
pageData
.
LearningGardenList
[
v
.
y
].
List
[
v
.
index
].
bgcolor1
=
v
.
formatres1
;
data
.
pageData
.
LearningGardenList
[
v
.
y
].
List
[
v
.
index
].
bgcolor2
=
v
.
formatres2
;
data
.
pageData
.
LearningGardenList
[
v
.
y
]
.
List
[
v
.
index
].
bgcolor
=
v
.
formatres
;
data
.
pageData
.
LearningGardenList
[
v
.
y
]
.
List
[
v
.
index
].
bgcolor1
=
v
.
formatres1
;
data
.
pageData
.
LearningGardenList
[
v
.
y
]
.
List
[
v
.
index
].
bgcolor2
=
v
.
formatres2
;
})
})
...
...
@@ -261,11 +270,22 @@
// url:"/pages/learningGarden/learningGardenList"
// })
}
},
jumpJiahemini
()
{
let
userinfo
=
uni
.
getStorageSync
(
'userInfo'
);
wx
.
navigateToMiniProgram
({
appId
:
'wx38e054ee42b054f4'
,
path
:
''
,
//为空则打开首页
extraData
:
{
Id
:
userinfo
.
Id
||
0
}
})
}
};
onMounted
(()
=>
{
});
return
{
...
toRefs
(
data
),
...
...
@@ -415,7 +435,7 @@
/* height: 390rpx; */
background-color
:
#EBEBEB
;
padding
:
60
rpx
30
rpx
;
margin-bottom
:
8
0
rpx
;
margin-bottom
:
2
0
rpx
;
}
.wordTitle
{
...
...
@@ -619,4 +639,14 @@
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
;
}
</
style
>
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