mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-06 04:59:49 +08:00
【优化】优化页面设计,增加【常用前端链接】弹窗,防止出现1380,1440分辨率宽下错位的问题。
This commit is contained in:
@@ -319,15 +319,16 @@ template {
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.urlBox {
|
.urlBox {
|
||||||
width: 300px;
|
width: 800px;
|
||||||
border: 1px solid #e9e9e9;
|
border: 1px solid #e9e9e9;
|
||||||
box-shadow: 0 3px 10px #dcdcdc;
|
box-shadow: 0 3px 10px #dcdcdc;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.urlBox p {
|
.urlBox p {
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
.recycle {
|
.recycle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -644,8 +645,9 @@ template {
|
|||||||
}
|
}
|
||||||
.savePageBtn {
|
.savePageBtn {
|
||||||
padding: 10px 13px;
|
padding: 10px 13px;
|
||||||
text-align: right;
|
|
||||||
border-top: 1px dotted #ddd;
|
border-top: 1px dotted #ddd;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.lay-special {
|
.lay-special {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ template { display: none; }
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.urlBox { width: 300px; border: 1px solid #e9e9e9; box-shadow: 0 3px 10px #dcdcdc; position: relative; padding: 10px;
|
.urlBox { width: 800px; border: 1px solid #e9e9e9; box-shadow: 0 3px 10px #dcdcdc; position: relative; padding: 10px;
|
||||||
p { font-size: 12px; word-break: break-all; }
|
p { font-size: 13px; word-break: break-all; line-height: 30px; }
|
||||||
}
|
}
|
||||||
.recycle { position: absolute; top: 43px; right: 26px;
|
.recycle { position: absolute; top: 43px; right: 26px;
|
||||||
ul { position: relative;
|
ul { position: relative;
|
||||||
@@ -170,7 +170,7 @@ template { display: none; }
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.savePageBtn { padding: 10px 13px; text-align: right; border-top: 1px dotted #ddd; }
|
.savePageBtn { padding: 10px 13px; border-top: 1px dotted #ddd; display: flex; justify-content: space-between; }
|
||||||
.lay-special { height: 30px; align-items: center;
|
.lay-special { height: 30px; align-items: center;
|
||||||
.special-left { width: 70px; padding: 5px 10px;
|
.special-left { width: 70px; padding: 5px 10px;
|
||||||
img { width: 100%; }
|
img { width: 100%; }
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1385,12 +1385,34 @@ new Vue({
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
var that = this;
|
var that = this;
|
||||||
layui.use(['admin', 'form', 'coreHelper'],
|
layui.use(['admin', 'form', 'coreHelper', 'layer', 'util'],
|
||||||
function () {
|
function () {
|
||||||
var $ = layui.$
|
var $ = layui.$
|
||||||
, form = layui.form
|
, form = layui.form
|
||||||
, admin = layui.admin
|
, admin = layui.admin
|
||||||
|
, layer = layui.layer
|
||||||
|
, util = layui.util
|
||||||
, coreHelper = layui.coreHelper;
|
, coreHelper = layui.coreHelper;
|
||||||
|
|
||||||
|
//处理属性 为 lay-active 的所有元素事件
|
||||||
|
util.event('lay-active', {
|
||||||
|
commonUrl: function (othis) {
|
||||||
|
layer.open({
|
||||||
|
type: 1,
|
||||||
|
shade: 0,
|
||||||
|
shadeClose: true,
|
||||||
|
closeBtn: 2,
|
||||||
|
skin: 'demo-class',
|
||||||
|
title: '常用前端地址',
|
||||||
|
//area: ['500px', '80%'],
|
||||||
|
cancel: function () {
|
||||||
|
$('#urlBox').hide();
|
||||||
|
},
|
||||||
|
content: $('#urlBox')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
form.on('submit(LAY-app-CoreCmsPages-EditForm-submit)',
|
form.on('submit(LAY-app-CoreCmsPages-EditForm-submit)',
|
||||||
function (data) {
|
function (data) {
|
||||||
var field = data.field; //获取提交的字段
|
var field = data.field; //获取提交的字段
|
||||||
|
|||||||
@@ -110,6 +110,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="savePageBtn">
|
<div class="savePageBtn">
|
||||||
|
<button class="layui-btn layui-btn-normal layui-btn-sm" lay-active="commonUrl">常用前端地址</button>
|
||||||
<button class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="LAY-app-CoreCmsPages-EditForm-submit" id="LAY-app-CoreCmsPages-EditForm-submit">保存页面</button>
|
<button class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="LAY-app-CoreCmsPages-EditForm-submit" id="LAY-app-CoreCmsPages-EditForm-submit">保存页面</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -124,7 +125,12 @@
|
|||||||
<div class="edit-body">
|
<div class="edit-body">
|
||||||
<layout-config ref="config"></layout-config>
|
<layout-config ref="config"></layout-config>
|
||||||
</div>
|
</div>
|
||||||
<div class="urlBox">
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="urlBox" id="urlBox" style="display: none;">
|
||||||
<h4>常用前端地址:</h4>
|
<h4>常用前端地址:</h4>
|
||||||
<p>前端首页:/pages/index/default/default</p>
|
<p>前端首页:/pages/index/default/default</p>
|
||||||
<p>购 物 车:/pages/index/cart/cart</p>
|
<p>购 物 车:/pages/index/cart/cart</p>
|
||||||
@@ -151,9 +157,8 @@
|
|||||||
<p>接龙详情:/pages/activity/solitaire/solitaireDetails/solitaireDetails?id=接龙序列</p>
|
<p>接龙详情:/pages/activity/solitaire/solitaireDetails/solitaireDetails?id=接龙序列</p>
|
||||||
<p>日历签到:/pages/activity/checkIn/checkIn/checkIn</p>
|
<p>日历签到:/pages/activity/checkIn/checkIn/checkIn</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template id="layout">
|
<template id="layout">
|
||||||
<div class="layout-container">
|
<div class="layout-container">
|
||||||
<draggable v-model="pageData" :options="{group: { name: 'widget'},sort: true,ghostClass: 'ghost',dragClass:'dragItem',
|
<draggable v-model="pageData" :options="{group: { name: 'widget'},sort: true,ghostClass: 'ghost',dragClass:'dragItem',
|
||||||
|
|||||||
Reference in New Issue
Block a user