@layout("/common/_container.html"){
|
<style>
|
.newWidth, .single-line{
|
max-width:150px !important;display: initial !important;
|
}
|
</style>
|
<div class="ibox float-e-margins">
|
<div class="ibox-content">
|
<div class="form-horizontal">
|
|
<div class="row">
|
<div class="col-sm-11">
|
<div class="form-group">
|
<input type="hidden" id="id" value="${item.id}">
|
<div class="col-sm-10">
|
|
<div class="col-lg-3">
|
活动名称: <input type="text" value="${item.name}" name="zc1" id="num1" class="form-control newWidth" />
|
</div>
|
|
<div class="col-lg-3">
|
有效为: <input type="text" value="${startTime}${endTime}" name="createTime" id="createTime" class="form-control newWidth" />
|
</div>
|
|
<div class="form-group col-lg-12">
|
<label class="col-sm-3 control-label">选择:</label>
|
<div class="col-sm-9" style="display: flex;align-items: center;">
|
<div class="radio radio-info radio-inline">
|
<input type="radio" id="sendType1" value="1" name="sendType" checked="">
|
<label for="sendType1"> 全部司机 </label>
|
</div>
|
<div class="radio radio-success radio-inline">
|
<input type="radio" id="sendType2" value="2" name="sendType">
|
<label for="sendType2"> 选择司机 </label>
|
</div>
|
<#button name="选择" icon="fa-plus"
|
clickFun="DriverActivityInfoDlg.toSelectUserOpt()"/>
|
</div>
|
</div>
|
|
|
<div class="form-group">
|
<label class="col-sm-3 control-label">已添加司机</label>
|
<div class="col-sm-9">
|
<div style="height: 200px; border: 1px solid #e5e6e7;overflow-y: auto;">
|
<table class="table table-striped table-bordered table-hover table-condensed">
|
<thead>
|
<tr>
|
<th style="width: 300px;">司机昵称</th>
|
<th style="width: 300px;">手机号</th>
|
<th style="width: 300px;">注册地所属分公司</th>
|
<th style="width: 100px;">操作</th>
|
</tr>
|
</thead>
|
<tbody id="coun">
|
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
<br/>
|
<br/>
|
司机邀请司机注册
|
<br/>
|
<br/>
|
|
司机注册既赠送 <input type="text" value="${regist1.num1}" id="num2" class="form-control newWidth" /> Rp
|
<br/>
|
<br/>
|
司机邀请用户注册
|
<br/>
|
<br/>
|
用户注册既赠送 <input type="text" value="${regist2.num1}" id="num3" class="form-control newWidth" /> Rp
|
<br/>
|
<br/>
|
司机APP每天累计在线奖励
|
<br/>
|
<br/>
|
摩托车累计在线 <input type="text" value="${online1.num1}" id="num4" class="form-control newWidth" /> 小时奖励
|
<input type="text" value="${online1.num2}" id="num5" class="form-control newWidth" /> Rp
|
<br/>
|
<br/>
|
同城快送累计在线 <input type="text" value="${online3.num1}" id="num8" class="form-control newWidth" /> 小时奖励
|
<input type="text" value="${online3.num2}" id="num9" class="form-control newWidth" /> Rp
|
<br/>
|
<br/>
|
司机累计达到规定订单数奖励
|
@for(o in order){
|
<br/>
|
<br/>
|
@if(o.frist ==1 ){
|
<div id="day">
|
@}else{
|
<div>
|
@}
|
每天 <input type="text" name="staTime" value="${o.num1}" id="staTime" class="form-control newWidth" /> 司机接单完成
|
@if(o.frist ==1 ){
|
<i class="fa fa-plus" onclick="addBox2()"></i>
|
@}else{
|
<i class="fa fa-remove" onclick="delBox(this)"></i>
|
@}
|
<br/>
|
<input type="text" name="num10" id="num10" value="${o.num2}" class="form-control newWidth" /> 单既奖励
|
<input type="text" name="num11" id="num11" value="${o.num3}"class="form-control newWidth" /> Rp<br/>
|
司机累计接单完成 <input type="text" name="num12"value="${o.num4}"id="num12" class="form-control newWidth" />单既奖励 <input type="text" value="${o.num5}" name="num13" id="num13" class="form-control newWidth" /> Rp
|
</div>
|
@}
|
|
</div>
|
</div>
|
</div>
|
</div>
|
|
|
|
|
<div class="row btn-group-m-t">
|
<div class="col-sm-10">
|
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="DriverActivityInfoDlg.editSubmit()"/>
|
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="DriverActivityInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
<script src="${ctxPath}/modular/system/driverActivity/driverActivity_info.js"></script>
|
<script>
|
laydate.render({
|
elem: '#startTime'
|
,type: 'datetime'
|
,range: true
|
,min: 'new Date()' //最小值今天
|
,lang:"en"
|
});
|
laydate.render({
|
elem: '#staTime'
|
,range: true,
|
type:'time',
|
format: 'HH:mm'
|
,lang:"en"
|
});
|
laydate.render({
|
elem: '#createTime '
|
,range: true,
|
type:'time',
|
format: 'HH:mm'
|
,lang:"en"
|
});
|
|
function addBox2(){
|
var a ="<div><br/> 每天 <input type=\"text\" name=\"staTime\" id=\"staTime\" class=\"form-control newWidth\" /> 司机接单完成 <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i>\n" +
|
" <br/>\n" +
|
" <input type=\"text\" name=\"num10\" id=\"num10\" class=\"form-control newWidth\" /> 单既奖励\n" +
|
" <input type=\"text\" name=\"num11\" id=\"num11\" class=\"form-control newWidth\" /> Rp<br/>\n" +
|
" 司机累计接单完成 <input type=\"text\" name=\"num12\" id=\"num12\" class=\"form-control newWidth\" />单既奖励 <input type=\"text\" name=\"num13\" id=\"num13\" class=\"form-control newWidth\" /> Rp</div>"
|
|
|
$("#day").append($(a))
|
}
|
function delBox(o) {
|
$(o).parent("div").remove()
|
}
|
function addBox1(){
|
var a = " <div> <br/>每天<input type=\"text\" name=\"staTime1\" id=\"staTime1\" class=\"form-control newWidth\" />,司机每在线 <input type=\"text\" name=\"num14\" id=\"num14\" class=\"form-control newWidth\" />小时,\n" +
|
" 奖励 <input type=\"text\" name=\"num15\" id=\"num15\" class=\"form-control newWidth\" />Rp,最多补贴 <input type=\"text\" name=\"num16\" id=\"num16\" class=\"form-control newWidth\" />小时 ; \n" +
|
" <i class=\"fa fa-remove\" onclick=\"delBox(this)\"></i></div>\n" +
|
" "
|
$("#everyDay").append($(a))
|
}
|
</script>
|
@}
|