Commit 2a12ba4b by wangzhihui

订单列表

1 parent 292944b2
...@@ -58,11 +58,19 @@ module.exports = { ...@@ -58,11 +58,19 @@ module.exports = {
/**. 分页查询订单 */ /**. 分页查询订单 */
getOrderList(data) { getOrderList(data) {
return api.post({ return api.post({
method: `scrm.api.shopmall.weapp.order.page`, method: `scrm.api.shopmall.platform.order.page`,
pageSize: 99999, pageSize: 99999,
...data ...data
}) })
}, },
/**. 分页查询订单 */
getSalesOrderList(data) {
return api.post({
method: `scrm.api.shopmall.platform.after.sales.order.page`,
pageSize: 99999,
...data
})
},
/**获取订单状态数量 */ /**获取订单状态数量 */
getOrderNumberList(data) { getOrderNumberList(data) {
return api.post({ return api.post({
......
module.exports = Behavior({ module.exports = Behavior({
data: { data: {
//1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成 //1001:待支付 1002:待审核,1003:审核不通过,1004:已取消(交易失败) ,1005:订单异常,1006:待处理,1007: 待发货,1008:已发货,1009:已完成(交易成功),1010:售后处理中,1012 订单关闭
statusEnum: { statusEnum: {
1: '待付款', 1001: '待支付',
2: '已支付', 1002: '待审核',
3: '已关闭', 1003: '审核不通过',
4: '已发货', 1004: '已取消',
5: '已收货', 1005: '订单异常',
6: '待发货', 1006: '待处理',
7: '待安装', 1007: '待发货',
8: '已安装', 1008: '已发货',
9: '售后中', 1009: '已完成',
10: '售后完成' 1010: '售后处理中'
}, },
/**售后状态 1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败;8已取消 */ /**售后状态 (1000:待审核,1001:审核通过,1002:已收货,1003:已退款,1004:已生成新订单,1005:审核不通过,1006:已取消)*/
afterSaleStatus: { afterSaleStatus: {
1: '待审核', 1000: '待审核',
2: '审核通过', 1001: '审核通过',
3: '审核不通过', 1002:'已收货',
4: '待确认收到退货', 1003: '已退款',
5: '退款中', 1005: '审核不通过',
6: '已退款', 1006: '已取消'
7: '退款失败',
8: '已取消'
}, },
/**权益&套餐 */ /**权益&套餐 */
......
<view class="bottom"> <view class="bottom">
<view class="total"> <view class="total">
共{{item.goodsNumber}}件,实付款 共{{item.sellQty||item.applyQty}}件,实付款
<text class="price">{{item.payPrice}}积分</text> <text class="price">{{item.redeemPoints||'--'}}积分</text>
</view> </view>
<order-action-buttons item="{{item}}" has-user-info="{{hasUserInfo}}" /> <order-action-buttons item="{{item}}" has-user-info="{{hasUserInfo}}" />
</view> </view>
\ No newline at end of file \ No newline at end of file
<view class="content-top {{item.orderStatus == 5 || item.orderStatus == 8?'':'content-bottom'}}"> <view class="content-top ">
<block wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind"> <block>
<view class="goods {{item.orderStatus == 5 || item.orderStatus == 8?'addTo':''}}"> <view class="goods">
<view class="icon"> <view class="icon">
<image webp wx:if="{{item.orderSource == 5}}" src="{{item.activityBigImg}}"></image> <image webp src="{{item.goodsImageUrl}}"></image>
<image webp wx:else src="{{i.goodsImage}}"></image>
</view> </view>
<view class="info"> <view class="info">
<view class="info-top"> <view class="info-top">
<view class="name text-hide">{{item.orderSource == 5 ? item.activityName: i.goodsName}}</view> <view class="name text-hide">{{item.goodsSkuName}}</view>
<view class="number"> <view class="number">
<mp-icon icon="close" color="#656566" size="{{12}}"></mp-icon>{{item.orderSource == 5 ? 1: i.goodsNumber}} <mp-icon icon="close" color="#656566" size="{{12}}"></mp-icon>{{item.sellQty||item.applyQty}}
</view> </view>
</view> </view>
<view class="info-bottom"> <view class="info-bottom">
<block wx:if="{{i.specificationData}}"> <block wx:if="{{item.specificationData}}">
<view class="specification">{{i.specificationData}}</view> <view class="specification">{{item.specificationData}}</view>
</block> </block>
<view class="price"> <view class="price">
{{item.orderSource == 5 ? item.payPrice: (i.activityPrice ||i.retailPrice)}}积分 {{item.redeemPoints||'--'}}积分
</view> </view>
</view> </view>
<!-- !hasUserInfo -->
<!-- <view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="onLookEvaluate" data-item="{{item}}">查看评价</view>
</block>
<block wx:else>
<button catchtap="onGetUserProfile" wx:if="{{!hasUserInfo}}" class="btn confirm userProfile" data-item="{{item}}"> 立即评价 </button>
<view class="btn confirm" catchtap="onEvaluate" wx:else data-item="{{item}}">立即评价</view>
</block>
</block>
</view> -->
</view> </view>
</view> </view>
</block> </block>
......
<view class="top"> <view class="top">
<view class="name">订单编号:{{item.orderCode}}</view> <view class="name">订单编号:{{item.subOrderCode}}</view>
<!-- 订单状态 orderStatus(1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成) <!-- 订单状态 orderStatus(订单状态(1001:待支付 1002:待审核,1003:审核不通过,1004:已取消(交易失败) ,1005:订单异常,1006:待处理,1007: 待发货,1008:已发货,1009:已完成(交易成功),1010:售后处理中,1012 订单关闭)
售后订单状态 afterSaleStatus(1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败) 售后订单状态 afterSaleStatus(1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败)
--> -->
<view class="status">{{item.afterSaleStatus ? afterSaleStatus[item.afterSaleStatus] <view class="status">{{item.orderStatus ?statusEnum[item.orderStatus]: afterSaleStatus[item.returnOrderStatus]
:statusEnum[item.orderStatus]}}</view> }}</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -8,10 +8,11 @@ ...@@ -8,10 +8,11 @@
} }
.top .name { .top .name {
width: 410rpx; width: 450rpx;
height: 40rpx; height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
color: #2D2D2E; color: #2D2D2E;
white-space: nowrap;
} }
.top .status { .top .status {
......
...@@ -123,41 +123,6 @@ Page({ ...@@ -123,41 +123,6 @@ Page({
} }
}) })
}, },
// 获取用户会员信息
toCheckMember() {
// wx.p.router.intercept(false).then((sid) => {
// if (sid) {
// this.setData({
// isMember: false,
// memberFlag: true,
// });
// } else {
// wx.p.api.equityApi.checkOpenMember().then((res) => {
// let flag = false,
// identity = 0; // 普通会员3 银卡2 金卡1 非会员 0
// if (res.data && res.data.validitDate) {
// res.data.time = new Date(res.data.validitDate).format("yyyy.MM.dd");
// }
// if (res.data && res.data.endTime) {
// res.data.endTime = new Date(res.data.endTime).format("yyyy.MM.dd");
// }
// if (res.code == 0 && res.data) {
// flag = true;
// identity = 3;
// if (res.data && res.data.cardTypeSpecial)
// identity = res.data.cardTypeSpecial;
// }
// wx.p.storage.set("isVIP", flag);
// this.setData({
// isMember: flag,
// vipInfo: res.data,
// identity,
// memberFlag: true,
// });
// });
// }
// });
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!