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
3b451003
Commit
3b451003
authored
Jan 10, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
59b0eaae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
30 deletions
+48
-30
Pronunciation.vue
src/components/word/Pronunciation.vue
+12
-6
pages.json
src/pages.json
+22
-22
index.vue
src/pages/index/index.vue
+7
-1
word.vue
src/pages/study/word.vue
+7
-1
No files found.
src/components/word/Pronunciation.vue
View file @
3b451003
...
...
@@ -43,7 +43,7 @@
innerAudioContext
.
autoplay
=
false
;
export
default
{
props
:
{
type
:{
type
:
{
type
:
Number
,
default
:
0
},
...
...
@@ -63,12 +63,18 @@
}
},
setup
(
props
)
{
const
url
=
ref
(
'./cesi.mp3'
)
const
methods
=
{
play
(){
// innerAudioContext.src=props.item.FileUrl
innerAudioContext
.
src
=
url
const
methods
=
{
play
()
{
innerAudioContext
.
src
=
props
.
item
.
FileUrl
innerAudioContext
.
play
()
// innerAudioContext.src =
// decodeURIComponent('http%3A%2F%2Fimgfile.oytour.com%2FEduSystem%2FTest%2FUpload%2FAttachment%2F20210413060328967.mp3')
// if(innerAudioContext.pause){
// }else{
// innerAudioContext.pause()
// }
// console.log(innerAudioContext)
}
}
return
{
...
...
src/pages.json
View file @
3b451003
...
...
@@ -9,19 +9,7 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},{
"path"
:
"pages/study/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
},{
"path"
:
"pages/study/courseList"
},{
"path"
:
"pages/study/studyComplete"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
},{
},
{
"path"
:
"pages/login/login"
,
"style"
:
{
"navigationStyle"
:
"custom"
...
...
@@ -39,11 +27,11 @@
},
{
"path"
:
"pages/activity/activityMedia"
//活动图片、视频
},
{
"path"
:
"pages/person/person"
,
"style"
:{
"navigationBarTitleText"
:
"个人中心"
,
"backgroundColor"
:
"#f5f5f5"
,
"navigationBarBackgroundColor"
:
"#f5f5f5"
"path"
:
"pages/person/person"
,
"style"
:
{
"navigationBarTitleText"
:
"个人中心"
,
"backgroundColor"
:
"#f5f5f5"
,
"navigationBarBackgroundColor"
:
"#f5f5f5"
}
}],
"subPackages"
:
[{
...
...
@@ -105,12 +93,24 @@
}]
},
{
"root"
:
"pages/
word"
,
//单词
分包
"root"
:
"pages/
study"
,
//学习
分包
"pages"
:
[{
"path"
:
"index"
,
//
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"word"
,
//
"style"
:{
"backgroundColor"
:
"#f5f5f5"
,
"navigationBarBackgroundColor"
:
"#f5f5f5"
"style"
:
{
"backgroundColor"
:
"#f5f5f5"
,
"navigationBarBackgroundColor"
:
"#f5f5f5"
}
},{
"path"
:
"courseList"
},{
"path"
:
"studyComplete"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}]
}
...
...
src/pages/index/index.vue
View file @
3b451003
...
...
@@ -7,7 +7,7 @@
首页
</view>
<view
class=
"loginBox"
>
<indexassembly
@
success=
'againdata'
>
<indexassembly
@
success=
'againdata'
v-if=
"userData.AccountId==0"
>
<view
class=
"flex_start_center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/login2x.png"
...
...
@@ -15,6 +15,9 @@
登录
</view>
</indexassembly>
<view
class=
""
v-else
>
{{
userData
.
AccountName
}}
</view>
</view>
<view
class=
"scanBox"
>
...
...
@@ -168,6 +171,7 @@
},
ActivityList
:
[],
pageData
:
{},
userData
:{}
});
let
methods
=
{
...
...
@@ -203,6 +207,8 @@
onMounted
(()
=>
{
methods
.
getIndexData
();
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
console
.
log
(
208
,
data
.
userData
)
});
return
{
...
toRefs
(
data
),
...
...
src/pages/
word
/word.vue
→
src/pages/
study
/word.vue
View file @
3b451003
<
template
>
<view
class=
"word"
>
<swiper
class=
"swiper"
next-margin=
"60rpx"
>
<swiper
class=
"swiper"
next-margin=
"60rpx"
@
change=
"swiperChange"
:current=
"85"
>
<swiper-item
v-for=
"(item,index) in StudyList"
:key=
"index"
class=
"swiper-item"
>
<Pronunciation
:item=
"item"
:cur=
"index+1"
:total=
"StudyList.length"
></Pronunciation>
</swiper-item>
...
...
@@ -46,6 +46,12 @@
data
.
StudyList
=
res
.
Data
.
StudyList
data
.
ReviewList
=
res
.
Data
.
ReviewList
})
},
swiperChange
(
val
){
const
total
=
data
.
StudyList
.
length
+
data
.
ReviewList
.
length
if
(
val
.
detail
.
current
+
1
==
total
&&
total
>
0
){
console
.
log
(
val
,
1111111111111111111
)
}
}
}
onMounted
(()
=>
{
...
...
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