Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2a12ba4b
authored
Aug 26, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单列表
1 parent
292944b2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
102 additions
and
145 deletions
api/module/mine.js
constants/mine.js
mixins/orderMixin.js
packageMine/pages/order/index/components/Bottom/Bottom.wxml
packageMine/pages/order/index/components/Content/Content.wxml
packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons.js
packageMine/pages/order/index/components/Top/Top.wxml
packageMine/pages/order/index/components/Top/Top.wxss
packageMine/pages/order/index/index.js
pages/tab/mine/index.js
api/module/mine.js
View file @
2a12ba4
...
@@ -58,7 +58,15 @@ module.exports = {
...
@@ -58,7 +58,15 @@ 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
,
...
data
})
},
/**. 分页查询订单 */
getSalesOrderList
(
data
)
{
return
api
.
post
({
method
:
`scrm.api.shopmall.platform.after.sales.order.page`
,
pageSize
:
99999
,
pageSize
:
99999
,
...
data
...
data
})
})
...
...
constants/mine.js
View file @
2a12ba4
export
const
ToolList
=
Object
.
freeze
([
export
const
ToolList
=
Object
.
freeze
([{
{
text
:
"我的地址"
,
text
:
"我的地址"
,
icon
:
"myAddress"
,
icon
:
"myAddress"
,
url
:
"/packageMine/pages/address/index/index"
,
url
:
"/packageMine/pages/address/index/index"
,
},
},
]);
]);
export
const
OrderStatusEnum
=
{
export
const
OrderStatusEnum
=
{
ALL
:
"0"
,
ALL
:
"0"
,
...
@@ -18,11 +16,12 @@ export const OrderStatusEnum = {
...
@@ -18,11 +16,12 @@ export const OrderStatusEnum = {
AFTER_SALE_REJECTED
:
"10007"
,
//售后审核不通过
AFTER_SALE_REJECTED
:
"10007"
,
//售后审核不通过
AFTER_SALE_REFUNDED
:
"10008"
,
//已退款
AFTER_SALE_REFUNDED
:
"10008"
,
//已退款
AFTER_SALE_REFUNDED_FAILED
:
"10009"
,
//退款失败
AFTER_SALE_REFUNDED_FAILED
:
"10009"
,
//退款失败
AFTER_SALE_REVEAL
:
"10010"
//所有其他状态
};
};
export
const
OrderStatusTypes
=
{
export
const
OrderStatusTypes
=
{
QUERY_TAB
:
"QUERY_TAB"
,
// 查询订单列表TAB项
QUERY_TAB
:
"QUERY_TAB"
,
// 查询订单列表TAB项
MY_ORDER
:
"MY_ORDER"
,
// 我的 页面 我的订单 显示的项目
MY_ORDER
:
"MY_ORDER"
,
// 我的 页面 我的订单 显示的项目
};
};
export
const
GoodsSource
=
{
export
const
GoodsSource
=
{
...
@@ -75,37 +74,32 @@ export const ORDER_STATUS = {
...
@@ -75,37 +74,32 @@ export const ORDER_STATUS = {
image
:
"noPay"
,
image
:
"noPay"
,
status
:
OrderStatusEnum
.
PAY_PENDING
,
status
:
OrderStatusEnum
.
PAY_PENDING
,
index
:
1
,
// 查询订单列表TAB高亮的索引
index
:
1
,
// 查询订单列表TAB高亮的索引
requestType
:
2
,
// 查询订单列表TAB查询参数
requestType
:
2
,
// 查询订单列表TAB查询参数
buttons
:
null
,
buttons
:
null
,
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
},
},
[
OrderStatusEnum
.
WAIT_DELIVER
]:
{
[
OrderStatusEnum
.
WAIT_DELIVER
]:
{
text
:
"待发货"
,
text
:
"待发货"
,
image
:
"noTakeCommodity"
,
image
:
"noTakeCommodity"
,
status
:
OrderStatusEnum
.
WAIT_DELIVER
,
status
:
OrderStatusEnum
.
WAIT_DELIVER
,
index
:
2
,
// 查询订单列表TAB高亮的索引
index
:
2
,
// 查询订单列表TAB高亮的索引
requestType
:
6
,
// 查询订单列表TAB查询参数
requestType
:
6
,
// 查询订单列表TAB查询参数
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
buttons
:
{
buttons
:
null
,
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE
],
//云中鹤商品 在商品列表对应的按钮
},
},
},
[
OrderStatusEnum
.
WAIT_RECEIVE
]:
{
[
OrderStatusEnum
.
WAIT_RECEIVE
]:
{
text
:
"待收货"
,
text
:
"待收货"
,
image
:
"takeCommodity"
,
image
:
"takeCommodity"
,
status
:
1008
,
status
:
1008
,
index
:
3
,
// 查询订单列表TAB高亮的索引
index
:
3
,
// 查询订单列表TAB高亮的索引
requestType
:
1
,
// 查询订单列表TAB查询参数
requestType
:
1
,
// 查询订单列表TAB查询参数
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
//自营商品 在商品列表对应的按钮
OrderActionButtons
.
AFTER_SALE
,
OrderActionButtons
.
CONFIRM_RECEIVE
,
OrderActionButtons
.
CONFIRM_RECEIVE
,
OrderActionButtons
.
SHOW_EXPRESS
,
OrderActionButtons
.
SHOW_EXPRESS
,
],
],
[
GoodsSource
.
YZH
]:
[
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
//云中鹤商品 在商品列表对应的按钮
OrderActionButtons
.
AFTER_SALE
,
OrderActionButtons
.
CONFIRM_RECEIVE
,
OrderActionButtons
.
CONFIRM_RECEIVE
,
OrderActionButtons
.
SHOW_EXPRESS
,
OrderActionButtons
.
SHOW_EXPRESS
,
],
],
...
@@ -114,15 +108,15 @@ export const ORDER_STATUS = {
...
@@ -114,15 +108,15 @@ export const ORDER_STATUS = {
[
OrderStatusEnum
.
COMPLETED
]:
{
[
OrderStatusEnum
.
COMPLETED
]:
{
text
:
"已完成"
,
text
:
"已完成"
,
status
:
OrderStatusEnum
.
COMPLETED
,
status
:
OrderStatusEnum
.
COMPLETED
,
index
:
4
,
// 查询订单列表TAB高亮的索引
index
:
4
,
// 查询订单列表TAB高亮的索引
requestType
:
4
,
// 查询订单列表TAB查询参数
requestType
:
4
,
// 查询订单列表TAB查询参数
type
:
OrderStatusTypes
.
QUERY_TAB
,
// 查询订单列表显示的TAB项
type
:
OrderStatusTypes
.
QUERY_TAB
,
// 查询订单列表显示的TAB项
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
//自营商品 在商品列表对应的按钮
OrderActionButtons
.
SHOW_EXPRESS
,
OrderActionButtons
.
SHOW_EXPRESS
,
OrderActionButtons
.
AFTER_SALE
,
OrderActionButtons
.
AFTER_SALE
,
],
],
[
GoodsSource
.
YZH
]:
[
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
//云中鹤商品 在商品列表对应的按钮
OrderActionButtons
.
SHOW_EXPRESS
,
OrderActionButtons
.
SHOW_EXPRESS
,
OrderActionButtons
.
AFTER_SALE
,
OrderActionButtons
.
AFTER_SALE
,
],
],
...
@@ -133,65 +127,74 @@ export const ORDER_STATUS = {
...
@@ -133,65 +127,74 @@ export const ORDER_STATUS = {
my_order_text
:
"售后"
,
my_order_text
:
"售后"
,
image
:
"aftermarket"
,
image
:
"aftermarket"
,
status
:
OrderStatusEnum
.
AFTER_SALE
,
status
:
OrderStatusEnum
.
AFTER_SALE
,
index
:
5
,
// 查询订单列表TAB高亮的索引
index
:
5
,
// 查询订单列表TAB高亮的索引
requestType
:
3
,
// 查询订单列表TAB查询参数
requestType
:
3
,
// 查询订单列表TAB查询参数
buttons
:
null
,
buttons
:
null
,
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
},
},
[
OrderStatusEnum
.
AFTER_SALE_PENDING_REVIEW
]:
{
[
OrderStatusEnum
.
AFTER_SALE_PENDING_REVIEW
]:
{
text
:
"售后中"
,
text
:
"售后中"
,
status
:
OrderStatusEnum
.
AFTER_SALE_PENDING_REVIEW
,
status
:
OrderStatusEnum
.
AFTER_SALE_PENDING_REVIEW
,
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
},
},
},
},
[
OrderStatusEnum
.
AFTER_SALE_WAIT_RECEIVE
]:
{
[
OrderStatusEnum
.
AFTER_SALE_WAIT_RECEIVE
]:
{
text
:
"售后中"
,
text
:
"售后中"
,
status
:
OrderStatusEnum
.
AFTER_SALE_WAIT_RECEIVE
,
status
:
OrderStatusEnum
.
AFTER_SALE_WAIT_RECEIVE
,
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
},
},
},
},
[
OrderStatusEnum
.
AFTER_SALE_REJECTED
]:
{
[
OrderStatusEnum
.
AFTER_SALE_REJECTED
]:
{
text
:
"审核不通过"
,
text
:
"审核不通过"
,
status
:
OrderStatusEnum
.
AFTER_SALE_REJECTED
,
status
:
OrderStatusEnum
.
AFTER_SALE_REJECTED
,
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE
_REJECTED
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE
,
OrderActionButtons
.
AFTER_SALE_REJECTED
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE
_REJECTED
],
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE
,
OrderActionButtons
.
AFTER_SALE_REJECTED
],
//云中鹤商品 在商品列表对应的按钮
},
},
},
},
[
OrderStatusEnum
.
AFTER_SALE_REFUNDED
]:
{
[
OrderStatusEnum
.
AFTER_SALE_REFUNDED
]:
{
text
:
"已退款"
,
text
:
"已退款"
,
status
:
OrderStatusEnum
.
AFTER_SALE_REFUNDED
,
status
:
OrderStatusEnum
.
AFTER_SALE_REFUNDED
,
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
},
},
},
},
[
OrderStatusEnum
.
AFTER_SALE_REFUNDED_FAILED
]:
{
[
OrderStatusEnum
.
AFTER_SALE_REFUNDED_FAILED
]:
{
text
:
"退款失败"
,
text
:
"退款失败"
,
status
:
OrderStatusEnum
.
AFTER_SALE_REFUNDED_FAILED
,
status
:
OrderStatusEnum
.
AFTER_SALE_REFUNDED_FAILED
,
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
buttons
:
{
buttons
:
{
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
},
},
[
OrderStatusEnum
.
AFTER_SALE_REVEAL
]:
{
text
:
"售后处理中"
,
status
:
OrderStatusEnum
.
AFTER_SALE_REVEAL
,
tips
:
"您可以尝试再次提交退款申请"
,
//售后详情提示语
image
:
"mine/order/error.png"
,
//售后详情页面显示的状态图标
buttons
:
{
[
GoodsSource
.
SELF
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//自营商品 在商品列表对应的按钮
[
GoodsSource
.
YZH
]:
[
OrderActionButtons
.
AFTER_SALE_DETAIL
],
//云中鹤商品 在商品列表对应的按钮
},
},
},
},
};
};
export
const
RefundReason
=
[
export
const
RefundReason
=
[{
{
text
:
"商品无货"
,
text
:
"商品无货"
,
value
:
1
,
value
:
1
,
},
},
...
@@ -241,8 +244,7 @@ export const RefundReason = [
...
@@ -241,8 +244,7 @@ export const RefundReason = [
},
},
];
];
export
const
RefundStatus
=
[
export
const
RefundStatus
=
[{
{
status
:
1
,
status
:
1
,
title
:
"待处理"
,
title
:
"待处理"
,
tips
:
"等待平台处理"
,
tips
:
"等待平台处理"
,
...
@@ -286,8 +288,7 @@ export const RefundStatus = [
...
@@ -286,8 +288,7 @@ export const RefundStatus = [
},
},
];
];
export
const
ExpressList
=
[
export
const
ExpressList
=
[{
{
value
:
0
,
value
:
0
,
text
:
"圆通快递"
,
text
:
"圆通快递"
,
},
},
...
@@ -321,8 +322,7 @@ export const ExpressList = [
...
@@ -321,8 +322,7 @@ export const ExpressList = [
},
},
];
];
export
const
AfterSaleObj
=
[
export
const
AfterSaleObj
=
[{
{
title
:
"退款原因"
,
title
:
"退款原因"
,
key
:
"refundPrice"
,
key
:
"refundPrice"
,
},
},
...
@@ -348,8 +348,7 @@ export const AfterSaleObj = [
...
@@ -348,8 +348,7 @@ export const AfterSaleObj = [
},
},
];
];
export
const
AddressInfo
=
[
export
const
AddressInfo
=
[{
{
title
:
"地址"
,
title
:
"地址"
,
key
:
"address"
,
key
:
"address"
,
},
},
...
@@ -362,8 +361,7 @@ export const AddressInfo = [
...
@@ -362,8 +361,7 @@ export const AddressInfo = [
key
:
"phone"
,
key
:
"phone"
,
},
},
];
];
export
const
OrderStatus
=
[
export
const
OrderStatus
=
[{
{
title
:
"待付款"
,
title
:
"待付款"
,
value
:
"1"
,
value
:
"1"
,
image
:
"mine/order-wait.png"
,
image
:
"mine/order-wait.png"
,
...
...
mixins/orderMixin.js
View file @
2a12ba4
module
.
exports
=
Behavior
({
module
.
exports
=
Behavior
({
data
:
{
data
:
{
//1
:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成
//1
001:待支付 1002:待审核,1003:审核不通过,1004:已取消(交易失败) ,1005:订单异常,1006:待处理,1007: 待发货,1008:已发货,1009:已完成(交易成功),1010:售后处理中,1012 订单关闭
statusEnum
:
{
statusEnum
:
{
1
:
'待付款
'
,
1
001
:
'待支付
'
,
2
:
'已支付
'
,
1002
:
'待审核
'
,
3
:
'已关闭
'
,
1003
:
'审核不通过
'
,
4
:
'已发货
'
,
1004
:
'已取消
'
,
5
:
'已收货
'
,
1005
:
'订单异常
'
,
6
:
'待发货
'
,
1006
:
'待处理
'
,
7
:
'待安装
'
,
1007
:
'待发货
'
,
8
:
'已安装
'
,
1008
:
'已发货
'
,
9
:
'售后中
'
,
1009
:
'已完成
'
,
10
:
'售后完成
'
10
10
:
'售后处理中
'
},
},
/**售后状态
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
:
'已取消'
},
},
/**权益&套餐 */
/**权益&套餐 */
...
...
packageMine/pages/order/index/components/Bottom/Bottom.wxml
View file @
2a12ba4
<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
packageMine/pages/order/index/components/Content/Content.wxml
View file @
2a12ba4
<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.goods
Name}}</view>
<view
class="name text-hide">{{item.goodsSku
Name}}</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="{{i
tem
.specificationData}}">
<view class="specification">{{i.specificationData}}</view>
<view class="specification">{{i
tem
.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>
...
...
packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons.js
View file @
2a12ba4
This diff is collapsed.
Click to expand it.
packageMine/pages/order/index/components/Top/Top.wxml
View file @
2a12ba4
<view class="top">
<view class="top">
<view class="name">订单编号:{{item.
o
rderCode}}</view>
<view class="name">订单编号:{{item.
subO
rderCode}}</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.afterSale
Status]
<view class="status">{{item.
orderStatus ?statusEnum[item.orderStatus]: afterSaleStatus[item.returnOrder
Status]
:statusEnum[item.orderStatus]
}}</view>
}}</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/index/components/Top/Top.wxss
View file @
2a12ba4
...
@@ -8,10 +8,11 @@
...
@@ -8,10 +8,11 @@
}
}
.top .name {
.top .name {
width: 4
1
0rpx;
width: 4
5
0rpx;
height: 40rpx;
height: 40rpx;
font-size: 28rpx;
font-size: 28rpx;
color: #2D2D2E;
color: #2D2D2E;
white-space: nowrap;
}
}
.top .status {
.top .status {
...
...
packageMine/pages/order/index/index.js
View file @
2a12ba4
This diff is collapsed.
Click to expand it.
pages/tab/mine/index.js
View file @
2a12ba4
...
@@ -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,
// });
// });
// }
// });
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment