Commit 3b451003 authored by 罗超's avatar 罗超

2

parent 59b0eaae
......@@ -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 {
......
......@@ -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"
}
}]
}
......
......@@ -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),
......
<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(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment