Commit 337c8164 authored by 罗超's avatar 罗超

2

parent 92d2c7ad
...@@ -187,7 +187,9 @@ ...@@ -187,7 +187,9 @@
res.Data.Account = data.obj.phoneNum; res.Data.Account = data.obj.phoneNum;
uni.setStorageSync("userInfo", res.Data); uni.setStorageSync("userInfo", res.Data);
Toast.success("登录成功"); Toast.success("登录成功");
emit('success') setTimeout(()=>{
emit('success')
},1000)
data.showPhone = false data.showPhone = false
uni.showTabBar() uni.showTabBar()
} else { } else {
...@@ -198,13 +200,11 @@ ...@@ -198,13 +200,11 @@
} }
uni.hideLoading(); uni.hideLoading();
if (res.Data.Error == -1) { //如果没找到电话号码 就跳入登录 if (res.Data.Error == -1) { //如果没找到电话号码 就跳入登录
// setTimeout(() => { // setTimeout(() => {
// uni.reLaunch({ // uni.reLaunch({
// url: '/pages/login/login' // url: '/pages/login/login'
// }); // });
// }, 1000); // }, 1000);
} }
} }
......
...@@ -107,14 +107,15 @@ ...@@ -107,14 +107,15 @@
</style> </style>
<template> <template>
<view class="studyCourse"> <view class="studyCourse">
<div class="loading" v-if="isShowLoad">
<van-loading type="spinner" color="#fff" />
</div>
<template v-if="ChapterList.length>0"> <template v-if="ChapterList.length>0">
<view class="Course_Top"> <view class="Course_Top">
<view class="CourseBan">{{CourseName}}</view> <view class="CourseBan">{{CourseName}}</view>
<view class="CourseTotal" v-if="TotalHours>0">{{TotalHours}}</view> <view class="CourseTotal" v-if="TotalHours>0">{{TotalHours}}</view>
</view> </view>
<div class="loading" v-if="isShowLoad">
<van-loading type="spinner" color="#fff" />
</div>
<view class="Course_Bottom"> <view class="Course_Bottom">
<view class="Course_List" v-for="(item,index) in ChapterList" :key="index"> <view class="Course_List" v-for="(item,index) in ChapterList" :key="index">
<view class="CourseList_One" @click="getReview(index)"> <view class="CourseList_One" @click="getReview(index)">
...@@ -216,6 +217,8 @@ ...@@ -216,6 +217,8 @@
x.isShow = false x.isShow = false
}) })
} }
}).catch(err=>{
data.isShowLoad = false;
}); });
}, },
getSpeed(score) { getSpeed(score) {
......
...@@ -6,7 +6,15 @@ ...@@ -6,7 +6,15 @@
:key="index" :key="index"
> >
<view class="flex flex_start_center title-row"> <view class="flex flex_start_center title-row">
<view class="class-time">{{ item.StartTime }} </view> <view class="class-time">
<view class="" style="font-size: 22rpx;font-weight: 400;color: #111111;">
{{data.DateMonth}}-{{data.DateDay}}
</view>
<view class="">
{{ item.StartTime }}
</view>
</view>
<view class="circle"></view> <view class="circle"></view>
<view class="class-title one_line flex"> <view class="class-title one_line flex">
{{ data.ClassName }} {{ data.ClassName }}
...@@ -65,7 +73,7 @@ import { ...@@ -65,7 +73,7 @@ import {
} from "vue"; } from "vue";
export default { export default {
name: "", name: "",
props: { data: Object }, props: { data: Object},
components: {}, components: {},
setup(props) { setup(props) {
let methods = { let methods = {
......
This diff is collapsed.
<template> <template>
<view class="word"> <view class="word">
<swiper class="swiper" next-margin="60rpx" @change="swiperChange" :current="current"> <van-skeleton title row="10" v-if="loading" />
<van-empty description="暂无数据" v-if="nodata"/>
<swiper class="swiper" next-margin="60rpx" @change="swiperChange" :current="current" v-if="!loading&&!nodata">
<swiper-item v-for="(item,index) in StudyList" v-if="Type==2" :key="index" class="swiper-item"> <swiper-item v-for="(item,index) in StudyList" v-if="Type==2" :key="index" class="swiper-item">
<Pronunciation :item="item" :cur="index+1" :total="StudyList.length"></Pronunciation> <Pronunciation :item="item" :cur="index+1" :total="StudyList.length"></Pronunciation>
</swiper-item> </swiper-item>
...@@ -57,14 +59,24 @@ ...@@ -57,14 +59,24 @@
}, },
Type:1, //1复习 2 单词 Type:1, //1复习 2 单词
TotalHours:0, TotalHours:0,
CourseName:'' CourseName:'',
loading: false,
nodata: false,
}) })
let methods = { let methods = {
getData() { getData() {
data.loading=true
proxy.$request('/AppletWords/GetStudyWords', data.msg).then(res => { proxy.$request('/AppletWords/GetStudyWords', data.msg).then(res => {
data.loading=false
data.StudyList = res.Data.StudyList data.StudyList = res.Data.StudyList
data.ReviewList = res.Data.ReviewList; data.ReviewList = res.Data.ReviewList;
data.current = 0 data.current = 0
if (data.StudyList.length === 0 && data.ReviewList.length == 0) {
data.nodata = true
}
}).catch(err=>{
data.loading=false
data.nodata = true
}) })
}, },
swiperChange(val) { swiperChange(val) {
......
...@@ -24,6 +24,16 @@ export let getWeek = (year, month) => { ...@@ -24,6 +24,16 @@ export let getWeek = (year, month) => {
return arr return arr
} }
export let getMonthMaxDay = (y, m) => {
let maxDay = 30
if(y&&m){
maxDay= new Date(y, m, "0").getDate();
}else{
const d=new Date()
maxDay= new Date( d.getFullYear(),d.getMonth()+1,0).getDate();
}
return maxDay
}
export let getToday = (y, m, d) => { export let getToday = (y, m, d) => {
let date = new Date() let date = new Date()
let year = date.getFullYear() let year = date.getFullYear()
......
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