From 26ebf71529e5ee4f70c4ad3ed52ea5e59c1b46e5 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 09 十月 2023 14:02:30 +0800
Subject: [PATCH] #核价相关

---
 src/main/webapp/views/home/dashboard.html |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/home/dashboard.html b/src/main/webapp/views/home/dashboard.html
index 68d2952..1ab25a8 100644
--- a/src/main/webapp/views/home/dashboard.html
+++ b/src/main/webapp/views/home/dashboard.html
@@ -48,7 +48,7 @@
     <div class="layui-row layui-col-space15">
 
         <div class="layui-col-xs12 layui-col-md8" >
-            <div class="layui-card" style="">
+            <div class="layui-card" style="" id="popup">
                 <div class="layui-card-header testColorBlack" style="background-color: #FFFA1C1C">鍥㈤槦娲诲姩瀹炴椂浜ゆ槗鎯呭喌</div>
                 <div class="layui-card-body" style="padding-bottom: 20px;background-color: #FFC6A02D">
                     <div class="layui-row">
@@ -248,6 +248,23 @@
 
 </div>
 
+
+<script>
+    // 鏄剧ず鍥㈤槦鏁版嵁
+    function showPopup(res) {
+        if (res==="true"){
+            document.getElementById('popup').style.display = 'block';
+        }else {
+            // 闅愯棌鍥㈤槦鏁版嵁
+            document.getElementById('popup').style.display = 'none';
+        }
+    }
+    // 闅愯棌鍥㈤槦鏁版嵁
+    function hidePopup() {
+        document.getElementById('popup').style.display = 'none';
+    }
+</script>
+
 <!-- js閮ㄥ垎 -->
 <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/echarts/echarts.min.js" charset="utf-8"></script>
@@ -255,6 +272,7 @@
 <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
 
 <script>
+    f()
     layui.use(['layer', 'element'], function () {
         var $ = layui.jquery;
         var layer = layui.layer;
@@ -496,6 +514,20 @@
         });
 
     });
+
+    function f() {
+        let token = localStorage.getItem("token");
+        layui.jquery.ajax({
+            url: baseUrl + "/dashboard/popup/auth",
+            data:{token : token},
+            method: 'GET',
+            success: function (res) {
+                if (res.code === 200) {
+                    showPopup(res.msg)
+                }
+            }
+        })
+    }
 </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1