89 lines
3.3 KiB
HTML
89 lines
3.3 KiB
HTML
{block name="resources"}
|
||
<style type="text/css">
|
||
.refresh-time {color: #B2B2B2;margin-top: 10px;}
|
||
.form-row p {margin:8px 0 0 100px;font-size: 12px;color: #979897;}
|
||
.all-box-item{width:100%;background: #FFFFFF;height: 160px;}
|
||
.all-shop-information{width: 100%;background: white;padding: 15px;box-sizing: border-box;margin-top: 15px;margin-bottom: 30px;}
|
||
.all-shop-information .all-top{display: flex;align-items: center;justify-content: space-between;}
|
||
.all-shop-information .all-top a{font-size: 14px;margin-left: 10px;}
|
||
.all-shop-information .all-top .edit{cursor: pointer;}
|
||
.all-shop-information .all-item{display: flex;align-items: center;}
|
||
.all-shop-information .all-item{margin-bottom: 18px;}
|
||
.all-shop-information .all-item p{width: 140px;text-align: right;font-size: 14px;margin-right: 10px;color: #333;}
|
||
.all-box-item .reason-growth{margin-left: 10px;color: #999;cursor: pointer;}
|
||
.tips-wrap .layui-colla-content li{line-height: 20px;font-size: 13px;}
|
||
.tips-wrap .layui-colla-title{line-height: 24px;height: 28px;font-size: 15px;}
|
||
</style>
|
||
{/block}
|
||
{block name="main"}
|
||
<div class="layui-form all-box-item all-shop-information">
|
||
<div class="all-top">
|
||
<div class="title">收银端设置</div>
|
||
<span class="edit text-color" onclick="editOpenCashier()">编辑</span>
|
||
</div>
|
||
<div class="all-content">
|
||
<div class="all-item">
|
||
<p>部署方式:</p>
|
||
<a>默认部署</a>
|
||
</div>
|
||
<div class="all-item">
|
||
<p>收银端域名:</p>
|
||
<a class="text-color" href="{$root_url}/cashregister" target="_blank">{$root_url}/cashregister</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/block}
|
||
|
||
{block name="script"}
|
||
<script type="text/html" id="contentCashier">
|
||
<div class="layui-form form-wrap">
|
||
<div class="deploy-way default">
|
||
<div class="layui-form-item web-url">
|
||
<label class="layui-form-label">域名地址:</label>
|
||
<div class="layui-input-block">
|
||
<a href="{$root_url}/cashregister" target="_blank" class="text-color">{$root_url}/cashregister</a>
|
||
</div>
|
||
</div>
|
||
<div class="form-row" style="margin: 0;">
|
||
<label class="layui-form-label">部署操作:</label>
|
||
<button class="layui-btn js-save" onclick="refreshCashier()">重新编译</button>
|
||
<button class="layui-btn" onclick="window.open(ns.url('cashier://shop/index/downloadcashier'));">源码包下载</button>
|
||
<p>以下几种情况,需重新编译</p>
|
||
<p>在线升级后,需点击重新编译</p>
|
||
<p>SSL证书变更后,由于http协议变更,则需点击重新编译</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</script>
|
||
<script type="text/javascript">
|
||
function refreshCashier(){
|
||
if (repeat_flag) return false;
|
||
repeat_flag = true;
|
||
$.ajax({
|
||
url: ns.url("cashier://shop/index/refreshcashier"),
|
||
dataType: 'JSON',
|
||
type: 'POST',
|
||
success: function(res){
|
||
repeat_flag = false;
|
||
layer.msg(res.message);
|
||
}
|
||
});
|
||
}
|
||
|
||
//打开手机端编辑弹窗
|
||
function editOpenCashier(){
|
||
CashierPopup = layer.open({
|
||
title:'收银端设置',
|
||
type:1,
|
||
area: 'auto',
|
||
maxWidth:700,
|
||
maxHeight:540,
|
||
content:$('#contentCashier').html(),
|
||
success:function(res){
|
||
form.render();
|
||
}
|
||
|
||
})
|
||
}
|
||
</script>
|
||
{/block} |