- /**
- *订单取消
- *@return{Boolean}处理是否成功
- */
- functionorderCancel(orderId,commant){
- varflag=false;
- $.ajax({
- type:"POST",
- url:"../order/orderCancel.action",//orderModifyStatus
- data:{"orderId":orderId,"commant":commant},
- dataType:"json",
- async:false,108); list-style:decimal outside; color:inherit; line-height:1.6; margin:0px!important; padding:0px 3px 0px 10px!important"> cache: success:function(data){
- varmember=eval("("+data+")");//包数据解析为json格式
- if(member.success=="true"){
- flag=true;
- }elseif(member.success=="false"){
- alert(member.info);
- }
- },
- error:function(json){
- alert("订单取消异常,请刷新后重试...");
- });
- hidediv();
- returnflag;
- }
2. data: "orderId=" + orderId + "&commant=" + commant