瀏覽代碼

门户网站弹框,取消按钮修改

lixing 2 年之前
父節點
當前提交
76dbc76351

+ 18 - 2
spring-cloud/server-page/src/main/resources/static/mh2/css/tc.css

@@ -63,8 +63,11 @@ body.modal-active {
 }
 
 #modal-container .modal-background .modal {
-    background: rgba(27, 42, 75, 0.4);
-    padding: 50px;
+    background: url('../images/bj.png') no-repeat;
+    background-position: 0% 0%;
+    background-size: 100% 100%;
+    /* background: rgba(27, 42, 75, 0.4); */
+    padding: 200px 110px;
     display: inline-block;
     border-radius: 15px;
     font-weight: 300;
@@ -169,4 +172,17 @@ body.modal-active {
     100% {
         transform: scale(0);
     }
+}
+
+
+/* 取消 */
+
+.cancel {
+    background: url('../images/close.png') no-repeat;
+    background-size: 100% 100%;
+    position: absolute;
+    right: 2%;
+    top: 5%;
+    width: 300px;
+    height: 300px;
 }

+ 1 - 0
spring-cloud/server-page/src/main/resources/static/mh2/css/totalplatform.css

@@ -11,6 +11,7 @@ p {
 .plateform-box {
     width: 100%;
     height: 100%;
+    /* 必须超过7680 2016 100%根据父亲盒子高宽来的 */
     min-width: 7680px;
     min-height: 2016px;
     /* background-color: #000; */

+ 11 - 7
spring-cloud/server-page/src/main/resources/static/mh2/js/init.js

@@ -1,17 +1,20 @@
-// const GATEWAY_URL = "http://23.37.100.87:8084";
+// 内务网ip地址
+const GATEWAY_URL = "http://23.37.100.87:8084";
+// 服务器ip地址
 // const GATEWAY_URL = "http://23.37.100.80:8084";
-const GATEWAY_URL = "http://192.168.0.100:8084"
+// const GATEWAY_URL = "http://192.168.0.100:8084"
 const PAGE_BASIC = GATEWAY_URL + "/basic";
 let sceneThemes;
 $(function() {
     let datas = get(PAGE_BASIC + '/apiNoProcess/scence/getAllSceneAndThemeAndSystem');
-    console.log(datas);
+    // console.log(datas);
+
     // 场景主题
     const scenes = datas.scenes;
     sceneThemes = datas.sceneThemes;
     initSences(scenes);
     initThemes(sceneThemes);
-    initAncment(); //初始化通知公告
+    // initAncment(); //初始化通知公告
 
 
 
@@ -33,7 +36,6 @@ $(function() {
         $('.footer-box .item').css("opacity", 1);
     }, 3000)
 
-
     $('.cards-box').on('click', '.item', function() {
         const sceneId = parseInt($(this).data("id"));
         let newArr = [];
@@ -50,6 +52,7 @@ $(function() {
 \t      <h2>${item.themeName}</h2>
 \t    </div>`
             })
+            str += `<div class="cancel"></div>`
             $(".modal-background").empty().append(str);
             $('#modal-container').removeAttr('class').addClass('Unfolding');
             $('body').addClass('modal-active');
@@ -60,7 +63,7 @@ $(function() {
             alert("该主题未添加子场景")
         }
 
-        console.log(newArr)
+        // console.log(newArr)
 
         // 关闭通知公告
         $('.setting-menu').css("display", "none");
@@ -122,12 +125,13 @@ function initSences(scenes) {
 
 }
 // 初始化主题
+// <img src="${Boolean(item.themeIconPath) ? PAGE_BASIC + item.themeIconPath : './images/ssgy_icon.png'}" alt="">
 function initThemes(themes) {
     let str = '';
     themes.forEach(item => {
         if (item.quickNavigation == 1) {
             str += `<div class="item" onclick="location.href='${item.url}'">
-					<img src="${Boolean(item.themeIconPath) ? PAGE_BASIC + item.themeIconPath : './images/ssgy_icon.png'}" alt="">
+					<img src="${'./images/ssgy_icon.png'}" alt="">
 					<p class="name">${item.themeName}</p>
 				</div>`
         }

+ 1 - 0
spring-cloud/server-page/src/main/resources/static/mh2/totalplatform.html

@@ -181,6 +181,7 @@
                 <span>来源:城市园林绿化管理处</span>
             </div>
             <div class="not-text">
+
                 <p>5月9日,市城市管理局组织召开国家生态园林城市创建工作专题会,市城市管理局党组成员石继渝,局相关处室、直属单位负责人,中心城区城市管理局分管负责人、绿化科科长参加会议。</p>
                 <p>会议听取市园林规划院相关负责人关于中心城区绿地规划,中心城区建成区重要指标现状情况等两方面的汇报,就创建规划指标、建设任务分解进行讨论,并对下一步创建重点工作进行安排部署。</p>
                 <p>会议强调:一是摸清底数,补齐短板;二是落实创建生态园林城市绿化项目;三是加大力度,全面推进创建工作。</p>