Authored by dongjunjie

活动管理模块

module.exports = function (app) {
app.get("/activity/drawline/index", "activity.Index", function (req, res) {
this.$extend = {
gridurl:'/supplier/store/indexPage',
pagetitle:{
level1title:"活动管理",
level2title:"抽奖活动管理",
level3title:"抽奖活动列表"
}
moduleName:"活动管理",
pageName:"抽奖活动管理",
gridurl:'/supplier/store/indexPage'
}
});
app.get("/activity/drawline/add", "activity.Edit", function (req, res) {
this.$extend = {
pageTitel:"添加抽奖活动",
moduleName:"活动管理",
pageName:"新增抽奖活动",
action:'/DrawlineActivityRest/addDrawlineActivity',
data:{
activityId:0,
... ... @@ -22,14 +20,22 @@ module.exports = function (app) {
}
});
app.get("/activity/drawline/update/:activityId", "activity.Edit", function (req, res) {
app.get("/activity/drawline/update/:activityId", "activity.Edit", "activity_getDrawlineActivityDetail", function (rs,req,res) {
this.$extend = {
pageTitel : "修改抽奖活动",
action : '/DrawlineActivityRest/updateDrawlineActivity'
moduleName:"活动管理",
pageName:"编辑抽奖活动",
action : '/DrawlineActivityRest/updateDrawlineActivity',
data:rs.data
}
});
app.get("/activity/drawline/data/:activityId", "activity.Data");
app.get("/activity/drawline/data/:activityId", "activity.Data", "activity_getPrizeDetailInfo", function (rs,req,res) {
this.$extend = {
moduleName:"活动管理",
pageName:"抽奖活动中奖情况",
data:rs.data
}
});
//抽奖活动列表
app.post("/DrawlineActivityRest/getDrawlineActivityList","activity_getDrawlineActivityList");
... ...
... ... @@ -12,6 +12,22 @@ module.exports= {
]
},
getDrawlineActivityDetail:{
title:"抽奖活动详情",
url:"/DrawlineActivityRest/getDrawlineActivityDetail",
params:[
{name:"activityId",type:"Number"}
]
},
getPrizeDetailInfo:{
title:"中奖情况",
url:"/DrawlineActivityRest/getPrizeDetailInfo",
params:[
{name:"activityId",type:"Number"}
]
},
closeActivity:{
title:"关闭活动",
url:"/DrawlineActivityRest/closeActivity",
... ... @@ -60,14 +76,6 @@ module.exports= {
]
},
getDrawlineActivityDetail:{
title:"获取抽奖活动详情",
url:"/DrawlineActivityRest/getDrawlineActivityDetail",
params:[
{name: 'activityId', type:"number"}
]
},
luckyUserDraw:{
title:"手动开奖",
url:"/DrawlineActivityRest/luckyUserDraw",
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">抽奖活动管理</a></li>
<li>抽奖活动列表</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>抽奖活动中奖情况</h4>
</div>
</div>
</div>
</div>
</div>
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
{{# data}}
<div id="activityForm" role="form" class="form-horizontal form-bordered" method="post" action="{{action}}">
<input type="hidden" id="luckUserInfoList" value="{{luckUserInfoList}}" />
<div id="activityForm" role="form" class="form-horizontal form-bordered" method="post">
<input type="hidden" id="luckUserInfoList" value="<%data.luckUserInfoList%>"/>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">中奖情况</h4>
</div><!-- panel-heading -->
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">总参与人数</label>
<label class="col-sm-2 control-label">总参与人数</label>
<div class="col-sm-3">
<label class="col-sm-2 control-label">{{totalAttendNum}}</label>
<label class="col-sm-2 control-label"><%data.totalAttendNum%></label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">马甲参与人数</label>
<label class="col-sm-2 control-label">马甲参与人数</label>
<div class="col-sm-3">
<label class="col-sm-2 control-label">{{virtualAttendNum}}</label>
<label class="col-sm-2 control-label"><%data.virtualAttendNum%></label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">奖品总数量</label>
<label class="col-sm-2 control-label">奖品总数量</label>
<div class="col-sm-3">
<label class="col-sm-2 control-label">{{luckTotalNum}}</label>
<label class="col-sm-2 control-label"><%data.luckTotalNum%></label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">中奖明细</label>
<div class="row show-grid">
<div id="basicTable"></div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">中奖明细:</label>
<div class="row show-grid">
<div id="basicTable"></div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<a href="javascript:;" class="btn btn-default" onclick="javascript:history.go(-1);">取消</a>
<a href="javascript:;" class="btn btn-info" onclick="javascript:history.go(-1);">返回</a>
</div>
</div>
</div>
</div>
</div>
{{/ data}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<%include '../../common/views/__ui/footer'%>
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">抽奖活动管理</a></li>
<li>抽奖活动列表</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>{{pageTitel}}</h4>
</div>
</div>
</div>
</div>
</div>
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<div id="activityForm" role="form" class="form-horizontal form-bordered" method="post" action="{{action}}">
<input type="hidden" id="activityId" value="{{data.activityId}}" />
<input type="hidden" id="prizeId" value="{{data.prizeId}}" />
<input type="hidden" id="backgroundStyle" value="{{data.backgroundStyle}}" />
<input type="hidden" id="prizeList" value="{{data.prizeList}}" />
<input type="hidden" id="status" value="{{data.status}}" />
<div id="activityForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>">
<input type="hidden" id="activityId" value="<%data.activityId%>" />
<input type="hidden" id="prizeId" value="<%data.prizeId%>" />
<input type="hidden" id="backgroundStyle" value="<%data.backgroundStyle%>" />
<input type="hidden" id="prizeList" value="<%data.prizeList%>" />
<input type="hidden" id="status" value="<%data.status%>" />
<div class="panel panel-default">
{{# data}}
<div class="panel-heading">
<h4 class="panel-title">{{pageTitel}}</h4>
<h4 class="panel-title"><%pageName%></h4>
</div><!-- panel-heading -->
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">活动名称<span class="red">*</span></label>
<label class="col-sm-2 control-label">活动名称<span class="red">*</span></label>
<div class="col-sm-8">
<input type="text" id="activityName" placeholder="活动名称" class="form-control" required value="{{activityName}}">
<input type="text" id="activityName" placeholder="活动名称" class="form-control" required value="<%activityName%>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">活动时间<span class="red">*</span></label>
<label class="col-sm-2 control-label">活动时间<span class="red">*</span></label>
<div class="col-sm-3">
<input type="text" class="form-control" jsaction="time" id="beginTimeStr" required placeholder="活动开始时间" value="{{beginTimeStr}}" readonly>
<input type="text" class="form-control" jsaction="time" id="beginTimeStr" required placeholder="活动开始时间" value="<%data.beginTimeStr%>" readonly>
</div>
<div class="col-sm-3">
<input type="text" class="form-control" jsaction="time" id="endTimeStr" required placeholder="活动结束时间" value="{{endTimeStr}}" readonly >
<input type="text" class="form-control" jsaction="time" id="endTimeStr" required placeholder="活动结束时间" value="<%data.endTimeStr%>" readonly >
</div>
<div class="col-sm-3">
<label class="control-label" id="totalHours"></label>
<label class="control-label" id="totalHours" style="color: #ff0000"></label>
</div>
<!-- readonly require-->
</div>
<div class="form-group">
<label class="col-sm-2"></label>
<div class="input-group col-sm-6">
<span class="input-group-addon">人数上限:</span>
<input type="text" id="numberLimit" class="form-control number" value="{{numberLimit}}" placeholder="人数上限">
<div class="input-group col-sm-6" style="padding-left: 10px;">
<span class="input-group-addon">人数上限</span>
<input type="text" id="numberLimit" class="form-control number" value="<%data.numberLimit%>" placeholder="人数上限">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">奖品类型<span class="red">*</span></label>
<label class="col-sm-2 control-label">奖品类型<span class="red">*</span></label>
<div class="col-sm-3">
<select name="prizeType" id="prizeType" value='{{prizeType}}' required class="form-control">
<select name="prizeType" id="prizeType" value='<%data.prizeType%>' required class="form-control">
<option value="3">限购码</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">奖品设置<span class="red">*</span></label>
<label class="col-sm-2 control-label">奖品设置<span class="red">*</span></label>
<div class="col-sm-6">
<div class="input-group">
<span class="input-group-addon">限购码批次号:<span class="red">*</span></span>
<input type="text" form="activityForm" name="prize" id="prize" class="form-control" value="{{ prize}}" placeholder="限购码批次号" required>
<span class="input-group-addon">限购码批次号<span class="red">*</span></span>
<input type="text" form="activityForm" name="prize" id="prize" class="form-control" value="<%data.prize%>" placeholder="限购码批次号" required>
</div>
<!--<div class="input-group">-->
<!--<span class="input-group-addon">白名单:</span>-->
<!--<input type="text" form="activityForm" name="whiteList" id="whiteList" class="form-control" value="{{ whiteList}}" placeholder="请输入UID,用逗号隔开">-->
<!--<input type="text" form="activityForm" name="whiteList" id="whiteList" class="form-control" value="<%data.whiteList%>" placeholder="请输入UID,用逗号隔开">-->
<!--</div>-->
<!--<div class="input-group">-->
<!--<span class="input-group-addon">真实用户中奖数:<span class="red">*</span></span>-->
<!--<input type="number" form="activityForm" name="realUserNum" id="realUserNum" class="form-control" value="{{ realUserNum}}" placeholder="请输入数量" required>-->
<!--<input type="number" form="activityForm" name="realUserNum" id="realUserNum" class="form-control" value="<%data.realUserNum%>" placeholder="请输入数量" required>-->
<!--</div>-->
<!--<div class="input-group">-->
<!--<span class="input-group-addon">马甲用户中奖数:</span>-->
<!--<input type="number" form="activityForm" name="sockUserNum" id="sockUserNum" class="form-control" value="{{ sockUserNum}}" placeholder="请输入数量">-->
<!--<input type="number" form="activityForm" name="sockUserNum" id="sockUserNum" class="form-control" value="<%data.sockUserNum%>" placeholder="请输入数量">-->
<!--</div>-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">内容管理<span class="red">*</span></label>
<div class="col-sm-10">
<div class="input-group col-sm-4">
<div class="col-sm-3">
<label class="col-sm-2 control-label">内容管理:<span class="red">*</span></label>
<div class="col-sm-10" style="margin-top: 10px">
<div class="input-group col-sm-12">
<div class="col-sm-1" style="padding-left: 0">
<label class="">顶部banner:<span class="red">*</span></label>
</div>
<div class="col-sm-7">
<input type="file" id="topBanner" name="topBanner" value="{{topBanner}}" placeholder="顶部banner" required />
<input type="file" id="topBanner" name="topBanner" value="<%data.topBanner%>" placeholder="顶部banner" required />
</div>
</div>
<div class="input-group col-sm-12">
<div class="col-sm-1">
<div class="col-sm-1" style="padding-left: 0">
<label class="">背景样式:</label>
</div>
<div class="col-sm-1">
... ... @@ -138,18 +119,17 @@
<div class="form-group">
<label class="col-sm-2 control-label">活动说明:</label>
<div class="col-sm-8">
<input type="text" id="activityDesc" placeholder="请输入链接" class="form-control" value="{{activityDesc}}">
<input type="text" id="activityDesc" placeholder="请输入链接" class="form-control" value="<%data.activityDesc%>">
</div>
</div>
</div>
</div>
{{/ data}}
<div class="panel-footer">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<a href="javascript:;" class="btn btn-default" onclick="javascript:history.go(-1);">取消</a>
<a href="javascript:;" class="btn btn-info" onclick="javascript:history.go(-1);">取消</a>
<button type="submit" class="btn btn-success mr5" data-loading-text="保存中..." id="btnReview">保存</button>
</div>
</div>
... ... @@ -161,4 +141,6 @@
</div>
</div>
<%include '../../common/views/__ui/footer'%>
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
{{#pagetitle}}
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">{{level1title}}</a></li>
<li>{{level2title}}</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>{{level3title}}</h4>
</div>
</div>
</div>
{{/pagetitle}}
</div>
</div>
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<div class="panel-body" style="padding-bottom: 0">
<a href="/activity/drawline/add" class="btn btn-success"><i class="fa fa-plus"></i> 添加抽奖活动</a>
</div>
<div class="panel-body">
<div class="row">
<select name="status" id="status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1" selected="">活动状态</option>
<option value="1">开启</option>
<option value="0">关闭</option>
<option value="2">未过期</option>
</select>
<div class="form-group col-md-2">
<div class="panel-col">
<select name="status" id="status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1" selected="">活动状态</option>
<option value="1">开启</option>
<option value="0">关闭</option>
<option value="2">未过期</option>
</select>
</div>
<div class="panel-col">
<input name="activityName" id="activityName" type="text" value="" class="form-control" placeholder="请输入活动名称" />
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="all-btn" href="" class="btn btn-info">全部</a>
<input id="importFile" style="z-index: -99999" hidden name="productSkn" class="btn btn-default excel-upload" type="file" >
<div class="file-name btn btn-info" id="uploadFile">导入中奖信息</div>
<div class="panel-col2" style="position: relative">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="all-btn" href="" class="btn btn-info">全部</a>
<input id="importFile" style="z-index: -99999" hidden name="productSkn" class="btn btn-default excel-upload" type="file" >
<div class="file-name btn btn-primary" id="uploadFile">导入中奖信息</div>
</div>
</div>
</div>
<div class="panel panel-primary-head">
</div>
<div class="panel">
<div class="panel-body nopadding">
<div id="basicTable" class="dataTables_wrapper no-footer">
<div class="dataTables_length" id="storeadmin_Tabel"></div>
</div>
... ... @@ -53,4 +39,6 @@
</div>
</div>
<%include '../../common/views/__ui/footer'%>
... ...

'use strict';
var $ = require('jquery'),
common=require('../common/common');
common=require('../../common/common');
var g = new common.grid({
el:'#basicTable',
... ...
var $ = require('jquery'),
common=require('../common/common');
common = require('../../common/common');
var e = new common.edit("#activityForm", {
"bucket" : "activity"
"bucket": "activity"
});
e.on("render", function() {
e.on("render", function () {
});
var bgStyle = $("#backgroundStyle").val();
var prizeList = $("#prizeList").val();
if (bgStyle) {
var arr = bgStyle.split(",");
$(arr).each(function(index, item) {
$("#backgroundStyle"+ (index + 1)).attr("value", item);
});
var arr = bgStyle.split(",");
$(arr).each(function (index, item) {
$("#backgroundStyle" + (index + 1)).attr("value", item);
});
}
if (prizeList) {
var prizeObj = JSON.parse(prizeList)[0];
$("#prizeId").val(prizeObj.prizeId);
$("#prize").val(prizeObj.prize);
$("#whiteList").val(prizeObj.whiteList);
$("#realUserNum").val(prizeObj.realUserNum);
$("#sockUserNum").val(prizeObj.sockUserNum);
$("#prizeType").val(prizeObj.prizeType);
var prizeObj = JSON.parse(prizeList)[0];
$("#prizeId").val(prizeObj.prizeId);
$("#prize").val(prizeObj.prize);
$("#whiteList").val(prizeObj.whiteList);
$("#realUserNum").val(prizeObj.realUserNum);
$("#sockUserNum").val(prizeObj.sockUserNum);
$("#prizeType").val(prizeObj.prizeType);
}
function dealTotalHours() {
var beginTimeStr = $("#beginTimeStr").val();
var endTimeStr = $("#endTimeStr").val();
if (beginTimeStr != "" && endTimeStr != "") {
var bDate = new Date(beginTimeStr);
var eDate = new Date(endTimeStr);
var hours = eDate.getTime() - bDate.getTime();
$("#totalHours").html("总计时间:" + parseInt(hours / (1000 * 60 * 60)) + " 小时");
} else {
$("#totalHours").html("");
}
var beginTimeStr = $("#beginTimeStr").val();
var endTimeStr = $("#endTimeStr").val();
if (beginTimeStr != "" && endTimeStr != "") {
var bDate = new Date(beginTimeStr);
var eDate = new Date(endTimeStr);
var hours = eDate.getTime() - bDate.getTime();
$("#totalHours").html("总计时间:" + parseInt(hours / (1000 * 60 * 60)) + " 小时");
} else {
$("#totalHours").html("");
}
}
dealTotalHours();
$("#beginTimeStr,#endTimeStr").change(function() {
dealTotalHours();
$("#beginTimeStr,#endTimeStr").change(function () {
dealTotalHours();
});
e.init();
e.on("validate", function() {
if(new Date($("#beginTimeStr").val()).getTime() >= new Date($("#endTimeStr").val()).getTime()) {
return "开始时间必须小于结束时间";
}
e.on("validate", function () {
if (new Date($("#beginTimeStr").val()).getTime() >= new Date($("#endTimeStr").val()).getTime()) {
return "开始时间必须小于结束时间";
}
});
e.on("validate",function() {
var bkStyle = [];
bkStyle.push(!($("#backgroundStyle1").attr("value")) ? "" : $("#backgroundStyle1").attr("value"));
bkStyle.push(!($("#backgroundStyle2").attr("value")) ? "" : $("#backgroundStyle2").attr("value"));
bkStyle.push(!($("#backgroundStyle3").attr("value")) ? "" : $("#backgroundStyle3").attr("value"));
bkStyle.push(!($("#backgroundStyle4").attr("value")) ? "" : $("#backgroundStyle4").attr("value"));
bkStyle.push(!($("#backgroundStyle5").attr("value")) ? "" : $("#backgroundStyle5").attr("value"));
bkStyle.push(!($("#backgroundStyle6").attr("value")) ? "" : $("#backgroundStyle6").attr("value"));
bkStyle.push(!($("#backgroundStyle7").attr("value")) ? "" : $("#backgroundStyle7").attr("value"));
bkStyle.push(!($("#backgroundStyle8").attr("value")) ? "" : $("#backgroundStyle8").attr("value"));
$("#backgroundStyle").val(bkStyle.join(","));
var prizeObj = [{
prizeId : $("#prizeId").val(),
prizeType : $("#prizeType").val(),
prize : $("#prize").val(),
whiteList : $("#whiteList").val(),
realUserNum : $("#realUserNum").val(),
sockUserNum : $("#sockUserNum").val()
}];
$("#prizeList").val(JSON.stringify(prizeObj));
return true;
e.on("validate", function () {
var bkStyle = [];
bkStyle.push(!($("#backgroundStyle1").attr("value")) ? "" : $("#backgroundStyle1").attr("value"));
bkStyle.push(!($("#backgroundStyle2").attr("value")) ? "" : $("#backgroundStyle2").attr("value"));
bkStyle.push(!($("#backgroundStyle3").attr("value")) ? "" : $("#backgroundStyle3").attr("value"));
bkStyle.push(!($("#backgroundStyle4").attr("value")) ? "" : $("#backgroundStyle4").attr("value"));
bkStyle.push(!($("#backgroundStyle5").attr("value")) ? "" : $("#backgroundStyle5").attr("value"));
bkStyle.push(!($("#backgroundStyle6").attr("value")) ? "" : $("#backgroundStyle6").attr("value"));
bkStyle.push(!($("#backgroundStyle7").attr("value")) ? "" : $("#backgroundStyle7").attr("value"));
bkStyle.push(!($("#backgroundStyle8").attr("value")) ? "" : $("#backgroundStyle8").attr("value"));
$("#backgroundStyle").val(bkStyle.join(","));
var prizeObj = [{
prizeId: $("#prizeId").val(),
prizeType: $("#prizeType").val(),
prize: $("#prize").val(),
whiteList: $("#whiteList").val(),
realUserNum: $("#realUserNum").val(),
sockUserNum: $("#sockUserNum").val()
}];
$("#prizeList").val(JSON.stringify(prizeObj));
return true;
});
$("#btnReview").click(function(){
e.submit($("#activityForm").attr("action"),function(option){
option.success=function(res){
res = res.data;
if(res.code == "200") {
e.$tip("提交成功", function() {
location.href="/activity/drawline/index"
}, 'growl-success');
}else{
e.$tip(res.message);
}
},
option.error=function(res){
e.$tip(res.message);
}
});
$("#btnReview").click(function () {
e.submit($("#activityForm").attr("action"), function (option) {
option.success = function (res) {
if (res.code == "200") {
e.$tip("提交成功", function () {
location.href = "/activity/drawline/index"
}, 'growl-success');
} else {
e.$tip(res.message);
}
};
option.error = function (res) {
e.$tip(res.message);
}
});
});
//输入限制
$(".number").on("keyup", function() {
$(this).val($(this).val().replace(/\D/g, ''));
$(".number").on("keyup", function () {
$(this).val($(this).val().replace(/\D/g, ''));
});
... ...
//商家管理
'use strict';
var $ = require('jquery'),
common=require('../common/common');
common=require('../../common/common');
var ENUM={
status:{1:'开启',0:'关闭',2:'未过期'}
}
};
new common.dropDown({el:"#status"});
... ... @@ -61,10 +60,10 @@ var g=new common.grid({
} else if (item.status == 1) {
HtmArr.push('<a data-index="'+item.__index+'" href="javascript:void(0);" class="closeshops btn btn-danger btn-xs">关闭</a>');
}
HtmArr.push('<a data-index="'+ item.__index +'" href="javascript:;" class="btn btn-danger btn-xs btn-delete">删除</a>');
HtmArr.push('<a href="/activity/drawline/data/'+item.activityId+'" href="javascript:void(0);" class="btn btn-info btn-xs">数据</a>');
HtmArr.push('<a data-index="'+ item.__index +'" href="javascript:;" class="btn btn-info btn-xs export-btn">导出</a>');
HtmArr.push('<a data-index="'+ item.__index +'" href="javascript:;" class="btn btn-info btn-xs manualLottery">手动开奖</a>');
HtmArr.push('<a data-index="'+ item.__index +'" href="javascript:;" class="btn btn-primary btn-xs export-btn">导出</a>');
HtmArr.push('<a data-index="'+ item.__index +'" href="javascript:;" class="btn btn-success btn-xs manualLottery">手动开奖</a>');
HtmArr.push('<a data-index="'+ item.__index +'" href="javascript:;" class="btn btn-warning btn-xs btn-delete">删除</a>');
return HtmArr.join('');
}}
]
... ...