提交 917d77a5 authored 作者: zhengyadong's avatar zhengyadong

修改bug

上级 143ce21c
......@@ -23,7 +23,7 @@ module.exports = {
// Various Dev Server settings
host: '192.168.2.39', // can be overwritten by process.env.HOST
host: '192.168.2.64', // can be overwritten by process.env.HOST
port: 8082, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
......
......@@ -20,7 +20,7 @@
</div>
</div>
<div>
<div v-if="list.length == 0">
<div v-if="list.length == 0&&listStatus">
<none-data></none-data>
</div>
<list-footer title='这是我的底线' v-if="list.length > 5"></list-footer>
......@@ -74,6 +74,7 @@ export default {
},
},
toastPage:null,
listStatus:false
};
},
created() {
......@@ -88,9 +89,11 @@ export default {
loadingType: 'spinner',
duration: 0
});
this.listStatus = false
getMoonListAPI(this.listQuery).then(res=>{
this.toastPage.clear()
if(res.data.code == 0){
this.listStatus = true
this.list = res.data.data.list
}
})
......
......@@ -47,7 +47,7 @@
<p-button name="下一题" @click="nextQuestion" v-if="currentIndex+1 != list.length"></p-button>
</div>
</div>
<div v-if="list.length == 0">
<div v-if="list.length == 0&&listStatus">
<none-data></none-data>
</div>
......@@ -228,6 +228,7 @@ export default {
},
componentName:'',
toastPage:null,
listStatus:false
};
},
async created() {
......@@ -305,6 +306,7 @@ export default {
loadingType: 'spinner',
duration: 0
});
this.listStatus = false
let API
if(status){
API = getMatchConDetailAPI(this.conQuery)
......@@ -314,6 +316,7 @@ export default {
API.then(res=>{
this.toastPage.clear()
if(res.data.code == 0){
this.listStatus = true
if(res.data.data.length === 0) return
this.list = res.data.data
if(this.list.length == 0) return
......
......@@ -37,7 +37,7 @@
</div>
</div>
<div v-if="list.length == 0">
<div v-if="list.length == 0&&listStatus">
<none-data></none-data>
</div>
<!-- 答案 -->
......@@ -154,7 +154,8 @@ export default {
'4':completion
},
componentName:'',
title:''
title:'',
listStatus:false
};
},
created() {
......@@ -185,8 +186,10 @@ export default {
},
// 获取题目详情
getDetail(){
this.listStatus = false
getWeekDetailAPI(this.listQuery).then(res=>{
if(res.data.code == 0){
this.listStatus = true
if(res.data.data.length === 0) return
this.list = res.data.data
this.currentIndex = 0 // 当前选中索引值
......
......@@ -37,7 +37,7 @@
</text-case>
</div>
</div>
<div v-if="list.length == 0">
<div v-if="list.length == 0&&listStatus">
<none-data></none-data>
</div>
<!-- 切换题目 -->
......@@ -201,6 +201,7 @@ export default {
goodsType:4,
},
collectionStatus:false,
listStatus:false
};
},
created() {
......@@ -238,12 +239,14 @@ export default {
loadingType: 'spinner',
duration: 0
});
this.listStatus = false
this.topTitle = this.viewType[type].title
this.iconType = this.viewType[type].iconType
let API = this.viewType[type]['API'](this[this.viewType[type].query])
API.then(res=>{
if(res.data.code == 0){
this.toastPage.clear()
this.listStatus = true
if(res.data.data.length === 0) return
this.list = res.data.data
this.currentIndex = 0 // 当前选中索引值
......
......@@ -24,7 +24,7 @@
</div>
</div>
<div>
<div v-if="list.length == 0">
<div v-if="list.length == 0&&listStatus">
<none-data></none-data>
</div>
<list-footer title='这是我的底线' v-if="list.length > 5"></list-footer>
......@@ -52,6 +52,7 @@ export default {
pageSize:100,
},
toastPage:null,
listStatus:false
};
},
created() {
......@@ -66,9 +67,11 @@ export default {
loadingType: 'spinner',
duration: 0
});
this.listStatus = false
getWeekListAPI(this.listQuery).then(res=>{
this.toastPage.clear()
if(res.data.code == 0){
this.listStatus = true
this.list = res.data.data.map
}
})
......
......@@ -67,7 +67,7 @@
<right-answer :analysis='currentObj.analysis' :answer="currentObj.rightanswer"></right-answer>
</div>
<div v-if="list.length == 0">
<div v-if="list.length == 0&&listStatus">
<none-data></none-data>
</div>
......@@ -228,6 +228,7 @@ export default {
}
],
toastPage:null,
listStatus:false
};
},
created() {
......@@ -253,10 +254,12 @@ export default {
loadingType: 'spinner',
duration: 0
});
this.listStatus = false
getWeekDetailAPI(this.listQuery).then(res=>{
this.toastPage.clear()
if(res.data.code == 0){
this.list = res.data.data
this.listStatus = true
if(this.list.length === 0) return
this.currentIndex = 1 // 当前选中索引值
this.currentObj = this.list[0] // 当前选中题目
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论