浏览代码

Merge branch 'V0.0.5' of http://10.87.21.221:8000/jzyd_yyds/soc_app into V0.0.5

coys 1 年之前
父节点
当前提交
068e41c2a4
共有 3 个文件被更改,包括 30 次插入15 次删除
  1. 28 13
      src/components/weatherBox/index.vue
  2. 1 1
      src/views/menu/message/index.vue
  3. 1 1
      src/views/menu/securityCheckRegister/add.vue

+ 28 - 13
src/components/weatherBox/index.vue

@@ -5,7 +5,7 @@
       <div>
         <van-notice-bar
           ref="NoticeBar"
-          v-if="lists.length > 0"
+          v-if="showBar && lists.length > 0"
           mode="closeable"
           :speed="50"
           :text="itemInfo.alarmTitle"
@@ -13,10 +13,14 @@
           background="#f5f5f5"
           :scrollable="true"
           @click="clickHandler(itemInfo)"
+          @close.stop="closeNotice"
           left-icon="bulb-o">
-<!--            <span v-if="itemInfo" :style="{color:color,textShadow:'0 0 1px #666'}">-->
-<!--             {{itemInfo.alarmTitle}}-->
-<!--            </span>-->
+          <template #default>
+            <span v-if="itemInfo" :style="{color:color}">
+             {{itemInfo.alarmTitle}}
+            </span>
+          </template>
+
 <!--          <van-swipe-->
 <!--            @change="changeColor"-->
 <!--            vertical-->
@@ -50,7 +54,6 @@
 <script >
 import { mapGetters } from 'vuex'
 import { getTheAreaWeather } from '@/api/public'
-import request from "@/utils/request";
 export default {
   props:{
     showNotice:{
@@ -66,20 +69,26 @@ export default {
       active: this.defaultActive,
       color: '#ecf9ff',
       background: null,
-      noticeIcon:require('@/assets/img/icon/error.png'),
+      //noticeIcon:require('@/assets/img/icon/error.png'),
       itemInfo: null,
-      timer:8000,
+      timer:10000,
       timeOut:null,
       index:0,
+      showBar:true,
     }
   },
   mounted() {
-    this.getList();
+    setTimeout(()=>{
+      this.getList();
+    },1000)
   },
   computed: {
     ...mapGetters(['orgId']),
   },
   methods: {
+    closeNotice(){
+      this.showBar = false;
+    },
     //获取天气数据
     getList() {
       if(!this.orgId)return [];
@@ -168,7 +177,7 @@ export default {
           //this.color = '#fff';
           break;
         case '黄色':
-          this.color = '#FBEE20';
+          this.color = '#ffb400';
           this.background = '#f5f5f5';
           //this.background = 'rgba(251,238,32,0.8)';
           //this.color = '#fdb0b1';
@@ -208,11 +217,17 @@ export default {
   height: 30px;
   line-height: 30px;
 }
-.van-swipe-item{
-  -text-shadow: 0 0 2px #333;
+//.van-swipe-item{
+//  -text-shadow: 0 0 2px #333;
+//}
+//.van-notice-bar__content{
+//  -text-shadow: 0 0 2px #333;
+//}
+.van-notice-bar__left-icon{
+  font-size: 40px;
 }
-.van-notice-bar__content{
-  text-shadow: 0 0 2px #333;
+.van-notice-bar__right-icon{
+  color:#ccc;
 }
 </style>
 

+ 1 - 1
src/views/menu/message/index.vue

@@ -2,7 +2,7 @@
 <div class="message">
   <div v-if="!show" class="page-container">
     <van-tabs v-model="query.type" @change="refreshData">
-      <van-tab title="公告/通知" name="1"></van-tab>
+      <van-tab title="通知公告" name="1"></van-tab>
       <van-tab title="业务提醒" name="2"></van-tab>
       <van-tab title="消息" name="3"></van-tab>
     </van-tabs>

+ 1 - 1
src/views/menu/securityCheckRegister/add.vue

@@ -126,7 +126,7 @@
         <van-button type="info" :disabled="Boolean(!isSubmit)"  plain hairline @click="saveData">保存</van-button>
         <van-button type="info" :disabled="Boolean(!isSubmit)" @click="submitData">提交</van-button>
       </div>
-      <p v-show="Boolean(!isSubmit)">注:未到任务开始时间,禁止操作</p>
+      <p v-show="Boolean(!isSubmit)">注:不在任务登记时间内,禁止操作</p>
     </div>
 
     <!--  nfc弹窗  -->