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
f2b6bc8d
Commit
f2b6bc8d
authored
Jan 10, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
0bad2a46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1175 additions
and
23 deletions
+1175
-23
Pronunciation.vue
src/components/word/Pronunciation.vue
+59
-0
pages.json
src/pages.json
+6
-0
index.vue
src/pages/index/index.vue
+36
-23
index2.vue
src/pages/index/index2.vue
+1015
-0
word.vue
src/pages/word/word.vue
+59
-0
No files found.
src/components/word/Pronunciation.vue
0 → 100644
View file @
f2b6bc8d
<
template
>
<view
class=
"wordPronItem"
>
<view
class=
"num"
>
1/26
</view>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
provide
,
}
from
"vue"
;
export
default
{
components
:
{
},
props
:{
item
:{
type
:
Object
,
default
:()
=>
{
return
{}}
}
},
setup
(){
let
data
=
reactive
({
})
let
methods
=
{
}
return
{
...
toRefs
(
data
),
...
methods
,
};
}
}
</
script
>
<
style
scoped
>
.wordPronItem
{
width
:
640
rpx
;
height
:
990
rpx
;
}
.wordPronItem
.num
{
font-size
:
26
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#999999
;
}
</
style
>
src/pages.json
View file @
f2b6bc8d
...
...
@@ -98,6 +98,12 @@
},
{
"path"
:
"learningGardenDetails"
//学习园地详情
}]
},
{
"root"
:
"pages/word"
,
//单词分包
"pages"
:
[{
"path"
:
"word"
//
}]
}
],
"tabBar"
:
{
...
...
src/pages/index/index.vue
View file @
f2b6bc8d
<
template
>
<view
class=
"indexpage"
>
<navbar>
<view
class=
"navbarCon"
>
<view
class=
"pagetitle"
@
click=
"jumpPage('/pages/login/login')"
>
首页
</view>
<view
class=
"loginBox"
>
<indexassembly
@
success=
'againdata'
>
<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>
</indexassembly>
</view>
<van-sticky
>
<navbar
class=
"navbarSticky"
>
<view
class=
"navbarCon"
>
<view
class=
"pagetitle"
@
click=
"jumpPage('/pages/login/login')"
>
首页
</view>
<view
class=
"loginBox"
>
<indexassembly
@
success=
'againdata'
>
<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>
</indexassembly>
</view>
<view
class=
"scanBox"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/scan2x.png"
mode=
"aspectFit"
class=
"scanIcon"
></image>
<view
class=
"scanText"
>
签到
<view
class=
"scanBox"
@
click=
"jumpPage('/pages/word/word')"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/scan2x.png"
mode=
"aspectFit"
class=
"scanIcon"
></image>
<view
class=
"scanText"
>
签到
</view>
</view>
</view>
</view>
</navbar>
</navbar>
</van-sticky>
<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
>
...
...
@@ -188,6 +192,11 @@
const
formatres
=
`rgba(
${
res
.
r
}
,
${
res
.
g
}
,
${
res
.
b
}
)`
console
.
log
(
168
,
formatres
)
return
formatres
},
againdata
(){
data
.
pageData
=
uni
.
getStorageSync
(
"userInfo"
);
methods
.
getIndexData
();
methods
.
getActivityData
();
}
};
...
...
@@ -231,7 +240,11 @@
box-sizing
:
border-box
;
padding-bottom
:
40
rpx
;
}
.navbarSticky
{
display
:
sticky
;
top
:
0
;
z-index
:
9
;
}
.navbarCon
{
height
:
100%
;
box-sizing
:
border-box
;
...
...
src/pages/index/index2.vue
0 → 100644
View file @
f2b6bc8d
This diff is collapsed.
Click to expand it.
src/pages/word/word.vue
0 → 100644
View file @
f2b6bc8d
<
template
>
<view
class=
"word"
>
<swiper
class=
"swiper"
>
<swiper-item
v-for=
"(item,index) in test"
:key=
"index"
>
<view
class=
"swiper-item uni-bg-green"
>
index
</view>
<Pronunciation></Pronunciation>
</swiper-item>
</swiper>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
provide
,
}
from
"vue"
;
import
Pronunciation
from
'../../components/word/Pronunciation.vue'
export
default
{
components
:
{
Pronunciation
},
setup
(
props
)
{
let
data
=
reactive
({
test
:
[
1
,
2
,
3
]
})
let
methods
=
{
}
onMounted
(()
=>
{
})
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
(
option
)
{
uni
.
setNavigationBarTitle
({
title
:
'新的标题'
});
},
}
</
script
>
<
style
scoped
>
.word
{
min-height
:
100vh
;
background-color
:
#F5F5F5
;
}
</
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