shish 2 месяцев назад
Родитель
Сommit
e60aeb25de
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      hdApp/src/admin/home/components/mall-home-panel.vue

+ 6 - 1
hdApp/src/admin/home/components/mall-home-panel.vue

@@ -67,7 +67,7 @@
         </view>
       </view>
 
-      <view v-if="!$util.isEmpty(data.warning)" class="alert-card alert-card-error">
+      <view v-if="!$util.isEmpty(data.warning)" class="alert-card alert-card-error" @click.stop="goWarning(data)">
         <view class="alert-content">
           <view class="alert-text">{{ data.warning }}</view>
         </view>
@@ -347,6 +347,11 @@ export default {
       this.updateCurrentDate()
       this.initHomeMenus()
     },
+		goWarning(info){
+			if(!this.$util.isEmpty(info.warningUrl)){
+				this.$util.pageTo({ url:info.warningUrl})
+			}
+		},
     handlePageUnload() {},
     handlePageShow() {
       this.unReadMsgNum = 0