更新控件

dev
曾超新 5 years ago
parent 11722accea
commit 1600836b49
  1. 21
      frontend/views/car/order-add.php

@ -5,6 +5,8 @@ use common\models\PriceT;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="/assets/css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
<link href="/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
@ -341,6 +343,7 @@ use common\models\PriceT;
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/ionRangeSlider/ion.rangeSlider.min.js"></script>
<script>
var o = {};
var fanxian_rate = 0, max_fanxian = 0;
@ -363,11 +366,6 @@ use common\models\PriceT;
$('#seats').val(obj.data.UserInfo.SeatCount);
}
}
if(obj.data.VehicleItems && obj.data.VehicleItems[0]) {
if(obj.data.VehicleItems[0].PurchasePrice) {
$('#purchase_price').val(obj.data.VehicleItems[0].PurchasePrice);
}
}
if(obj.data.SaveQuote) {
if(obj.data.SaveQuote.BoLi) {
if(obj.data.SaveQuote.BoLi == '0') $('#types_6').val('');
@ -459,6 +457,19 @@ use common\models\PriceT;
else $('#types_9').val('否');
}
}
if(obj.data.VehicleItems && obj.data.VehicleItems[0]) {
if(obj.data.VehicleItems[0].PurchasePrice) {
$('#purchase_price').val(obj.data.VehicleItems[0].PurchasePrice);
}
if(obj.data.VehicleItems[0].DepreciationPrice) {
$('#types_1').val(obj.data.VehicleItems[0].DepreciationPrice);
$('#types_1').ionRangeSlider({
min: obj.data.VehicleItems[0].DownPrice,
max: obj.data.VehicleItems[0].UpPrice,
from: obj.data.VehicleItems[0].DepreciationPrice,
});
}
}
}
}, 'json');
}

Loading…
Cancel
Save