调试界面

dev
曾超新 5 years ago
parent 732629c43b
commit 9f44ab3aa1
  1. 18
      frontend/views/car/order-add.php

@ -199,12 +199,12 @@ use common\models\PriceT;
<div class="ibox-title">
<h5>保费信息</h5>
<div class="ibox-tools">
<a class="btn btn-primary btn-xs" data-id="0" href="javascript:void(0);" onclick="getYingXiao();">
<button class="btn btn-primary btn-xs" onclick="getYingXiao();">
<i class="fa fa-gift"></i> 获取策略
</a>
<a class="btn btn-success btn-xs" data-id="0" href="javascript:void(0);" onclick="calInsurance();">
<i class="fa fa-gift"></i> 获取算费结果
</a>
</button>
<button class="btn btn-danger btn-xs" onclick="calInsurance();">
<i class="fa fa-calculator"></i> 获取算费结果
</button>
</div>
</div>
<div class="ibox-content">
@ -498,7 +498,15 @@ use common\models\PriceT;
$.post('/car/get-precise-price', params, function(obj) {
parent.layer.close(index);
if(obj.code == 200) {
if(obj.data.QuoteStatus > 0) {
parent.layer.msg('获取成功');
$('#total1').val(obj.data.BizTotal);
$('#total2').val(obj.data.ForceTotal);
$('#total3').val(obj.data.TaxTotal);
$('#total_rate').val(obj.data.TotalRate);
} else {
parent.layer.msg(obj.data.QuoteResult);
}
} else {
parent.layer.msg(obj.msg);
}

Loading…
Cancel
Save