在添加订单时,添加选择策略按钮

dev
曾超新 5 years ago
parent 1f4a7f0964
commit bf819df4a8
  1. 14
      frontend/views/car/order-add.php

@ -73,6 +73,11 @@ use common\models\PriceT;
<div class="ibox float-e-margins">
<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();">
<i class="fa fa-gift"></i> 获取策略
</a>
</div>
</div>
<div class="ibox-content">
<table class="table table-bordered">
@ -319,6 +324,15 @@ use common\models\PriceT;
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script>
<script>
var o = {};
function getYingXiao() {
layer.msg('操作成功');
var params = $('#orderFrm').serialize();
$.post('/marketing-strategy/select-yingxiao', params, function(obj) {
if(obj.success) {
layer.msg('操作成功');
}
}, 'json');
}
//判断是否填写了选项
function isNull(data){

Loading…
Cancel
Save