You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
4.2 KiB
93 lines
4.2 KiB
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
common_obj.form_submit();
|
|
|
|
//提交保存
|
|
$('#recharge-form').submit(function(e) {
|
|
e.preventDefault();
|
|
if (global_obj.check_form($('#recharge-form').find('*[notnull]'))) {
|
|
return false;
|
|
}
|
|
common_obj.showLoading('加载中,请等待');
|
|
$.post($("#recharge-form").find("#do_action").val(), $('#recharge-form').serialize(), function(data) {
|
|
common_obj.hideLoading();
|
|
setTimeout(function() {
|
|
if (data.ret == 1) {
|
|
if (data.msg) {
|
|
alert(data.msg);
|
|
}
|
|
if ($("#recharge-form").find("#do_jump").length) {
|
|
window.location.href = $("#recharge-form").find("#do_jump").val();
|
|
} else {
|
|
window.history.go(-1);
|
|
}
|
|
} else {
|
|
if (data.msg) {
|
|
alert(data.msg);
|
|
return false;
|
|
}
|
|
if (data.url) {
|
|
window.location.href = data.url;
|
|
}
|
|
}
|
|
}, 10);
|
|
|
|
}, 'json');
|
|
});
|
|
});
|
|
</script>
|
|
<section class="wrapper" style="margin-top:0">
|
|
<div class="row">
|
|
<div class="col-lg-4"></div>
|
|
<div class="col-lg-4">
|
|
<section class="panel internal_rolling_1">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
|
×
|
|
</button>
|
|
<h4 class="modal-title" id="myModalLabel">
|
|
商城订单-修改快递信息
|
|
</h4>
|
|
</div>
|
|
<div class="panel-body internal_rolling_2">
|
|
<div class="form">
|
|
<form class="cmxform form-horizontal tasi-form" id="recharge-form">
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2">快递名称</label>
|
|
<div class="col-lg-10">
|
|
<select class="form-control m-bot15" name="express_id" notnull notice="请选择快递公司">
|
|
{volist name="expressList" id="vo"}
|
|
<option value="{$vo.id}" {eq name="data.express_id" value="$vo.id"
|
|
}selected="selected" {/eq}>{$vo.express_company}</option>
|
|
{/volist}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2">快递单号</label>
|
|
<div class="col-lg-10">
|
|
<input class="form-control"
|
|
type="text"
|
|
name="express_number"
|
|
value="{$data.express_number}"
|
|
notnull/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-lg-offset-4 col-lg-8">
|
|
<input class="btn btn-danger" type="submit" value="确认保存">
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="id" value="{$data.id}">
|
|
<input type="hidden" id="do_action" value="{:url('Mall/orderupdate')}">
|
|
<input type="hidden" id="do_jump" value="{:url('Mall/order')}">
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="col-lg-4"></div>
|
|
</div>
|
|
</section> |