editprice.html
3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<include file="public/layout" />
<style type="text/css">
html, body {
overflow: visible;
}
</style>
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title"><a class="back" href="javascript:history.back();" title="订单价格修改"><i class="fa fa-arrow-circle-o-left"></i></a>
<div class="subject">
<h3>订单价格修改</h3>
<h5>调整订单价格或运费</h5>
</div>
</div>
</div>
<form action="{:U('Admin/Order/editprice',array('order_id'=>$order['order_id']))}" method="post" name="priceForm">
<div class="ncap-form-default">
<dl class="row">
<dt class="tit">
<label>商品总价</label>
</dt>
<dd class="opt">
{$order.goods_price}
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label for="shipping_price">物流运费</label>
</dt>
<dd class="opt">
<input name="shipping_price" id="shipping_price" placeholder="请填写运费价格" type="text" value="{$order.shipping_price}" class="input-txt" onkeyup="this.value=this.value.replace(/[^\d.]/g,'')" onpaste="this.value=this.value.replace(/[^\d.]/g,'')">
<p class="notic">物流运费</p>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label for="discount">订单价格微调</label>
</dt>
<dd class="opt">
<input name="discount" id="discount" placeholder="请填差价" type="text" class="input-txt" value="{$order.discount}" onkeyup="this.value=this.value.replace(/[^-?\d.]/g,'')" onpaste="this.value=this.value.replace(/[^-?\d.]/g,'')">
<p class="notic">请直接输入要调整的金额, 如果是正数价格下调, 负数价格上调</p>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>订单总金额</label>
</dt>
<dd class="opt">
{$order.total_amount}
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>使用余额</label>
</dt>
<dd class="opt">
{$order.user_money}
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>使用积分</label>
</dt>
<dd class="opt">
{$order.integral}
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>应付金额</label>
</dt>
<dd class="opt">
{$order.order_amount}
</dd>
</dl>
<div class="bot">
<a href="JavaScript:void(0);" onclick="document.priceForm.submit()" class="ncap-btn-big ncap-btn-green" >保存</a>
<a href="JavaScript:void(0);" onClick="javascript:history.go(-1)" class="ncap-btn-big ncap-btn-mini">取消</a>
</div>
</div>
</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#handlepost").validate({
debug: true, //调试模式取消submit的默认提交功能
focusInvalid: false, //当为false时,验证无效时,没有焦点响应
onkeyup: false,
submitHandler: function(form){ //表单提交句柄,为一回调函数,带一个参数:form
layer.msg('加载中...', {icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: '10px', time:100000}) ;
form.submit(); //提交表单
},
ignore:":button", //不验证的元素
rules:{
keyword:{
required:true
},
text:{
required:true
}
},
messages:{
keyword:{
required:"请输入关键词"
},
text:{
required:"请填写回复内容"
}
}
});
});
function formSubmit(){
$("#handlepost").submit();
}
</script>
</body>
</html>