提交 dceb7c50 authored 作者: lihuihui's avatar lihuihui

修改错题列表为空操作按钮颜色

上级 c41ef047
...@@ -154,6 +154,7 @@ export default { ...@@ -154,6 +154,7 @@ export default {
margin-top: .4rem; margin-top: .4rem;
font-size: .26rem; font-size: .26rem;
color:rgba(51,51,51,1); color:rgba(51,51,51,1);
margin-left: .6rem;
} }
.title{ .title{
font-size: .3rem; font-size: .3rem;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
<div class="btn-box"> <div class="btn-box">
<template v-if="!batchDel.selectShow"> <template v-if="!batchDel.selectShow">
<div class="w-btn" @click="batchToolShow">批量管理</div> <div :class="question.list.length != 0 ? 'w-btn' : 'w-btn col2'" @click="batchToolShow">批量管理</div>
<div class="w-btn col">删除</div> <div class="w-btn col">删除</div>
</template> </template>
<template v-else> <template v-else>
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
queIds.map(id => { queIds.map(id => {
const items = this.question.list.find(item => { return item.question_id === queId }) const items = this.question.list.find(item => { return item.question_id === queId })
items.is_collection ? this.removeColl(queIds, () => { items.is_collection ? this.removeColl(queIds, () => {
Toast('取消收藏成功') Toast('取消收藏')
items.is_collection = false items.is_collection = false
}) : this.addColl(queIds, () => { }) : this.addColl(queIds, () => {
Toast('收藏成功') Toast('收藏成功')
...@@ -327,6 +327,10 @@ export default { ...@@ -327,6 +327,10 @@ export default {
color:rgba(204,204,204,1); color:rgba(204,204,204,1);
margin-left: .7rem; margin-left: .7rem;
} }
.w-btn.col2{
background:rgba(247,247,247,1);
color:rgba(204,204,204,1);
}
} }
.top-tab{ .top-tab{
width: 6.7rem; width: 6.7rem;
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
<div class="btn-box"> <div class="btn-box">
<template v-if="!batchDel.selectShow"> <template v-if="!batchDel.selectShow">
<div class="w-btn" @click="batchToolShow">批量管理</div> <div :class="question.list.length != 0 ? 'w-btn' : 'w-btn col2'" @click="batchToolShow">批量管理</div>
<div class="w-btn col">删除</div> <div class="w-btn col">删除</div>
</template> </template>
<template v-else> <template v-else>
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
queIds.map(id => { queIds.map(id => {
const items = this.question.list.find(item => { return item.question_id === queId }) const items = this.question.list.find(item => { return item.question_id === queId })
items.is_collection ? this.removeColl(queIds, () => { items.is_collection ? this.removeColl(queIds, () => {
Toast('取消收藏成功') Toast('取消收藏')
items.is_collection = false items.is_collection = false
}) : this.addColl(queIds, () => { }) : this.addColl(queIds, () => {
Toast('收藏成功') Toast('收藏成功')
...@@ -346,6 +346,10 @@ export default { ...@@ -346,6 +346,10 @@ export default {
color:rgba(204,204,204,1); color:rgba(204,204,204,1);
margin-left: .7rem; margin-left: .7rem;
} }
.w-btn.col2{
background:rgba(247,247,247,1);
color:rgba(204,204,204,1);
}
} }
.top-tab{ .top-tab{
width: 6.7rem; width: 6.7rem;
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
<div class="btn-box"> <div class="btn-box">
<template v-if="!batchDel.selectShow"> <template v-if="!batchDel.selectShow">
<div class="w-btn" @click="batchToolShow">批量管理</div> <div :class="question.list.length != 0 ? 'w-btn' : 'w-btn col2'" @click="batchToolShow">批量管理</div>
<div class="w-btn col">删除</div> <div class="w-btn col">删除</div>
</template> </template>
<template v-else> <template v-else>
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
queIds.map(id => { queIds.map(id => {
const items = this.question.list.find(item => { return item.question_id === queId }) const items = this.question.list.find(item => { return item.question_id === queId })
items.is_collection ? this.removeColl(queIds, () => { items.is_collection ? this.removeColl(queIds, () => {
Toast('取消收藏成功') Toast('取消收藏')
items.is_collection = false items.is_collection = false
}) : this.addColl(queIds, () => { }) : this.addColl(queIds, () => {
Toast('收藏成功') Toast('收藏成功')
...@@ -347,6 +347,10 @@ export default { ...@@ -347,6 +347,10 @@ export default {
color:rgba(204,204,204,1); color:rgba(204,204,204,1);
margin-left: .7rem; margin-left: .7rem;
} }
.w-btn.col2{
background:rgba(247,247,247,1);
color:rgba(204,204,204,1);
}
} }
.top-tab{ .top-tab{
width: 6.7rem; width: 6.7rem;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论