|
@@ -211,8 +211,10 @@ mui('body').on('tap','.btn-clearing',function(){
|
|
isPay = false; // 锁定请求按钮
|
|
isPay = false; // 锁定请求按钮
|
|
var orderItemJson=[];
|
|
var orderItemJson=[];
|
|
$(".shopping-cart-list input[type='checkbox']:checked").each(function(){
|
|
$(".shopping-cart-list input[type='checkbox']:checked").each(function(){
|
|
- orderItemJson.push({"productId":$(this).attr("pro"),"colorId":$(this).attr("color"),"itemNum":$(this).val()});
|
|
|
|
|
|
+ var em = $(this).parent().find(".mui-input-numbox");
|
|
|
|
+ orderItemJson.push({"productId":$(em).attr("pro"),"colorId":$(em).attr("color"),"itemNum":$(em).val()});
|
|
});
|
|
});
|
|
|
|
+ var orderJson = JSON.stringify(orderItemJson);
|
|
/* 组装数据 */
|
|
/* 组装数据 */
|
|
var dataArgs = {
|
|
var dataArgs = {
|
|
"agentAddressInfo": wechatAddr.detailInfo,
|
|
"agentAddressInfo": wechatAddr.detailInfo,
|
|
@@ -220,10 +222,10 @@ mui('body').on('tap','.btn-clearing',function(){
|
|
"agentAddressTel": wechatAddr.userTel,
|
|
"agentAddressTel": wechatAddr.userTel,
|
|
"agentAddressName": wechatAddr.userName,
|
|
"agentAddressName": wechatAddr.userName,
|
|
"agentAdminRemark":remark,
|
|
"agentAdminRemark":remark,
|
|
- "agentOrderItemJson": orderItemJson
|
|
|
|
|
|
+ "agentOrderItemJson": orderJson
|
|
};
|
|
};
|
|
|
|
|
|
- mui.ajax(base_path +'/agentOrder/payBefore', { // 提交订单,准备支付
|
|
|
|
|
|
+ mui.ajax('/tooth/pay/payBefore', { // 提交订单,准备支付
|
|
data: dataArgs,
|
|
data: dataArgs,
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
type: 'POST',
|
|
type: 'POST',
|
|
@@ -242,7 +244,7 @@ mui('body').on('tap','.btn-clearing',function(){
|
|
var orderIds = {
|
|
var orderIds = {
|
|
"orderId": dt.data.orderId
|
|
"orderId": dt.data.orderId
|
|
};
|
|
};
|
|
- var url = base_path+"/order/checkOrderPaySuccess";
|
|
|
|
|
|
+ var url = base_path+"/agentOrder/checkOrderPaySuccess";
|
|
$.getJSON(url, {
|
|
$.getJSON(url, {
|
|
"s": new Date().getTime(),
|
|
"s": new Date().getTime(),
|
|
"orderId": dt.data.orderId
|
|
"orderId": dt.data.orderId
|