zhouwenxuan
2023-07-25 22f0e04d34f19aac857e25627343dff9a2542057
pages/tabBar/notice/notice.vue
@@ -82,11 +82,7 @@
               </view>
            </view>
            <view v-else>
               <u-empty
                  mode="data"
                  icon="http://cdn.uviewui.com/uview/empty/data.png"
                  margin-top="50%">
               </u-empty>
               <u-empty margin-top="40%" text="数据为空" mode="data"></u-empty>
            </view>
         </view>
      </view>
@@ -166,6 +162,7 @@
      },
      methods: {
         getNoticeList() {
            this.noSpeak = 0;
            this.data.searchParams.readStatus = this.isReadOnly ? 0 : null;
            this.data.searchParams.emergType = this.checked ? 1 : null ;
            this.data.searchParams.warningLevel =  this.selectedSaleAnalysis =='all' ? null : this.selectedSaleAnalysis =='red' ? 1 : this.selectedSaleAnalysis =='orange' ? 2: this.selectedSaleAnalysis =='yellow'? 3 : 4;
@@ -322,7 +319,8 @@
   height: 30px;
   border-radius: 5px;
  &.active{
    border: 1px solid #fff;
    border: 1px solid rgba(0,0,0,.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
}
.buttonAll{
@@ -340,21 +338,36 @@
}
.all {
   background-color: rgb(17,204,33);
  &.active{
    background-image: linear-gradient(#22992d,#12da23);
  }
}
.active {
   border: 1.5px solid #8d8d8d;
}
.red {
   background-color: #ff5555;
  &.active{
    background:linear-gradient(#dc2f2f, #ff5b5b);
  }
}
.orange {
   background-color: rgb(251, 158, 13);
  &.active{
    background: linear-gradient(#e28e0c,#ffa90e);
  }
}
.yellow {
   background-color: rgb(255, 223, 37);
  &.active{
    background: linear-gradient(#e6c921,#ffef28);
  }
}
.blue {
   background-color: #409EFF;
  &.active{
    background: linear-gradient(#3a8ee6,#44a9ff);
  }
}
.switchBtn{
   display: flex;