提交 0e79bc23 authored 作者: 王鹏飞's avatar 王鹏飞

修改课程页面的loading效果

...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</div>--> </div>-->
<div class="new-height"> <div class="new-height">
<div class="study-title">我的学习</div> <div class="study-title">我的学习</div>
<div class="con-box"> <div class="con-box" v-loading="loading">
<ul class="course-list"> <ul class="course-list">
<template v-for="(item, index) in homeList"> <template v-for="(item, index) in homeList">
<li v-bind:key="index" class="item"> <li v-bind:key="index" class="item">
...@@ -131,7 +131,8 @@ export default { ...@@ -131,7 +131,8 @@ export default {
}, },
timeInterval: null, timeInterval: null,
newLiveMsg: {}, newLiveMsg: {},
oneParamYype: 1 oneParamYype: 1,
loading: false
} }
}, },
mounted() { mounted() {
...@@ -187,6 +188,7 @@ export default { ...@@ -187,6 +188,7 @@ export default {
} }
this.oneParamYype++ this.oneParamYype++
} }
this.loading = true
cAction.Course.getCourseList(bool, this.param) cAction.Course.getCourseList(bool, this.param)
.then(json => { .then(json => {
this.homeList = json this.homeList = json
...@@ -197,7 +199,9 @@ export default { ...@@ -197,7 +199,9 @@ export default {
.catch(e => { .catch(e => {
this.$message.error(e.message) this.$message.error(e.message)
}) })
.finally(() => {}) .finally(() => {
this.loading = false
})
}, },
/** /**
* 分类选择 - 选中某一项 * 分类选择 - 选中某一项
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论