曾超新 5 years ago
parent 6998493817
commit 438a62f5b0
  1. 8
      frontend/controllers/CarController.php
  2. 2
      frontend/views/car/order-add.php

@ -758,10 +758,10 @@ class CarController extends BaseController
'form_params' => $params, 'form_params' => $params,
'http_errors' => false, 'http_errors' => false,
]); ]);
echo $url; // echo $url;
var_dump($params); // var_dump($params);
echo $res->getBody(); // echo $res->getBody();
exit; // exit;
if($res->getStatusCode() == 200) { if($res->getStatusCode() == 200) {
$obj = json_decode($res->getBody()); $obj = json_decode($res->getBody());
if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') { if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') {

@ -202,7 +202,7 @@ use common\models\PriceT;
<a class="btn btn-primary btn-xs" data-id="0" href="javascript:void(0);" onclick="getYingXiao();"> <a class="btn btn-primary btn-xs" data-id="0" href="javascript:void(0);" onclick="getYingXiao();">
<i class="fa fa-gift"></i> 获取策略 <i class="fa fa-gift"></i> 获取策略
</a> </a>
<a class="btn btn-primary btn-xs" data-id="0" href="javascript:void(0);" onclick="calInsurance();"> <a class="btn btn-danger btn-xs" data-id="0" href="javascript:void(0);" onclick="calInsurance();">
<i class="fa fa-gift"></i> 获取算费结果 <i class="fa fa-gift"></i> 获取算费结果
</a> </a>
</div> </div>

Loading…
Cancel
Save