|
@@ -17,6 +17,27 @@
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
+
|
|
|
+ <footer class="mui-bar mui-bar-tab" id="footer-bar-tab">
|
|
|
+ <a class="mui-tab-item">
|
|
|
+ <span class="iconfont icon-shouye"></span>
|
|
|
+ <span class="mui-tab-label">首页</span>
|
|
|
+ </a>
|
|
|
+ <a class="mui-tab-item">
|
|
|
+ <span class="iconfont icon-gouwuche"></span>
|
|
|
+ <span class="mui-tab-label">购物车</span>
|
|
|
+ </a>
|
|
|
+ <a class="mui-tab-item mui-active">
|
|
|
+ <span class="iconfont icon-dingdan"></span>
|
|
|
+ <span class="mui-tab-label">订单</span>
|
|
|
+ </a>
|
|
|
+ <a class="mui-tab-item ">
|
|
|
+ <span class="iconfont icon-wode"></span>
|
|
|
+ <span class="mui-tab-label">我的</span>
|
|
|
+ </a>
|
|
|
+ </footer>
|
|
|
+
|
|
|
+
|
|
|
<div class="loading-bg">
|
|
|
<div class="mui-loading">
|
|
|
<div class="mui-spinner">
|
|
@@ -28,7 +49,7 @@
|
|
|
<div class="mui-content">
|
|
|
<input type="hidden" id="salesPostFirm" name="salesPostFirm" value=""/>
|
|
|
<input type="hidden" id="salesPostNum" name="salesPostNum" value=""/>
|
|
|
-
|
|
|
+
|
|
|
<div style="margin:14px 14px 0 14px;background-color: #f3f3f3;text-align: center;">
|
|
|
<ul class="mui-table-view mui-table-view-striped my-grid-view-no mui-table-view-condensed">
|
|
|
<li class="mui-table-view-cell" style="background-color: #f3f3f3;border-radius: 5px;padding: 11px 8px;">
|
|
@@ -125,6 +146,15 @@
|
|
|
mui.each(order.orderItemList, function(index) {
|
|
|
num += this.itemNum;
|
|
|
str += '<div class="mui-table"><div class="mui-table-cell mui-col-xs-5"><img class="mui-media-object wh-100" src="'+ this.itemProductPic +'"></div><div class="mui-table-cell table-middle mui-col-xs-7" style="line-height:2.5">'+ this.itemProductName +'<h6>颜色:'+ this.itemProductColor +'<span class="center">数量:'+ this.itemNum +'</span></h6><div>¥'+ accDiv(this.itemProductDiscount,100) +'</div></div></div>';
|
|
|
+// mui(this.salesUserGiftList).each(function(index) {
|
|
|
+// var txt_gift = this;
|
|
|
+// if (index == 0) {
|
|
|
+// a += '<h6>赠品:' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
|
|
|
+// } else {
|
|
|
+// a += '<h6> ' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
|
|
|
+// }
|
|
|
+// });
|
|
|
+// str += a
|
|
|
});
|
|
|
document.querySelector('.shopping-cart-list').innerHTML = str;
|
|
|
document.querySelector('.loading-bg').style.display = 'none';
|
|
@@ -145,6 +175,7 @@
|
|
|
var payHtml = '<button type="button" class="mui-btn my-btn-request go_pay" style="margin-right: 20px;">立即支付</button>';
|
|
|
var aftermarketHtml = '<button type="button" class="mui-btn my-btn-request go_aftermarket" style="margin-right: 20px;">我要售后</button>';
|
|
|
var cancelHtml = '<button type="button" class="mui-btn my-btn-request go_cancel" style="margin-right: 20px;">取消申请</button>';
|
|
|
+ var confirmHtml = '<button type="button" class="mui-btn my-btn-request go_confirm" style="margin-right: 20px;">确认收货</button>';
|
|
|
/*订单状态*/
|
|
|
var statusName = "";
|
|
|
var operationHtml = "";
|
|
@@ -184,7 +215,6 @@
|
|
|
break;
|
|
|
case 9 :
|
|
|
statusName = "换货中";
|
|
|
- operationHtml += cancelHtml;
|
|
|
break;
|
|
|
case 10 :
|
|
|
statusName = "换货完成";
|
|
@@ -233,6 +263,35 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ /*确认收货*/
|
|
|
+ mui('body').on('tap', '.go_confirm', function() {
|
|
|
+ confirm_receipt(orderId,status);
|
|
|
+ });
|
|
|
+ //确认收货
|
|
|
+ function confirm_receipt(salesOrderid,status) {
|
|
|
+ var dataArgs = {
|
|
|
+ "orderId": salesOrderid,
|
|
|
+ "status": status
|
|
|
+ };
|
|
|
+ $.ajax(base_path+'/wechat/cart/confirm_receipt', {
|
|
|
+ data: dataArgs,
|
|
|
+ dataType: 'json',
|
|
|
+ type: 'POST',
|
|
|
+ xhrFields: {
|
|
|
+ withCredentials: true
|
|
|
+ },
|
|
|
+ crossDomain: true,
|
|
|
+ timeout: 15000,
|
|
|
+ success: function (dt) {
|
|
|
+ mui.alert(dt.message);
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 立即支付
|
|
|
*/
|