You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
4.9 KiB
111 lines
4.9 KiB
<?php /*a:2:{s:80:"D:\waibao\ahbcqz\server\app\admin\view\setting\marketing_config\order_award.html";i:1679478874;s:51:"D:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
|
|
<style>
|
|
.layui-form-label {
|
|
width: 120px;
|
|
}
|
|
.layui-input-block {
|
|
margin-left: 150px;
|
|
}
|
|
</style>
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
|
|
<div class="layui-colla-item">
|
|
<h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
|
|
<div class="layui-colla-content layui-show">
|
|
<p>*设置会员下单的积分奖励</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 表单区域 -->
|
|
<div class="layui-form" style="margin-top: 15px;">
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label">消费赠送积分:</lable>
|
|
<div class="layui-input-block" style="width:300px;">
|
|
<input type="checkbox" name="open_award" lay-skin="switch" lay-text="ON|OFF" <?php if($open_award == 1): ?>checked<?php endif; ?>>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label">赠送积分事件:</lable>
|
|
<div class="layui-input-block" style="width:300px;">
|
|
<select name="award_event" lay-verify="custom_required" verify-msg="请选择">
|
|
<option value="">请选择</option>
|
|
<?php foreach($award_event_lists as $key=>$val): ?>
|
|
<option value="<?php echo htmlentities($key); ?>" <?php if($award_event == $key): ?>selected<?php endif; ?>><?php echo htmlentities($val); ?></option>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label">赠送积分比率:</lable>
|
|
<div class="layui-input-block" style="width:300px;">
|
|
<input type="number" name="award_ratio" class="layui-input" style="display: inline-block;width: 100px" value="<?php echo htmlentities($award_ratio); ?>">
|
|
<span style="">%</span>
|
|
<div class="layui-form-mid layui-word-aux" style="float: unset">比率必须为整数,例:当设置为100%时,100元=100积分</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<lable class="layui-form-label"></lable>
|
|
<div class="layui-input-block">
|
|
<button class="layui-btn layui-btn-normal" lay-submit lay-filter="set">确定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).use(['form','element'], function(){
|
|
var $ = layui.$,form = layui.form,element = layui.element;
|
|
|
|
|
|
form.on('submit(set)', function(data) {
|
|
like.ajax({
|
|
url:'<?php echo url("setting.MarketingConfig/orderAward"); ?>',
|
|
data: data.field,
|
|
type:"post",
|
|
success:function(res)
|
|
{
|
|
if(res.code == 1)
|
|
{
|
|
layui.layer.msg(res.msg, {
|
|
offset: '15px'
|
|
, icon: 1
|
|
, time: 1000
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|