记得上下班打卡 | git大法好,push需谨慎

Commit d7561000 authored by dongchun's avatar dongchun

修改首页页面布局排版

parent ed11a382
......@@ -179,6 +179,15 @@
} else {
}
promiseMethods('/front-index/list','post').then(res=>{
console.log(res, 'resp')
let { data } = res;
data.forEach(item => {
if (item.moudleName == "moFang") {
$("#sorting").val(item.indexs)
}
})
})
promiseMethods('/goblin-front-cube/list', 'post').then(res => {
let { data } = res;
if (data && data.length > 0) {
......@@ -411,10 +420,9 @@
"status": 0
};
return promiseMethods('/front-index/update', 'post', JSON.stringify(data), 'application/json')
}).then(() => {
}).then((res) => {
layer.msg("保存成功!")
$.modal.close();
refreshItem()
$.operate.successCallback(res);
})
}
......
......@@ -328,8 +328,7 @@
console.log(res, 'res')
if (res.code == 0) {
layer.msg('保存成功!')
$.modal.close();
refreshItem()
$.operate.successCallback(res);
}
})
}
......
......@@ -14,7 +14,13 @@
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
align-items: flex-start;
height: 100vh;
position: relative;
}
.gitHot {
position: absolute;
bottom: 40px;
}
.left_title, .right_title {
margin-bottom: 12px;
......@@ -147,11 +153,11 @@
<div class="function_btn">
<button type="button" class="btn btn-primary" onclick="goArea(1)">金刚位</button>
<button type="button" class="btn btn-warning" onclick="goArea(2)">活动banner</button>
<button type="button" class="btn btn-info" onclick="goArea(3)">限时秒杀</button>
<button type="button" class="btn btn-success" onclick="goArea(4)">魔方</button>
<button type="button" class="btn" onclick="goArea(7)">精选商品</button>
<button type="button" class="btn btn-info" onclick="goArea(7)">精选商品</button>
<!-- <button type="button" class="btn" disabled onclick="goArea(3)">限时秒杀</button> -->
</div>
<button type="button" class="btn" onclick="git()">上线</button>
<button type="button" class="btn btn-danger gitHot" onclick="git()">上线</button>
</div>
<div class="right_content">
<div class="right_title">
......@@ -209,26 +215,26 @@
switch(num) {
case 1:
// $.modal.open('添加用户', prefix2 + "/form", '900', '320', callback);
$.modal.open('金刚位', prefix2 + "/kingArea?id=" + 1212)
$.modal.open('金刚位', prefix2 + "/kingArea?id=" + 1212,900,800, cancel)
break;
case 5:
$.modal.open('商品搜索', prefix2 + "/searchStore?id=" + 1212)
$.modal.open('商品搜索', prefix2 + "/searchStore?id=" + 1212,900,800, cancel)
// $.modal.openTab('商品搜索', prefix2 + "/searchStore?id=" + 1212)
break;
case 6:
$.modal.open('顶部banner', prefix2 + "/topBanner?id=" + num)
$.modal.open('顶部banner', prefix2 + "/topBanner?id=" + num,900,800, cancel)
// $.modal.openTab('顶部banner', prefix2 + "/topBanner?id=" + num)
break;
case 2:
$.modal.open('活动banner', prefix2 + "/topBanner?id=" + num)
$.modal.open('活动banner', prefix2 + "/topBanner?id=" + num,900,800, cancel)
// $.modal.openTab('活动banner', prefix2 + "/topBanner?id=" + num)
break;
case 4:
$.modal.open('魔方位', prefix2 + "/RubikArea?id=" + num)
$.modal.open('魔方位', prefix2 + "/RubikArea?id=" + num,900,800, cancel)
// $.modal.openTab('魔方位', prefix2 + "/RubikArea?id=" + num)
break;
case 7:
$.modal.open('精选商品', prefix2 + "/carefullyGoods?id=" + num)
$.modal.open('精选商品', prefix2 + "/carefullyGoods?id=" + num,900,800, cancel)
// $.modal.openTab('精选商品', prefix2 + "/carefullyGoods?id=" + num)
break;
}
......@@ -251,6 +257,9 @@
}
})
}
function cancel () {
modalPx()
}
function git () {
$.ajax({
type: 'post',
......
......@@ -168,6 +168,15 @@
} else {
}
promiseMethods('/front-index/list','post').then(res=>{
console.log(res, 'resp')
let { data } = res;
data.forEach(item => {
if (item.moudleName == "jinGangWei") {
$("#sorting").val(item.indexs)
}
})
})
showDetail (1)
})
function showDetail (numType) {
......@@ -429,8 +438,7 @@
}).then((res)=> {
layer.msg('保存成功!')
// $.modal.closeTab();
$.modal.close();
refreshItem()
$.operate.successCallback(res);
})
}
function common (num) {
......
......@@ -184,7 +184,7 @@
console.log(data, 'data222')
promiseMethods('/hotWord/updateOrCreate', 'post', JSON.stringify(data), 'application/json').then(res => {
layer.msg('创建成功!')
$.modal.close();
// $.modal.close();
$.operate.successCallback(res);
})
// refreshItem()
......
......@@ -171,6 +171,15 @@
} else {
}
promiseMethods('/front-index/list','post').then(res=>{
console.log(res, 'resp')
let { data } = res;
data.forEach(item => {
if (item.moudleName == "huDongBanner") {
$("#sorting").val(item.indexs)
}
})
})
let name = 'id';
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
......@@ -387,8 +396,7 @@
}
}).then(res => {
layer.msg("保存成功!")
$.modal.close();
refreshItem()
$.operate.successCallback(res);
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment