文件
mashangyoujiu/Application/Retail/View/Mark/mark_set.html

130 行
5.7 KiB
HTML
可执行文件

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<!DOCTYPE html>
<html>
<!--[1.0.92]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>服务商管理后台</title>
<link href="__PUBLIC__/user/css/base.css" rel="stylesheet">
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
<script src="__PUBLIC__/layui/layui.js"></script>
<link href="__PUBLIC__/user/css/reset.css" rel="stylesheet">
<style>
.form-control {
margin-bottom: 20px;
background-color: #fff;
height: 34px;
line-height: 30px;
width: 100px;
border: 1px solid #ddd;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
text-indent: 1em;
color: #666;
font-size: 12px;
}
.box-content2 input[type=text]{
width:350px;
}
.box-content2 span{
width:150px;
}
.Business_tb1 tr td{
border-right: none;
}
.Business_tb1 tr th{
border-right: none;
}
a {
color: #2fa0ec;
text-decoration: none;
outline: none;
}
.box-content2{
padding-bottom: 0;
}
.box-content2 span.ng-binding{
display: inline-block;
width:80%;
margin-left: 10%;
text-align: left;
}
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini" style="cursor: pointer;">
<div class="box-content2">
<form id="addform" class="mi-form" novalidate="novalidate" >
<input type="hidden" name="id" value="{$arr.id}" id="myid">
<input type="hidden" value="{$arr.type}" id="mytype">
<div style="width: 100%">
<input data-val="true" type="text" value="{$arr['msg']}" name="" id="mymark" class="myinput" style="width: 80%;margin-left: 10%">
<if condition="$arr['type'] eq 'vip_mark' ">
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:“会员卡办理提醒”,编号为:“OPENTM400566501
”的模板。</span>
<elseif condition="$arr['type'] eq 'recharge_mark'"/>
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”充值通知“,编号为:“TM00006”的模板。</span>
<elseif condition="$arr['type'] eq 'pay_mark'"/>
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”消费通知
“,编号为:“TM00005”的模板。</span>
<elseif condition="$arr['type'] eq 'integral_mark'"/>
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”积分变动提醒
“,编号为:“OPENTM207509450”的模板。</span>
<elseif condition="$arr['type'] eq 'grade_mark'"/>
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”会员级别变更提醒“,编号为:“TM00891”的模板</span>
<elseif condition="$arr['type'] eq 'vipadd_mark'"/>
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”业务生效通知“,编号为:“OPENTM204855081”的模板</span>
<elseif condition="$arr['type'] eq 'launchcoupon_mark'"/>
<span class="help-block ng-binding">请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”业务生效通知“,编号为:“OPENTM204855081”的模板</span>
</if>
</div>
<center class="form-actions">
<input type="button" class="submit" value="保 存">
<a href="javascript:;" class="historyback" >关闭</a>
</center>
</form>
</div>
<script>
var layer;
layui.use(['layer'],function () {
layer = layui.layer;
})
var ischange = false;
$('.myinput').on('change',function () {
ischange = true;
})
$('.submit').click(function () {
if(!ischange){
layer.msg('未做任何改变',{icon:3,time:1000});
}else{
var id = $('#myid').val();
var type = $('#mytype').val();
var msg = $('#mymark').val();
$.ajax({
url: "{:U('/Retail/Mark/mark_set')}",
type: 'POST',
data: {
id:id,
type:type,
msg:msg
},
success: function (data) {
if (data.status==1) {
layer.msg(data.msg,{icon:1,time: 2000}, function () {
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.close(index); //再执行关闭
})
}else {
layer.msg(data.msg,{icon:2,time:1000});
}
}
})
}
})
$('.historyback').click(function () {
top.layer.closeAll();
})
</script>
</body>
</html>