Commit 2a12ba4b by wangzhihui

订单列表

1 parent 292944b2
......@@ -58,11 +58,19 @@ module.exports = {
/**. 分页查询订单 */
getOrderList(data) {
return api.post({
method: `scrm.api.shopmall.weapp.order.page`,
method: `scrm.api.shopmall.platform.order.page`,
pageSize: 99999,
...data
})
},
/**. 分页查询订单 */
getSalesOrderList(data) {
return api.post({
method: `scrm.api.shopmall.platform.after.sales.order.page`,
pageSize: 99999,
...data
})
},
/**获取订单状态数量 */
getOrderNumberList(data) {
return api.post({
......
module.exports = Behavior({
data: {
//1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成
//1001:待支付 1002:待审核,1003:审核不通过,1004:已取消(交易失败) ,1005:订单异常,1006:待处理,1007: 待发货,1008:已发货,1009:已完成(交易成功),1010:售后处理中,1012 订单关闭
statusEnum: {
1: '待付款',
2: '已支付',
3: '已关闭',
4: '已发货',
5: '已收货',
6: '待发货',
7: '待安装',
8: '已安装',
9: '售后中',
10: '售后完成'
1001: '待支付',
1002: '待审核',
1003: '审核不通过',
1004: '已取消',
1005: '订单异常',
1006: '待处理',
1007: '待发货',
1008: '已发货',
1009: '已完成',
1010: '售后处理中'
},
/**售后状态 1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败;8已取消 */
/**售后状态 (1000:待审核,1001:审核通过,1002:已收货,1003:已退款,1004:已生成新订单,1005:审核不通过,1006:已取消)*/
afterSaleStatus: {
1: '待审核',
2: '审核通过',
3: '审核不通过',
4: '待确认收到退货',
5: '退款中',
6: '已退款',
7: '退款失败',
8: '已取消'
1000: '待审核',
1001: '审核通过',
1002:'已收货',
1003: '已退款',
1005: '审核不通过',
1006: '已取消'
},
/**权益&套餐 */
......
<view class="bottom">
<view class="total">
共{{item.goodsNumber}}件,实付款
<text class="price">{{item.payPrice}}积分</text>
共{{item.sellQty||item.applyQty}}件,实付款
<text class="price">{{item.redeemPoints||'--'}}积分</text>
</view>
<order-action-buttons item="{{item}}" has-user-info="{{hasUserInfo}}" />
</view>
\ No newline at end of file
<view class="content-top {{item.orderStatus == 5 || item.orderStatus == 8?'':'content-bottom'}}">
<block wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="goods {{item.orderStatus == 5 || item.orderStatus == 8?'addTo':''}}">
<view class="content-top ">
<block>
<view class="goods">
<view class="icon">
<image webp wx:if="{{item.orderSource == 5}}" src="{{item.activityBigImg}}"></image>
<image webp wx:else src="{{i.goodsImage}}"></image>
<image webp src="{{item.goodsImageUrl}}"></image>
</view>
<view class="info">
<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">
<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 class="info-bottom">
<block wx:if="{{i.specificationData}}">
<view class="specification">{{i.specificationData}}</view>
<block wx:if="{{item.specificationData}}">
<view class="specification">{{item.specificationData}}</view>
</block>
<view class="price">
{{item.orderSource == 5 ? item.payPrice: (i.activityPrice ||i.retailPrice)}}积分
{{item.redeemPoints||'--'}}积分
</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>
</block>
......
<view class="top">
<view class="name">订单编号:{{item.orderCode}}</view>
<!-- 订单状态 orderStatus(1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成)
<view class="name">订单编号:{{item.subOrderCode}}</view>
<!-- 订单状态 orderStatus(订单状态(1001:待支付 1002:待审核,1003:审核不通过,1004:已取消(交易失败) ,1005:订单异常,1006:待处理,1007: 待发货,1008:已发货,1009:已完成(交易成功),1010:售后处理中,1012 订单关闭)
售后订单状态 afterSaleStatus(1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败)
-->
<view class="status">{{item.afterSaleStatus ? afterSaleStatus[item.afterSaleStatus]
:statusEnum[item.orderStatus]}}</view>
<view class="status">{{item.orderStatus ?statusEnum[item.orderStatus]: afterSaleStatus[item.returnOrderStatus]
}}</view>
</view>
\ No newline at end of file
......@@ -8,10 +8,11 @@
}
.top .name {
width: 410rpx;
width: 450rpx;
height: 40rpx;
font-size: 28rpx;
color: #2D2D2E;
white-space: nowrap;
}
.top .status {
......
......@@ -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!