init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,108 @@
|
||||
<!--[1.5.22]-->
|
||||
<style>
|
||||
.layui-input {
|
||||
display: block;
|
||||
width: 300px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.layui-form-label {
|
||||
float: left;
|
||||
display: block;
|
||||
width: 105px;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
text-align: right;
|
||||
padding: 9px 15px;
|
||||
}
|
||||
|
||||
.layui-btn {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
line-height: 38px;
|
||||
padding: 0 18px;
|
||||
background-color: #1c90f3;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
border: none;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
<form class="layui-form">
|
||||
<div style="color: #999;font-size: 14px;text-indent: 134px">该配置是为用户微信扫码登录后台而设置</div>
|
||||
<div class="layui-form-item" style="margin-top: 20px;">
|
||||
<label class="layui-form-label">公众号名称</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="official_name" value="{$data['official_name'] ? $data['official_name'] : '' }"
|
||||
required placeholder="请输入公众号名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">公众号appID</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="appid" value="{$data['appid'] ? $data['appid'] : '' }" placeholder="公众号appID"
|
||||
autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">公众号appsecret</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="appsecret" value="{$data['appsecret'] ? $data['appsecret'] : '' }"
|
||||
placeholder="公众号appsecret" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"></label>
|
||||
<div class="layui-input-block">
|
||||
<if condition="$authArr['update'] eq true">
|
||||
<button class="layui-btn" type="button" id="submit">提交</button>
|
||||
</if>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
layui.use(['layer', 'form'], function () {
|
||||
var layer = layui.layer;
|
||||
var form = layui.form;
|
||||
var id = "{$data['id']}";
|
||||
|
||||
$('#submit').click(function () {
|
||||
var official_name = $("input[name=official_name]").val();
|
||||
if (!official_name) {
|
||||
layer.msg('请输入公众号名称', {time: 1200, icon: 7})
|
||||
return false;
|
||||
}
|
||||
var appid = $("input[name=appid]").val();
|
||||
if (!appid) {
|
||||
layer.msg('公众号appID', {time: 1200, icon: 7})
|
||||
return false;
|
||||
}
|
||||
var appsecret = $("input[name=appsecret]").val();
|
||||
if (!appsecret) {
|
||||
layer.msg('公众号appsecret', {time: 1200, icon: 7})
|
||||
return false;
|
||||
}
|
||||
id = id ? id : 0;
|
||||
$.ajax({
|
||||
url: "{:U('update')}",
|
||||
type: "post",
|
||||
data: {official_name: official_name, appid: appid, appsecret: appsecret, id: id},
|
||||
success: function (res) {
|
||||
if (res.status == 1) {
|
||||
layer.msg(res.msg, {time: 1000, icon: 1});
|
||||
return false;
|
||||
} else {
|
||||
layer.msg(res.msg, {time: 1000, icon: 7});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
在新工单中引用
屏蔽一个用户