init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,149 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!--[1.0.87]-->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css" />
|
||||
<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>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 10px 15px;
|
||||
}
|
||||
table {
|
||||
border: 1px solid #f1f1f1;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.funalert{
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
}
|
||||
.empty{
|
||||
line-height: 36px;
|
||||
color: #999;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="funalert">
|
||||
<form class="layui-form" action="">
|
||||
<input type="hidden" id="id" value="{$merchant['id']}">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width: 140px">可开门店数量:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="number" name="" value="{$merchant['storenum']}" required lay-verify="required" placeholder="请输入可开门店数量" class="layui-input" id="storenum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" pane="ww">
|
||||
<label class="layui-form-label" style="width: 140px">套餐使用权</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="checkbox" class="xcx" value="2" name="like1[write]" lay-skin="primary" title="小程序"<if condition="$merchant['juris'] eq 2">checked</if>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" pane="ee">
|
||||
<label class="layui-form-label" style="width: 140px;margin-bottom: 50px;">功能套餐</label>
|
||||
<div class="layui-input-block" id="table1">
|
||||
<volist name="plugs" id="p">
|
||||
<input type="checkbox" class="set" name="ddd[write]" value="{$p['id']}" lay-skin="primary" title="{$p['plug_name']}" <if condition="$p['m_status'] AND ($p['m_status'] eq 1)">checked</if>>
|
||||
</volist>
|
||||
</div>
|
||||
</div>
|
||||
<!--<volist name="list" id="item">
|
||||
<div class="layui-form-item" pane="ee">
|
||||
<label class="layui-form-label" style="width: 140px;">{$item['class_name']}</label>
|
||||
<div class="layui-input-block" id="table1" style="margin-left: 140px;">
|
||||
<volist name="item['list']" id="p" empty="$empty">
|
||||
<input type="checkbox" class="set" name="ddd[write]" value="{$p['id']}" lay-skin="primary" title="{$p['plug_name']}" <if condition="$p['m_status'] AND ($p['m_status'] eq 1)">checked</if>>
|
||||
</volist>
|
||||
</div>
|
||||
</div>
|
||||
</volist>-->
|
||||
</form>
|
||||
<div style="display: flex;justify-content: flex-end;box-sizing: border-box;padding: 30px 0 0 0">
|
||||
<button class="layui-btn layui-btn-sm " id="sure">确定</button>
|
||||
<button class="layui-btn layui-btn-primary layui-btn-sm" id="cancel">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="__PUBLIC__/jquery/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.use(['form'], function() {
|
||||
var form = layui.form;
|
||||
//功能套餐
|
||||
$('#sure').click(function(){
|
||||
//选中功能套餐
|
||||
var set = [];
|
||||
//没选择的功能套餐
|
||||
var setnot = [];
|
||||
//小程序权限
|
||||
var xcx = [];
|
||||
var storenum = $('#storenum').val();
|
||||
if(!storenum || storenum<0)
|
||||
{
|
||||
layer.msg("请输入可创建门店数量",{time:1500})
|
||||
return false
|
||||
}
|
||||
//小程序权限
|
||||
var we = document.getElementsByClassName("xcx");
|
||||
for(var i=0;i<we.length;i++)
|
||||
{
|
||||
if(we[i].checked == true)
|
||||
{
|
||||
xcx.push(we[i].value);
|
||||
}
|
||||
}
|
||||
//功能套餐
|
||||
var ch = document.getElementsByClassName("set");
|
||||
for(var i=0;i<ch.length;i++)
|
||||
{
|
||||
if(ch[i].checked == true)
|
||||
{
|
||||
set.push(ch[i].value);
|
||||
}else if(ch[i].checked == false)
|
||||
{
|
||||
setnot.push(ch[i].value);
|
||||
}
|
||||
}
|
||||
//商户id
|
||||
var id = $('#id').val();
|
||||
$.ajax({
|
||||
url:"{:U('mealset')}",
|
||||
type:"post",
|
||||
data:{storenum:storenum,set:set,xcx:xcx,id:id,setnot:setnot},
|
||||
success:function(res)
|
||||
{
|
||||
if(res.status == 1)
|
||||
{
|
||||
|
||||
layer.msg(res.msg,{time:1500},function(){
|
||||
var index = parent.layer.getFrameIndex(window.name)
|
||||
parent.layer.close(index)
|
||||
})
|
||||
}else
|
||||
{
|
||||
layer.msg(res.msg,{time:1500},function(){
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
$('#cancel').click(function(){
|
||||
var index = parent.layer.getFrameIndex(window.name)
|
||||
parent.layer.close(index)
|
||||
});
|
||||
})
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户