曾超新 5 years ago
parent a426db02e6
commit 7a9b736d3d
  1. 9
      frontend/views/car/order-add.php

@ -499,16 +499,21 @@ use common\models\PriceT;
$.post('/car/post-precise-price', params, function(obj) {
if(obj.code == 200) {
$.post('/car/get-precise-price', params, function(obj) {
console.log(obj);
parent.layer.close(index);
if(obj.code == 200) {
if(obj.data.QuoteStatus > 0) {
if(obj.data && obj.data.QuoteStatus > 0) {
parent.layer.msg('获取成功');
$('#total1').val(obj.data.BizTotal);
$('#total2').val(obj.data.ForceTotal);
$('#total3').val(obj.data.TaxTotal);
$('#total_rate').html('折扣系数:' + obj.data.TotalRate);
} else {
parent.layer.msg(obj.data.QuoteResult);
if(obj.data) {
parent.layer.msg(obj.data.QuoteResult);
} else {
parent.layer.msg('数据为空');
}
}
} else {
parent.layer.msg(obj.msg);

Loading…
Cancel
Save