Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
254339d8
Commit
254339d8
authored
Oct 22, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
013a3c55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
Rstudy.vue
components/study/Rstudy.vue
+10
-0
index.vue
pages/index/index.vue
+5
-2
No files found.
components/study/Rstudy.vue
View file @
254339d8
...
...
@@ -44,6 +44,7 @@
}
},
created
()
{
this
.
posiTop
=
this
.
$uiConfig
.
is_bang
?
80
:
52
;
this
.
windowWidth
=
this
.
$utils
.
SystemInfo
().
windowWidth
;
this
.
textWidth
=
this
.
windowWidth
-
this
.
goods
.
PaddingRight
-
this
.
goods
.
PaddingLeft
-
30
-
20
-
10
...
...
@@ -62,6 +63,15 @@
uni
.
navigateTo
({
url
:
'/pages/school/courseContent?id='
+
this
.
laststudy
.
id
+
'&name='
+
this
.
laststudy
.
name
+
'&cover_pic='
+
this
.
laststudy
.
cover_pic
+
'&index='
+
sort
})
},
getData
(){
this
.
laststudy
=
uni
.
getStorageSync
(
'laststudy'
);
if
(
this
.
laststudy
)
{
this
.
isshow
=
true
;
this
.
Name
=
this
.
laststudy
.
name
;
this
.
Cover
=
this
.
laststudy
.
cover_pic
;
this
.
progress
=
parseInt
((
this
.
laststudy
.
learned
/
this
.
laststudy
.
count
)
*
100
);
}
}
}
}
...
...
pages/index/index.vue
View file @
254339d8
...
...
@@ -60,7 +60,7 @@
<!-- 资讯 -->
<argoods
v-if=
"d.id == 'educationArticle'"
:goods=
"d.data"
></argoods>
<!-- 最近学习组件 -->
<rstudy
v-if=
"d.id == 'education'"
:goods=
"d.data"
></rstudy>
<rstudy
v-if=
"d.id == 'education'"
:goods=
"d.data"
ref=
'study'
></rstudy>
</
template
>
</view>
</template>
...
...
@@ -651,7 +651,10 @@ export default {
uni
.
setStorageSync
(
"navs"
,
res
.
data
.
navbar
.
navs
);
}
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
if
(
this
.
$refs
.
study
[
0
].
getData
()){
this
.
$refs
.
study
[
0
].
getData
();
//调取最近学习组件的方法
}
if
(
this
.
myPageData
.
home_pages
.
navs
.
length
>
0
&&
this
.
myPageData
.
home_pages
.
navs
[
0
].
template
.
data
.
length
>
0
){
this
.
myPageData
.
home_pages
.
navs
[
0
].
template
.
data
.
forEach
(
x
=>
{
if
(
x
.
id
==
'search'
){
...
...
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