Commit 180e8125 by 朱继来

temp1

parent 52338581
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
.tabs-box .check-table td .multi-reason label { .tabs-box .check-table td .multi-reason label {
margin-right: 10px; margin-right: 10px;
} }
.tabs-box .check-table td .other-reason #input-reason { .tabs-box .check-table td .other-reason #input-reason, #input-other-source {
width: 99%; width: 99%;
height: 100px; height: 100px;
resize: none; resize: none;
......
...@@ -991,6 +991,15 @@ ...@@ -991,6 +991,15 @@
// // } // // }
// }) // })
// 用户来源
$('input[name="is_newClient"]').parent().on('click', function(){
if($(this).find('input').val() == 1){
$('.client_source_row').show();
} else {
$('.client_source_row').hide();
}
});
// 订单审核---通过or不通过 // 订单审核---通过or不通过
$('input[name="order_status"]').parent().on('click', function(){ $('input[name="order_status"]').parent().on('click', function(){
if($(this).find('input').val() == 2){ if($(this).find('input').val() == 2){
...@@ -1051,12 +1060,31 @@ ...@@ -1051,12 +1060,31 @@
// 提交表单 // 提交表单
$('.checkOrder').click(function(){ $('.checkOrder').click(function(){
var is_newClient = $('input[name=is_newClient]:checked').val();
var client_source = $('input[name=client_source]:checked').val();
var order_status = $('input[name=order_status]:checked').val(); var order_status = $('input[name=order_status]:checked').val();
var pay_type = $('input[name=order_pay_type]:checked').val(); // 订单类型 var pay_type = $('input[name=order_pay_type]:checked').val(); // 订单类型
var reason = $('input[name=reason]:checked').val(); var reason = $('input[name=reason]:checked').val();
var payTime = $('.payTime').val(); var payTime = $('.payTime').val();
var payTimeOther = $('.payTimeOther').val(); var payTimeOther = $('.payTimeOther').val();
// 用户来源
if (is_newClient == null) {
layer.msg('请选择用户来源!');
return false;
}
if (client_source == null) {
layer.msg('请选择用户来源渠道!');
return false;
} else if (client_source == 1) {
if ($('#input-other-source').val() == '') {
layer.msg('请填写其他来源!');
return false;
}
}
// 审核不通过
if (order_status == -1) { if (order_status == -1) {
if (reason == null) { if (reason == null) {
layer.msg('请选择不通过原因!'); layer.msg('请选择不通过原因!');
......
...@@ -14,9 +14,39 @@ ...@@ -14,9 +14,39 @@
<input type="hidden" name="check_failed_info" value=""> <input type="hidden" name="check_failed_info" value="">
<input type="hidden" name="change_pay_type" value=""> <input type="hidden" name="change_pay_type" value="">
<!-- 用户来源 -->
<p>用户来源</p>
<table class="table table-bordered table-hover check-table">
<tr>
<td class="check-table-title" width="20%">是否为新用户:</td>
<td class="check-select">
<label><input class="is_newClient" type="radio" name="is_newClient" value="1"></label>
<label><input class="is_newClient" type="radio" name="is_newClient" value="0"></label>
</td>
</tr>
<tr class="client_source_row" style="display: none;">
<td class="check-table-title">用户从哪里了解我们:</td>
<td>
<div class="multi-reason">
<label><input type="radio" name="client_source" value="QQ群">QQ群</label>
<label><input type="radio" name="client_source" value="微信群">微信群</label>
<label><input type="radio" name="client_source" value="微信公众号">微信公众号</label>
<label><input type="radio" name="client_source" value="朋友介绍">朋友介绍</label>
<label><input type="radio" name="client_source" value="线下广告">线下广告</label>
<label><input type="radio" name="client_source" value="地推">地推</label>
<label><input type="radio" name="client_source" value="1">其他</label>
</div>
<div class="client-input-other">
<textarea name="input-other-source" id="input-other-source" placeholder="请填写其他来源"></textarea>
</div>
</td>
</tr>
</table>
<!-- 审核 --> <!-- 审核 -->
<p>审核</p> <p>审核</p>
<table class="table table-bordered table-hover check-table" style="min-height:150px;"> <table class="table table-bordered table-hover check-table">
<tr> <tr>
<td class="check-table-title" width="20%">付款类型:</td> <td class="check-table-title" width="20%">付款类型:</td>
<td class="check-select"> <td class="check-select">
...@@ -39,13 +69,12 @@ ...@@ -39,13 +69,12 @@
<label><input type="radio" name="reason" value="无现货">无现货</label> <label><input type="radio" name="reason" value="无现货">无现货</label>
<label><input type="radio" name="reason" value="客户不接受附加费">客户不接受附加费</label> <label><input type="radio" name="reason" value="客户不接受附加费">客户不接受附加费</label>
<label><input type="radio" name="reason" value="客户下错单">客户下错单</label> <label><input type="radio" name="reason" value="客户下错单">客户下错单</label>
<label><input type="radio" name="reason" value="1">其他</label>
</div> </div>
<div class="other-reason"> <div class="other-reason">
<label><input type="radio" name="reason" value="1">其他</label>
<textarea name="reason" id="input-reason" placeholder="请填写其他原因"></textarea> <textarea name="reason" id="input-reason" placeholder="请填写其他原因"></textarea>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment