$.ajax({
type: 'POST',
dataType: 'JSON',
data: {
memberCode: user.MEMBER_CODE,
giftCode: gift.GIFT_CODE,
exNum: exNum,
memberName: memberName,
phone: phone,
address: address,
bankId: bankId,
bankName: bankName,
bankCard: bankCard
},
url: "../gift.do?exchange",
complete: function(){
$.mobile.loading("hide");
$("#step2_btn_confirm").bind('click', confirmEx);
$("#step2_btn_cancel").removeAttr("disabled");
},
success: function(res){
if (res.code == '1') {
$("#result_img").attr("src", "../images/done.png");
$("#result_text").html("恭喜您成功兑换 <span style='color:#FF6600'>" + exNum + "份" 
+ gift.GIFT_NAME + "(每份价值" + gift.GIFT_PRICE + "元)</span>,您本次共消费积分 " 
+ "<span style='color:#FF6600'>" + (exNum * gift.EX_POINT) + "</span>,谢谢!");
$.mobile.changePage("#step3", {transition: "slide"});
} else {
$("#tooltip2").html("<p>" + res.msg + "</p>");
$("#tooltip2").popup("open");
}
},
error: function(){
$("#tooltip2").html("<p>数据通讯异常,请重试!</p>");
$("#tooltip2").popup("open");
}
});
}function giftEx(){
if (user == null || user.MEMBER_CODE == null) {
$("#tooltip1").html("<p>无效的用户信息</p>");
$("#tooltip1").popup("open");
return;
} else if (gift == null || gift.GIFT_CODE == null){
$("#tooltip1").html("<p>无效的礼品信息</p>");
$("#tooltip1").popup("open");
return;
}
我的dbo.BI_GIFT里面有这个列GIFT_CODE