添加算费按钮

dev
曾超新 5 years ago
parent c0ca220828
commit b1fd004370
  1. 2
      frontend/controllers/CarController.php
  2. 5
      frontend/views/car/order-add.php

@ -770,7 +770,7 @@ class CarController extends BaseController
} }
return MyLib::error3($res->getBody()); return MyLib::error3($res->getBody());
} }
public function actionInfo() public function actionInfo()
{ {
$request = Yii::$app->request; $request = Yii::$app->request;

@ -202,6 +202,9 @@ 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();">
<i class="fa fa-gift"></i> 获取算费结果
</a>
</div> </div>
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
@ -485,7 +488,7 @@ use common\models\PriceT;
}, 'json'); }, 'json');
} }
//算费 //算费
function cal() { function calInsurance() {
var index = parent.layer.load(1, { var index = parent.layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景 shade: [0.1,'#fff'] //0.1透明度的白色背景
}); });

Loading…
Cancel
Save