|  | @@ -0,0 +1,192 @@
 | 
											
												
													
														|  | 
 |  | +<!DOCTYPE html>
 | 
											
												
													
														|  | 
 |  | +<html>
 | 
											
												
													
														|  | 
 |  | +<head>
 | 
											
												
													
														|  | 
 |  | +<meta charset="utf-8">
 | 
											
												
													
														|  | 
 |  | +<title>核销活动</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, maximum-scale=1">
 | 
											
												
													
														|  | 
 |  | +<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
 | 
											
												
													
														|  | 
 |  | +<meta name="apple-mobile-web-app-capable" content="yes">
 | 
											
												
													
														|  | 
 |  | +<meta name="format-detection" content="telephone=no">
 | 
											
												
													
														|  | 
 |  | +<link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
 | 
											
												
													
														|  | 
 |  | +<script src="../script/lib/jquery/jquery.min.js"></script>
 | 
											
												
													
														|  | 
 |  | +<script src="../script/lib/layui/layui.js"></script>
 | 
											
												
													
														|  | 
 |  | +<script src="../script/lib/echarts/echarts.common.min.js"></script>
 | 
											
												
													
														|  | 
 |  | +<script><{Dever::script()}></script>
 | 
											
												
													
														|  | 
 |  | +<script src="../script/dever/core.js"></script>
 | 
											
												
													
														|  | 
 |  | +<style>
 | 
											
												
													
														|  | 
 |  | +.dever-upload-pic
 | 
											
												
													
														|  | 
 |  | +{
 | 
											
												
													
														|  | 
 |  | +  width:100px;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +h5 {
 | 
											
												
													
														|  | 
 |  | +    margin-bottom: 10px;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +td {
 | 
											
												
													
														|  | 
 |  | +  color: black;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +.layui-card-body {
 | 
											
												
													
														|  | 
 |  | +    /*position: relative;*/
 | 
											
												
													
														|  | 
 |  | +    /*padding: 50px 15px;*/
 | 
											
												
													
														|  | 
 |  | +    line-height: 24px;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +.layui-input {
 | 
											
												
													
														|  | 
 |  | +    /*position: relative;*/
 | 
											
												
													
														|  | 
 |  | +    /*padding: 30px;*/
 | 
											
												
													
														|  | 
 |  | +    margin-top: 50px;
 | 
											
												
													
														|  | 
 |  | +    /*line-height: 24px;*/
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | + .container{
 | 
											
												
													
														|  | 
 |  | +            max-width: 1024px;
 | 
											
												
													
														|  | 
 |  | +            margin: auto;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +  .lefttitle{
 | 
											
												
													
														|  | 
 |  | +      /*background-color: pink;*/
 | 
											
												
													
														|  | 
 |  | +      width: 10%;
 | 
											
												
													
														|  | 
 |  | +      float: left;/* 可将此句改为position:absolute;left:0; */
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +  .leftname{
 | 
											
												
													
														|  | 
 |  | +      /*background-color: pink;*/
 | 
											
												
													
														|  | 
 |  | +      width: 30%;
 | 
											
												
													
														|  | 
 |  | +      float: left;/* 可将此句改为position:absolute;left:0; */
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +  .righttitle{
 | 
											
												
													
														|  | 
 |  | +      /*background-color: dodgerblue;*/
 | 
											
												
													
														|  | 
 |  | +      width: 50%;
 | 
											
												
													
														|  | 
 |  | +      float:left;/* 可将此句改为position:absolute;left:50%; */
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +  .rightname{
 | 
											
												
													
														|  | 
 |  | +      /*background-color: dodgerblue;*/
 | 
											
												
													
														|  | 
 |  | +      width: 40%;
 | 
											
												
													
														|  | 
 |  | +      float:right;/* 可将此句改为position:absolute;left:50%; */
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +  .layui-span{
 | 
											
												
													
														|  | 
 |  | +    color: blue;
 | 
											
												
													
														|  | 
 |  | +    margin-left: 80px;
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +</style>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +</head>
 | 
											
												
													
														|  | 
 |  | +<body>
 | 
											
												
													
														|  | 
 |  | +<div class="layui-container">
 | 
											
												
													
														|  | 
 |  | +<div class="layui-card">
 | 
											
												
													
														|  | 
 |  | +     <!-- <blockquote class="layui-elem-quote"><input type="text" value="<{$start}> ~ <{$end}>" autocomplete="off" id="date" class="layui-input" style="width: auto;display: inline;" placeholder="选择日期"><a href="javascript:;" class="layui-btn" id="search">搜索</a><a href="javascript:;" class="layui-btn" id="excel">数据导出</a></blockquote> -->
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +  <div class="layui-card-header" style="font-size: 15px">
 | 
											
												
													
														|  | 
 |  | +    <!-- <ul> -->
 | 
											
												
													
														|  | 
 |  | +      <li><{$active_name}><span class = 'layui-span'><{$status}></span></li>
 | 
											
												
													
														|  | 
 |  | +      <li>活动时间:<{$act_time}></li>
 | 
											
												
													
														|  | 
 |  | +    <!-- </ul> -->
 | 
											
												
													
														|  | 
 |  | +  </div>
 | 
											
												
													
														|  | 
 |  | +   <!-- <div class = 'layui-input'> -->
 | 
											
												
													
														|  | 
 |  | +    <input type="text" value="<{$write_code}>" autocomplete="off" id="date" class="layui-input" style="width: auto;display: inline;" placeholder="输入核销码">
 | 
											
												
													
														|  | 
 |  | +    <!-- <a href="javascript:;" class="layui-btn" id="search">搜索</a> -->
 | 
											
												
													
														|  | 
 |  | +  <!-- </div> -->
 | 
											
												
													
														|  | 
 |  | +  <div class="layui-card-body">
 | 
											
												
													
														|  | 
 |  | +      <{if(isset($write_code)):}>
 | 
											
												
													
														|  | 
 |  | +     <div class="container">
 | 
											
												
													
														|  | 
 |  | +        <div class="lefttitle">
 | 
											
												
													
														|  | 
 |  | +            <h5>参会人</h5>
 | 
											
												
													
														|  | 
 |  | +            <p><{$join_avatar}></p>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +        <div class="leftname">
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1">姓名:<{$join_name}></li>
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1">电话:<{$join_mobile}></li>
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1">核销码:<{$write_code}></li>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +        <div class="righttitle">
 | 
											
												
													
														|  | 
 |  | +            <h5>邀请人</h5>
 | 
											
												
													
														|  | 
 |  | +            <p><{$buy_avatar}></p>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +        <div class="rightname">
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1"><{$buy_name}></li>
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1"><{$buy_mobile}></li>
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1"><{$role_name}></li>
 | 
											
												
													
														|  | 
 |  | +            <li data-priority="1"><{$title_name}></li>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +    </div>
 | 
											
												
													
														|  | 
 |  | +  
 | 
											
												
													
														|  | 
 |  | +    <table class="table layui-table layui-table-body" id="table">
 | 
											
												
													
														|  | 
 |  | +      </table>
 | 
											
												
													
														|  | 
 |  | +      <div><a  href="javascript:;" class="layui-btn" id="hexiao" onclick="hexiao();">确认核销</a></div>
 | 
											
												
													
														|  | 
 |  | +      <{endif}>
 | 
											
												
													
														|  | 
 |  | +	</div>
 | 
											
												
													
														|  | 
 |  | +	</div>
 | 
											
												
													
														|  | 
 |  | +</div>
 | 
											
												
													
														|  | 
 |  | +</div>
 | 
											
												
													
														|  | 
 |  | +      
 | 
											
												
													
														|  | 
 |  | +<input id="id" name="id" value="<{$id}>" type='hidden'/>
 | 
											
												
													
														|  | 
 |  | +</div>
 | 
											
												
													
														|  | 
 |  | +<script>
 | 
											
												
													
														|  | 
 |  | +// function search()
 | 
											
												
													
														|  | 
 |  | +// {
 | 
											
												
													
														|  | 
 |  | +//   var date = $('#date').val();
 | 
											
												
													
														|  | 
 |  | +  
 | 
											
												
													
														|  | 
 |  | +//   location.href = config.host + 'lib/manage.code&code=' + date +'&id=<{$active_id}>';
 | 
											
												
													
														|  | 
 |  | +// }
 | 
											
												
													
														|  | 
 |  | +// $('#search').click(function() {
 | 
											
												
													
														|  | 
 |  | +//   search();
 | 
											
												
													
														|  | 
 |  | +// })
 | 
											
												
													
														|  | 
 |  | +var id = '<{$active_id}>';
 | 
											
												
													
														|  | 
 |  | +$('#date').bind('keydown',function(event){
 | 
											
												
													
														|  | 
 |  | +   if(event.keyCode == "13")    
 | 
											
												
													
														|  | 
 |  | +   {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    $.ajax({
 | 
											
												
													
														|  | 
 |  | +      type:"GET",
 | 
											
												
													
														|  | 
 |  | +      url:config.host + 'lib/manage.code',
 | 
											
												
													
														|  | 
 |  | +      data: {
 | 
											
												
													
														|  | 
 |  | +        id : id,
 | 
											
												
													
														|  | 
 |  | +        code : $('#date').val(),
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  | 
 |  | +      dataType: "json",
 | 
											
												
													
														|  | 
 |  | +      success: function (data) {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        if (data.msg == 'success'){
 | 
											
												
													
														|  | 
 |  | +           location.href = config.host + 'lib/manage.code&type=1&code=' + $('#date').val() +'&id=<{$active_id}>';
 | 
											
												
													
														|  | 
 |  | +        } else {
 | 
											
												
													
														|  | 
 |  | +          alert('填写错误');
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  | 
 |  | +      error: function(data){
 | 
											
												
													
														|  | 
 |  | +        alert('核销码不存在或已核销');
 | 
											
												
													
														|  | 
 |  | +        var code = '';
 | 
											
												
													
														|  | 
 |  | +      $('#id').val('');
 | 
											
												
													
														|  | 
 |  | +      location.href = config.host + "lib/manage.code&id=<{$active_id}>";
 | 
											
												
													
														|  | 
 |  | +     }
 | 
											
												
													
														|  | 
 |  | +    });
 | 
											
												
													
														|  | 
 |  | +   }
 | 
											
												
													
														|  | 
 |  | + });
 | 
											
												
													
														|  | 
 |  | +var code_id = $('#id').val();
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +function hexiao() {
 | 
											
												
													
														|  | 
 |  | +  $.ajax({
 | 
											
												
													
														|  | 
 |  | +    type: "GET",
 | 
											
												
													
														|  | 
 |  | +    url: config.host + "home.confirm",
 | 
											
												
													
														|  | 
 |  | +    data: {
 | 
											
												
													
														|  | 
 |  | +        code_id: code_id,
 | 
											
												
													
														|  | 
 |  | +        // json : 1
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    dataType: "json",
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    success: function (data) {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      alert(data.data.msg);
 | 
											
												
													
														|  | 
 |  | +      var code = '';
 | 
											
												
													
														|  | 
 |  | +      $('#id').val('');
 | 
											
												
													
														|  | 
 |  | +      location.href = config.host + "lib/manage.code&id=<{$active_id}>";
 | 
											
												
													
														|  | 
 |  | +     },
 | 
											
												
													
														|  | 
 |  | +     error: function(data){
 | 
											
												
													
														|  | 
 |  | +      console.log('error',data);
 | 
											
												
													
														|  | 
 |  | +     }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +  });
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +</script>
 | 
											
												
													
														|  | 
 |  | +</body>
 | 
											
												
													
														|  | 
 |  | +</html>
 |