107 行
3.3 KiB
HTML
可执行文件
107 行
3.3 KiB
HTML
可执行文件
<!--[1.6.38]-->
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/goodsList.css"/>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css"/>
|
|
<style>
|
|
strong {
|
|
color: orangered;
|
|
}
|
|
|
|
.layui-input-inline {
|
|
width: 258px !important;
|
|
}
|
|
|
|
input[type=number] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.layui-form-label {
|
|
width: 200px;
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
input[type=number]::-webkit-inner-spin-button,
|
|
input[type=number]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
|
|
</style>
|
|
<div class="goodsBox">
|
|
<div class="goods_title">
|
|
<div class="goods_title_inner">
|
|
收银机设置
|
|
</div>
|
|
</div>
|
|
<div class="goods_edit">
|
|
<if condition="$authArr['model'] eq true">
|
|
<button class="layui-btn" id="syncModel" type="button" style="margin-left: 20px;">统一设置收银机模板</button>
|
|
</if>
|
|
<if condition="$authArr['screen'] eq true">
|
|
<button class="layui-btn" id="screen" type="button" style="margin-left: 20px;">收银机副屏设置</button>
|
|
</if>
|
|
<if condition="$authArr['self_cash'] eq true">
|
|
<button class="layui-btn" id="self" type="button" style="margin-left: 20px;">自助收银轮播设置</button>
|
|
</if>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
layui.use(['layer', 'form'], function () {
|
|
var layer = layui.layer;
|
|
var form = layui.form;
|
|
|
|
form.on('switch(nearby_status)', function (data) {
|
|
if (data.elem.checked == true) {
|
|
var nearby_status = 1;
|
|
} else if (data.elem.checked == false) {
|
|
var nearby_status = 2;
|
|
}
|
|
$.ajax({
|
|
url: "{:U('saveNearby')}",
|
|
type: 'post',
|
|
data: {nearby_status: nearby_status},
|
|
success: function (res) {
|
|
if (res.status == 1) {
|
|
layer.msg(res.msg, {icon: 1});
|
|
} else {
|
|
layer.msg(res.msg, {icon: 2});
|
|
}
|
|
}
|
|
})
|
|
});
|
|
|
|
$('#syncModel').click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
content: "{:U('model')}?type=1",
|
|
title: "统一设置-收银机模板",
|
|
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
|
shade: 0,
|
|
offset: 'rb',
|
|
btnAlign: 'c'
|
|
})
|
|
})
|
|
$('#screen').click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
content: "{:U('screen')}",
|
|
title: "统一设置-收银机副屏",
|
|
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
|
shade: 0,
|
|
offset: 'rb',
|
|
btnAlign: 'c'
|
|
})
|
|
})
|
|
$('#self').click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
content: "{:U('self_cash')}",
|
|
title: "自助收银轮播图",
|
|
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
|
shade: 0,
|
|
offset: 'rb',
|
|
btnAlign: 'c'
|
|
})
|
|
})
|
|
});
|
|
</script> |