Commit 1165eae3 by 朱继来

添加新用户

parent 6659bab2
...@@ -933,6 +933,8 @@ Class OrderController extends Controller ...@@ -933,6 +933,8 @@ Class OrderController extends Controller
"pf" => 1, "pf" => 1,
"k1" => $check['k1'], "k1" => $check['k1'],
"k2" => $check['k2'], "k2" => $check['k2'],
"is_newClient" => $request->input('is_newClient', ''),
"client_source" => $request->input('client_source') == 1 ? $request->input('input-other-source') : $request->input('client_source'),
]; ];
$temp = json_decode(curlApi($url, $resData, "POST"), true); $temp = json_decode(curlApi($url, $resData, "POST"), true);
......
...@@ -1074,16 +1074,18 @@ ...@@ -1074,16 +1074,18 @@
return false; return false;
} }
if (client_source == null) { if (is_newClient == 1) {
layer.msg('请选择用户来源渠道!'); if (client_source == null) {
return false; layer.msg('请选择用户来源渠道!');
} else if (client_source == 1) {
if ($('#input-other-source').val() == '') {
layer.msg('请填写其他来源!');
return false; 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) {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</td> </td>
</tr> </tr>
<tr class="client_source_row" style="display: none;"> <tr class="client_source_row" style="display: none;">
<td class="check-table-title">用户从哪里了解我们</td> <td class="check-table-title">用户来源</td>
<td> <td>
<div class="multi-reason"> <div class="multi-reason">
<label><input type="radio" name="client_source" value="QQ群">QQ群</label> <label><input type="radio" name="client_source" value="QQ群">QQ群</label>
......
...@@ -476,6 +476,21 @@ ...@@ -476,6 +476,21 @@
</div> </div>
</div> </div>
@if (!empty($order_temp_info) && $order_temp_info['status'] == 2)
<div class="tabs-box">
<table class="table table-bordered table-hover">
<tr>
<td width="10%">是否为新用户:</td>
<td>{{ $order_temp_info['is_newclient'] == 1 ? '是' : '否' }}</td>
@if ($order_temp_info['is_newclient'] == 1)
<td width="10%">用户来源:</td>
<td>{{ $order_temp_info['client_source'] }}</td>
@endif
</tr>
</table>
</div>
@endif
@if (!$isPage) @if (!$isPage)
@if ($action_name == 'sendSales') @if ($action_name == 'sendSales')
......
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