|
@@ -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://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";
|
|
const PAGE_BASIC = GATEWAY_URL + "/basic";
|
|
let sceneThemes;
|
|
let sceneThemes;
|
|
$(function() {
|
|
$(function() {
|
|
let datas = get(PAGE_BASIC + '/apiNoProcess/scence/getAllSceneAndThemeAndSystem');
|
|
let datas = get(PAGE_BASIC + '/apiNoProcess/scence/getAllSceneAndThemeAndSystem');
|
|
- console.log(datas);
|
|
|
|
|
|
+ // console.log(datas);
|
|
|
|
+
|
|
// 场景主题
|
|
// 场景主题
|
|
const scenes = datas.scenes;
|
|
const scenes = datas.scenes;
|
|
sceneThemes = datas.sceneThemes;
|
|
sceneThemes = datas.sceneThemes;
|
|
initSences(scenes);
|
|
initSences(scenes);
|
|
initThemes(sceneThemes);
|
|
initThemes(sceneThemes);
|
|
- initAncment(); //初始化通知公告
|
|
|
|
|
|
+ // initAncment(); //初始化通知公告
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -33,7 +36,6 @@ $(function() {
|
|
$('.footer-box .item').css("opacity", 1);
|
|
$('.footer-box .item').css("opacity", 1);
|
|
}, 3000)
|
|
}, 3000)
|
|
|
|
|
|
-
|
|
|
|
$('.cards-box').on('click', '.item', function() {
|
|
$('.cards-box').on('click', '.item', function() {
|
|
const sceneId = parseInt($(this).data("id"));
|
|
const sceneId = parseInt($(this).data("id"));
|
|
let newArr = [];
|
|
let newArr = [];
|
|
@@ -50,6 +52,7 @@ $(function() {
|
|
\t <h2>${item.themeName}</h2>
|
|
\t <h2>${item.themeName}</h2>
|
|
\t </div>`
|
|
\t </div>`
|
|
})
|
|
})
|
|
|
|
+ str += `<div class="cancel"></div>`
|
|
$(".modal-background").empty().append(str);
|
|
$(".modal-background").empty().append(str);
|
|
$('#modal-container').removeAttr('class').addClass('Unfolding');
|
|
$('#modal-container').removeAttr('class').addClass('Unfolding');
|
|
$('body').addClass('modal-active');
|
|
$('body').addClass('modal-active');
|
|
@@ -60,7 +63,7 @@ $(function() {
|
|
alert("该主题未添加子场景")
|
|
alert("该主题未添加子场景")
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(newArr)
|
|
|
|
|
|
+ // console.log(newArr)
|
|
|
|
|
|
// 关闭通知公告
|
|
// 关闭通知公告
|
|
$('.setting-menu').css("display", "none");
|
|
$('.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) {
|
|
function initThemes(themes) {
|
|
let str = '';
|
|
let str = '';
|
|
themes.forEach(item => {
|
|
themes.forEach(item => {
|
|
if (item.quickNavigation == 1) {
|
|
if (item.quickNavigation == 1) {
|
|
str += `<div class="item" onclick="location.href='${item.url}'">
|
|
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>
|
|
<p class="name">${item.themeName}</p>
|
|
</div>`
|
|
</div>`
|
|
}
|
|
}
|