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 c7542061
authored
Aug 27, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售后详情
1 parent
fa60aac2
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
298 additions
and
173 deletions
api/module/shopmall.js
app.wxss
constants/mine.js
packageMine/pages/order/afterSaleDetail/afterSaleDetail.js
packageMine/pages/order/afterSaleDetail/afterSaleDetail.wxml
packageMine/pages/order/afterSaleDetail/components/AfterSaleInfoBox/AfterSaleInfoBox.wxml
packageMine/pages/order/afterSaleDetail/components/ReSubmitButton/ReSubmitButton.js
packageMine/pages/order/afterSaleDetail/components/ReSubmitButton/ReSubmitButton.wxml
packageMine/pages/order/afterSaleDetail/components/RefundStatus/RefundStatus.wxml
packageMine/pages/order/afterSaleDetail/components/RefundStatus/RefundStatus.wxss
packageMine/pages/order/afterSaleDetail/components/ReturnAddressBox/ReturnAddressBox.js
packageMine/pages/order/afterSaleDetail/components/ReturnAddressBox/ReturnAddressBox.wxml
packageMine/pages/order/afterSaleDetail/components/ReturnAddressBox/ReturnAddressBox.wxss
packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons.js
packageMine/pages/order/index/index.js
api/module/shopmall.js
View file @
c754206
...
@@ -82,48 +82,6 @@ module.exports = {
...
@@ -82,48 +82,6 @@ module.exports = {
})
})
},
},
/**活动详情 */
getActivityDetail
(
id
)
{
return
api
.
fetch
(
'scrm.api.shopmall.weapp.activity.detail'
,
{
id
})
},
/** 根据商品ID获取商品 */
getGoodsDetail
(
id
)
{
return
api
.
fetch
(
'scrm.api.shopmall.weapp.goods.getById.HMD'
,
{
id
,
viewAmount
:
true
})
},
/** 获取商品关联优惠券列表 */
getGoodscouponList
(
data
)
{
return
api
.
fetch
(
'scrm.api.coupon.seahorse.knife.goods.list'
,
data
)
},
/** 领取商品详情优惠券 */
getCoupon
(
data
)
{
return
api
.
fetch
(
'scrm.api.coupon.customer.receive'
,
data
)
},
/**根据规格值组合获取规格组合库存及零售价 */
getGoodsSpecificationExtra
(
data
)
{
return
api
.
post
({
method
:
`scrm.api.shopmall.weapp.goods.getGoodsSpecificationExtra`
,
...
data
})
},
/** 小程序端根据优惠券id查询可使用商品列表(分页) */
getCouponGoodsPage
(
data
)
{
data
.
pageSize
=
8
return
api
.
post
({
method
:
'scrm.app.shopmall.coupon.goods.page'
,
...
data
})
},
//取消付款
//取消付款
cancelPay
(
orderCode
)
{
cancelPay
(
orderCode
)
{
return
api
.
fetch
(
'scrm.api.shopmall.weapp.order.cancelPay'
,
{
return
api
.
fetch
(
'scrm.api.shopmall.weapp.order.cancelPay'
,
{
...
@@ -144,61 +102,52 @@ module.exports = {
...
@@ -144,61 +102,52 @@ module.exports = {
orderCode
orderCode
})
})
},
},
/**
为售后添加退货快递信息
*/
/**
售后寄回商品填写快递信息
*/
addDelivery
(
data
)
{
addDelivery
(
data
)
{
return
api
.
post
({
return
api
.
post
({
method
:
`scrm.api.shopmall.
weapp.orderRefund.addDelivery
`
,
method
:
`scrm.api.shopmall.
platform.sendBack.goods
`
,
...
data
...
data
})
})
},
},
/**云中鹤查看物流列表(售后寄回)*/
requestSubscribeMessage
()
{
queryExpressList
(
data
=
{}){
return
api
.
fetch
(
'scrm.api.shopmall.weapp.order.listSubscribeMsgTemplateIds'
)
},
/** 确认收货 */
confirmReceipt
(
orderCode
)
{
return
api
.
post
({
return
api
.
post
({
method
:
`scrm.api.shopmall.weapp.order.confirmReceipt`
,
method
:
'scrm.api.shopmall.platform.query.expressList'
,
orderCode
...
data
})
})
},
},
/** 云中鹤-售后订单详情*/
/**分类列表
platformSaleDetail
(
data
)
{
*
return
api
.
post
({
*/
method
:
'scrm.api.shopmall.platform.afterSales.detail'
,
getMerchantClassify
(
data
)
{
return
api
.
post
({
method
:
`scrm.api.shopmall.classify.page.curMerchant`
,
pageSize
:
9999
,
currentPage
:
1
,
...
data
...
data
})
})
},
},
/**
分类商品
*/
/**
自营-售后订单详情
*/
getMerchantClassifyGoods
(
data
)
{
afterSaleDetail
(
data
)
{
return
api
.
post
({
return
api
.
post
({
method
:
`scrm.api.shopmall.classify.getById`
,
method
:
'scrm.api.shopmall.points.afterSales.detail'
,
pageSize
:
10
,
currentPage
:
1
,
...
data
...
data
})
})
},
},
/**
获取活动分享链接
*/
/**
确认收货
*/
getActivitylink
(
id
)
{
confirmReceipt
(
orderCode
)
{
return
api
.
post
({
return
api
.
post
({
method
:
'scrm.api.shopmall.activity.get.shared'
,
method
:
`scrm.api.shopmall.weapp.order.confirmReceipt`
,
id
orderCode
})
})
},
},
/** 获取商品分享链接 */
getGoodslink
(
id
)
{
/**平台商城接口---取消售后 */
platformEditSale
(
data
)
{
return
api
.
post
({
return
api
.
post
({
method
:
'scrm.api.shopmall.goods.get.shared
'
,
method
:
'scrm.api.shopmall.platform.afterSales.cancel
'
,
id
...
data
})
})
},
},
/** 查看物流轨迹 */
/** 查看物流轨迹 */
queryLogistics
(
data
)
{
queryLogistics
(
data
)
{
...
...
app.wxss
View file @
c754206
...
@@ -54,3 +54,11 @@ image {
...
@@ -54,3 +54,11 @@ image {
font-size: 28rpx;
font-size: 28rpx;
color: #1B233D;
color: #1B233D;
}
}
.express-box{
height:1200rpx;
}
.express-box .weui-actionsheet__menu{
height:calc(100% - 100rpx);
overflow-y: auto;
}
\ No newline at end of file
\ No newline at end of file
constants/mine.js
View file @
c754206
...
@@ -132,7 +132,7 @@ export const ORDER_STATUS = {
...
@@ -132,7 +132,7 @@ export const ORDER_STATUS = {
image
:
"aftermarket"
,
image
:
"aftermarket"
,
status
:
OrderStatusEnum
.
AFTER_SALE
,
status
:
OrderStatusEnum
.
AFTER_SALE
,
index
:
5
,
// 查询订单列表TAB高亮的索引
index
:
5
,
// 查询订单列表TAB高亮的索引
requestType
:
3
,
// 查询订单列表TAB查询参数
requestType
:
0
,
// 查询订单列表TAB查询参数
buttons
:
null
,
buttons
:
null
,
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
type
:
OrderStatusTypes
.
MY_ORDER
,
//我的 页面 我的订单 显示的项目
},
},
...
@@ -263,50 +263,69 @@ export const RefundReason = [{
...
@@ -263,50 +263,69 @@ export const RefundReason = [{
value
:
1016
,
value
:
1016
,
},
},
];
];
export
const
RefundReasonKeyList
=
{
1001
:
"商品无货"
,
1002
:
"发货时间问题"
,
1003
:
"不想要了/不喜欢"
,
1004
:
"商品信息填写错误"
,
1005
:
"地址信息填写错误"
,
1006
:
"商品降价"
,
1007
:
"其他"
,
1008
:
"尺码不合适"
,
1009
:
"无理由退货"
,
1010
:
"发票问题"
,
1011
:
"商品与页面描述不符"
,
1012
:
"发错货"
,
1013
:
"质量问题"
,
1014
:
"买错尺码/颜色/型号"
,
1015
:
"商品缺少或破损"
,
1016
:
"买错了"
};
export
const
RefundStatus
=
[{
export
const
RefundStatus
=
[{
status
:
1
,
status
:
1
,
title
:
"待处理"
,
title
:
"待处理"
,
tips
:
"等待平台处理"
,
tips
:
"等待平台处理"
,
image
:
"mine/order/wait
.png"
,
image
:
"status/loading
.png"
,
},
},
{
{
status
:
2
,
status
:
2
,
title
:
"待发货"
,
title
:
"待发货"
,
tips
:
"等待平台处理"
,
tips
:
"等待平台处理"
,
image
:
"mine/order/wait
.png"
,
image
:
"status/loading
.png"
,
},
},
{
{
status
:
3
,
status
:
3
,
title
:
"待确认收到退货"
,
title
:
"待确认收到退货"
,
tips
:
"等待平台处理"
,
tips
:
"等待平台处理"
,
image
:
"mine/order/wait
.png"
,
image
:
"status/loading
.png"
,
},
},
{
{
status
:
4
,
status
:
4
,
title
:
"退款中"
,
title
:
"退款中"
,
tips
:
"等待平台处理"
,
tips
:
"等待平台处理"
,
image
:
"mine/order/wait
.png"
,
image
:
"status/loading
.png"
,
},
},
{
{
status
:
5
,
status
:
5
,
title
:
"已退款"
,
title
:
"已退款"
,
tips
:
"钱款已退回至原账户"
,
tips
:
"钱款已退回至原账户"
,
image
:
"mine/order
/success.png"
,
image
:
"status
/success.png"
,
},
},
{
{
status
:
6
,
status
:
6
,
title
:
"退款失败"
,
title
:
"退款失败"
,
tips
:
"您可以尝试再次提交退款申请"
,
tips
:
"您可以尝试再次提交退款申请"
,
image
:
"mine/order/error
.png"
,
image
:
"status/fail
.png"
,
},
},
{
{
status
:
7
,
status
:
7
,
title
:
"审核不通过"
,
title
:
"审核不通过"
,
tips
:
"您可以尝试再次提交退款申请"
,
tips
:
"您可以尝试再次提交退款申请"
,
image
:
"mine/order/error
.png"
,
image
:
"status/fail
.png"
,
},
},
];
];
export
const
ExpressList
=
[{
export
const
ExpressList
=
[{
value
:
0
,
value
:
0
,
...
@@ -344,27 +363,30 @@ export const ExpressList = [{
...
@@ -344,27 +363,30 @@ export const ExpressList = [{
export
const
AfterSaleObj
=
[{
export
const
AfterSaleObj
=
[{
title
:
"退款原因"
,
title
:
"退款原因"
,
key
:
"refundPrice"
,
key
:
"returnReasonType"
,
enum
:
RefundReasonKeyList
},
},
{
{
title
:
"退款金额"
,
title
:
"退款金额"
,
key
:
"refundPrice"
,
key
:
"refundPoints"
,
unit
:
'积分'
},
},
{
{
title
:
"退款数量"
,
title
:
"退款数量"
,
key
:
"goodsNumber"
,
key
:
"applyQty"
,
unit
:
'件'
},
},
{
{
title
:
"售后编号"
,
title
:
"售后编号"
,
key
:
"
o
rderCode"
,
key
:
"
tparReturnO
rderCode"
,
},
},
{
{
title
:
"申请时间"
,
title
:
"申请时间"
,
key
:
"
tim
e"
,
key
:
"
createdDat
e"
,
},
},
{
{
title
:
"申请描述"
,
title
:
"申请描述"
,
key
:
"re
mark
"
,
key
:
"re
turnContent
"
,
},
},
];
];
...
@@ -374,7 +396,7 @@ export const AddressInfo = [{
...
@@ -374,7 +396,7 @@ export const AddressInfo = [{
},
},
{
{
title
:
"收货人"
,
title
:
"收货人"
,
key
:
"
name
"
,
key
:
"
receiver
"
,
},
},
{
{
title
:
"联系电话"
,
title
:
"联系电话"
,
...
...
packageMine/pages/order/afterSaleDetail/afterSaleDetail.js
View file @
c754206
...
@@ -7,84 +7,116 @@ Page({
...
@@ -7,84 +7,116 @@ Page({
express_no
:
""
,
express_no
:
""
,
},
},
// Mock数据用于页面展示
// Mock数据用于页面展示
orderInfo
:
{
orderInfo
:
{}
refundStatus
:
1
,
// 1:待处理
orderClassify
:
1
,
orderSource
:
5
,
orderStatus
:
9
,
activityBigImg
:
"https://picsum.photos/200/200"
,
activityName
:
"洗车服务券"
,
orderGoods
:
[
{
id
:
"106"
,
goodsImage
:
"https://picsum.photos/200/200"
,
goodsName
:
"洗车服务券"
,
specificationData
:
"1次洗车服务"
,
retailPrice
:
"299"
,
activityPrice
:
null
,
goodsNumber
:
1
,
warrantyDate
:
"2024-09-01 11:30:00"
,
},
],
refundType
:
1
,
// 1:我要退款退货
goodsName
:
[
"商品名称1"
,
"商品名称2"
],
refundPrice
:
"1000积分"
,
time
:
"2023-05-20 12:00:00"
,
remark
:
"商品质量有问题,申请退款退货"
,
orderCode
:
"2023052012000001"
,
deliveryCompany
:
"顺丰快递"
,
goodsNumber
:
1
,
deliveryNumber
:
"SF1234567890"
,
imgUrls
:
[
"https://picsum.photos/200/200"
,
"https://picsum.photos/200/200"
,
"https://picsum.photos/200/200"
,
],
createdDate
:
"2023-05-20T12:00:00"
,
},
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
// this.getOrderRefundDetail(options.orderCode)
wx
.
p
.
router
.
getRouterParams
(
options
).
then
(
params
=>
{
},
if
(
params
)
{
this
.
setData
({
...
params
})
this
.
getOrderAfterSaleDetail
(
params
.
subOrderCode
)
}
})
getOrderRefundDetail
(
orderCode
)
{
},
submitlogistics
()
{
this
.
getOrderAfterSaleDetail
()
},
getOrderAfterSaleDetail
()
{
wx
.
p
.
wxApi
.
showLoading
(
"加载中..."
);
wx
.
p
.
wxApi
.
showLoading
(
"加载中..."
);
wx
.
p
.
api
.
shopmallApi
.
getOrderRefundDetail
(
orderCode
).
then
((
data
)
=>
{
let
{
goodsSource
,
tparReturnOrderCode
,
subOrderCode
}
=
this
.
data
,
Methods
=
goodsSource
==
2
?
'afterSaleDetail'
:
'platformSaleDetail'
wx
.
p
.
api
.
shopmallApi
[
Methods
]({
subOrderCode
,
tparReturnOrderCode
}).
then
((
res
)
=>
{
wx
.
hideLoading
();
wx
.
hideLoading
();
if
(
data
.
refundStatus
==
2
&&
data
.
refundType
==
1
)
{
let
status
=
0
wx
.
p
.
router
.
redirectTo
(
if
(
res
.
returnOrderStatus
==
1000
||
res
.
returnOrderStatus
==
1002
||
res
.
returnOrderStatus
==
1001
||
res
.
returnOrderStatus
==
1004
||
(
res
.
returnOrderStatus
==
1003
&&
res
.
outRefundType
==
2
))
{
"/packageMine/pages/order/afterSale_step_three/afterSale_step_three"
,
status
=
0
data
}
else
if
(
res
.
returnOrderStatus
==
1003
&&
res
.
outRefundType
==
0
)
{
);
status
=
1
return
;
}
else
if
(
res
.
returnOrderStatus
==
1005
||
(
res
.
returnOrderStatus
==
1003
&&
res
.
outRefundType
==
3
)
||
(
res
.
returnOrderStatus
==
1003
&&
res
.
outRefundType
==
1
))
{
status
=
2
}
let
str
=
''
if
(
res
.
sendbackAddressModel
)
{
const
{
sendbackAddressModel
}
=
res
str
=
`
${
sendbackAddressModel
.
provinceName
}${
sendbackAddressModel
.
cityName
}${
sendbackAddressModel
.
countyName
}${
sendbackAddressModel
.
address
}
`
}
}
data
.
time
=
new
Date
(
data
.
createdDate
).
format
(
"yyyy-MM-dd hh:mm:ss"
);
res
.
addressInfo
=
str
this
.
setData
({
this
.
setData
({
orderInfo
:
data
,
orderInfo
:
res
,
status
,
});
});
});
});
},
},
confirm
()
{
confirm
()
{
let
{
orderInfo
}
=
this
.
data
;
const
{
console
.
log
(
orderInfo
);
status
,
orderInfo
}
=
this
.
data
if
(
status
==
0
)
{
this
.
cancelSaleApply
()
}
else
if
(
status
==
2
)
{
wx
.
p
.
router
.
go
(
wx
.
p
.
router
.
go
(
"/packageMine/pages/order/afterSale_step_two/afterSale_step_two"
,
"/packageMine/pages/order/afterSale_step_two/afterSale_step_two"
,
orderInfo
orderInfo
);
)
},
}
},
/**撤销申请 */
cancelSaleApply
()
{
const
{
orderInfo
}
=
this
.
data
let
para
=
{
tparReturnOrderCode
:
orderInfo
.
tparReturnOrderCode
}
wx
.
showModal
({
title
:
'提示'
,
content
:
`请确认是否撤销申请`
,
confirmColor
:
'#F13C3D'
}).
then
((
res
)
=>
{
if
(
res
.
confirm
)
{
wx
.
p
.
wxApi
.
showLoading
(
'提交中'
)
const
URLNAME
=
'platformEditSale'
wx
.
p
.
api
.
shopmallApi
[
URLNAME
](
para
).
then
(
res
=>
{
wx
.
hideLoading
();
if
(
res
)
{
wx
.
p
.
wxApi
.
showToast
(
'撤销成功'
)
wx
.
p
.
router
.
back
()
}
})
}
}).
catch
(()
=>
{
wx
.
p
.
wxApi
.
showToast
(
'已取消'
)
})
},
previewImage
(
e
)
{
previewImage
(
e
)
{
let
params
=
e
.
detail
;
// 从组件传递的数据
let
params
=
e
.
detail
;
// 从组件传递的数据
wx
.
p
.
wxApi
.
previewImage
(
params
);
wx
.
p
.
wxApi
.
previewImage
(
params
);
},
},
onExpressNoInput
(
e
)
{
onExpressNoInput
(
e
)
{
const
{
value
}
=
e
.
detail
;
const
{
value
}
=
e
.
detail
;
this
.
setData
({
this
.
setData
({
"order.express_no"
:
value
,
"order.express_no"
:
value
,
});
});
...
...
packageMine/pages/order/afterSaleDetail/afterSaleDetail.wxml
View file @
c754206
<block wx:if="{{orderInfo}}">
<block wx:if="{{orderInfo}}">
<view class="layout isFullSucreen">
<view class="layout isFullSucreen">
<!-- 退款状态组件 -->
<!-- 退款状态组件 -->
<refund-status refundStatus="{{
orderInfo.refundS
tatus}}"></refund-status>
<refund-status refundStatus="{{
s
tatus}}"></refund-status>
<!-- 退货地址和物流信息组件 -->
<!-- 退货地址和物流信息组件 -->
<return-address-box />
<block wx:if="{{orderInfo.returnType==1001}}">
<return-address-box order-info="{{orderInfo}}" bindsubmitlogistics="submitlogistics"/>
</block>
<!-- 售后信息组件 -->
<!-- 售后信息组件 -->
<after-sale-info-box order-info="{{orderInfo}}"></after-sale-info-box>
<after-sale-info-box order-info="{{orderInfo}}"></after-sale-info-box>
<!-- 重新提交按钮组件 -->
<!-- 重新提交按钮组件 -->
<re-submit-button wx:if="{{
orderInfo.refundStatus >5}}" bindresubmit="confirm
"></re-submit-button>
<re-submit-button wx:if="{{
status!=1}}" bindresubmit="confirm" status="{{status}}
"></re-submit-button>
</view>
</view>
</block>
</block>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/afterSaleDetail/components/AfterSaleInfoBox/AfterSaleInfoBox.wxml
View file @
c754206
<view class="box">
<view class="box">
<view class="text-box">
<view class="text-box">
<view class="title">售后信息</view>
<view class="title">售后信息</view>
<content item="{{orderInfo}}" />
<content item="{{orderInfo
.orderGoods
}}" />
<block wx:for="{{afterSaleObj}}" wx:key="index">
<block wx:for="{{afterSaleObj}}" wx:key="index">
<view class="item">
<view class="item">
<view class="label">{{item.title}}:</view>
<view class="label">{{item.title}}:</view>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<text>{{i}};</text>
<text>{{i}};</text>
</block>
</block>
</block>
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
<block wx:else>{{orderInfo[item.key] || ''}}<
text>{{item.unit}}</text><
/block>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
packageMine/pages/order/afterSaleDetail/components/ReSubmitButton/ReSubmitButton.js
View file @
c754206
Component
({
Component
({
properties
:
{
status
:
{
type
:
String
,
value
:
""
},
},
methods
:
{
methods
:
{
onReSubmit
()
{
onReSubmit
()
{
this
.
triggerEvent
(
'resubmit'
);
this
.
triggerEvent
(
'resubmit'
);
...
...
packageMine/pages/order/afterSaleDetail/components/ReSubmitButton/ReSubmitButton.wxml
View file @
c754206
<view class="default-btn" bindtap="onReSubmit">重新提交</view>
\ No newline at end of file
\ No newline at end of file
<view class="default-btn" bindtap="onReSubmit"> {{status==2?'重新申请':'撤销申请'}}</view>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/afterSaleDetail/components/RefundStatus/RefundStatus.wxml
View file @
c754206
<Status image="{{refund.image}}" title="{{refund.title}}" tips="{{refund.tips}}"/>
\ No newline at end of file
\ No newline at end of file
<view class="status-box">
<Status image="{{refund.image}}" title="{{refund.title}}" tips="{{refund.tips}}"/>
</view>
packageMine/pages/order/afterSaleDetail/components/RefundStatus/RefundStatus.wxss
View file @
c754206
.status-box{
margin:10rpx 16rpx 42rpx 0;
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/afterSaleDetail/components/ReturnAddressBox/ReturnAddressBox.js
View file @
c754206
import
{
ExpressList
,
AddressInfo
}
from
"~/constants/mine.js"
;
import
{
ExpressList
,
AddressInfo
}
from
"~/constants/mine.js"
;
Component
({
Component
({
properties
:
{},
properties
:
{
orderInfo
:
{
type
:
Object
,
value
:
{},
observer
(
n
)
{
console
.
log
(
'退货物流'
)
}
},
},
data
:
{
data
:
{
isShowExpressSelector
:
false
,
isShowExpressSelector
:
false
,
expressList
:
Object
.
freeze
(
ExpressList
),
express
:
{
expressName
:
''
,
expressNo
:
''
},
expressList
:
ExpressList
,
address
:
Object
.
freeze
(
AddressInfo
),
address
:
Object
.
freeze
(
AddressInfo
),
address
Object
:
{
address
Info
:
{
name
:
"张三"
,
name
:
"张三"
,
phone
:
"12345678901"
,
phone
:
"12345678901"
,
address
:
"广东省深圳市南山区"
,
address
:
"广东省深圳市南山区"
,
},
},
},
},
attached
()
{
this
.
queryExpressList
()
},
methods
:
{
methods
:
{
queryExpressList
()
{
wx
.
p
.
api
.
shopmallApi
.
queryExpressList
().
then
(
res
=>
{
let
arr
=
[]
if
(
res
)
{
arr
=
res
.
map
(
el
=>
{
return
{
text
:
el
.
expressName
,
value
:
el
.
expressCode
}
})
}
this
.
setData
({
expressList
:
arr
||
[]
})
})
},
onShowExpressSelector
()
{
onShowExpressSelector
()
{
this
.
setData
({
this
.
setData
({
isShowExpressSelector
:
true
,
isShowExpressSelector
:
true
,
...
@@ -21,20 +55,51 @@ Component({
...
@@ -21,20 +55,51 @@ Component({
},
},
onSubmitLogistics
()
{
onSubmitLogistics
()
{
const
{
express
,
orderInfo
}
=
this
.
data
let
para
=
{
tparReturnOrderCode
:
orderInfo
.
tparReturnOrderCode
,
expressCode
:
express
.
expressCode
,
expressName
:
express
.
expressName
,
expressNo
:
express
.
expressNo
,
}
wx
.
p
.
wxApi
.
showLoading
(
'提交中'
)
wx
.
p
.
api
.
shopmallApi
.
addDelivery
(
para
).
then
(
res
=>
{
wx
.
p
.
wxApi
.
hideLoading
();
if
(
res
)
{
wx
.
p
.
wxApi
.
showToast
(
'提交成功'
)
this
.
triggerEvent
(
"submitlogistics"
);
this
.
triggerEvent
(
"submitlogistics"
);
},
}
})
},
onExpressNoInput
(
e
)
{
this
.
setData
({
'express.expressNo'
:
e
.
detail
.
value
})
},
onSelectExpress
(
e
)
{
onSelectExpress
(
e
)
{
this
.
setData
({
this
.
setData
({
isShowExpressSelector
:
false
,
isShowExpressSelector
:
false
,
});
});
const
{
expressList
}
=
this
.
data
;
const
{
expressList
}
=
this
.
data
;
const
expressListUpdated
=
expressList
.
map
((
item
)
=>
{
const
expressListUpdated
=
expressList
.
map
((
item
)
=>
{
if
(
item
.
value
==
e
.
detail
.
value
)
{
if
(
item
.
value
==
e
.
detail
.
value
)
{
item
.
type
=
"warn"
;
item
.
type
=
"warn"
;
console
.
log
(
item
)
this
.
setData
({
this
.
setData
({
express
:
item
,
express
:
{
...
this
.
data
.
express
,
expressName
:
item
.
text
,
expressCode
:
item
.
value
,
},
});
});
}
else
{
}
else
{
item
.
type
=
""
;
item
.
type
=
""
;
...
...
packageMine/pages/order/afterSaleDetail/components/ReturnAddressBox/ReturnAddressBox.wxml
View file @
c754206
...
@@ -8,31 +8,52 @@
...
@@ -8,31 +8,52 @@
<view class="item">
<view class="item">
<view class="label">{{item.title}}:</view>
<view class="label">{{item.title}}:</view>
<view class="value">
<view class="value">
<view>{{
addressObject[item.key]
}}</view>
<view>{{
orderInfo.addressInfo[item.key]||'-'
}}</view>
</view>
</view>
</view>
</view>
</block>
</block>
<!-- 判断是否有快递单号 -->
<block wx:if="{{!orderInfo.expressNo}}">
<view class="title">请填写退货物流</view>
<view class="title">请填写退货物流</view>
<view class="form">
<view class="form">
<view class="item">
<view class="item">
<view class="label">物流公司:</view>
<view class="label">物流公司:</view>
<view class="value icon" bindtap="onShowExpressSelector">
<view class="value icon" bindtap="onShowExpressSelector">
<view>{{express.text
||'请选择'}}</view>
<view>{{express.expressName
||'请选择'}}</view>
<mp-icon icon="arrow" color="#B1B1B3" size="12"></mp-icon>
<mp-icon icon="arrow" color="#B1B1B3" size="12"></mp-icon>
</view>
</view>
</view>
</view>
<view class="item">
<view class="item">
<view class="label">快递单号:</view>
<view class="label">快递单号:</view>
<view class="value">
<view class="value">
<input type="text" value="{{
expressNo}}" placeholder="请输入" placeholder-style="color: #999999;" bindinput="onExpressNoInput" />
<input type="text" value="{{express.
expressNo}}" placeholder="请输入" placeholder-style="color: #999999;" bindinput="onExpressNoInput" />
</view>
</view>
</view>
</view>
</view>
</view>
<view class="btn-box">
<view class="btn-box">
<view class="btn submit-btn" bindtap="onSubmitLogistics">提交物流</view>
<view class="btn submit-btn" bindtap="onSubmitLogistics">提交物流</view>
</view>
</view>
</block>
</view>
</view>
<view class="text-box already-box" wx:if="{{orderInfo.expressNo}}">
<view class="title">退货物流</view>
<view class="form" >
<view class="item">
<view class="label">物流公司:</view>
<view class="value icon">
<view>{{orderInfo.expressName}}</view>
</view>
</view>
<view class="item">
<view class="label">快递单号:</view>
<view class="value">
<view>{{orderInfo.expressNo}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<mp-actionSheet bindactiontap="onSelectExpress" show="{{isShowExpressSelector}}" actions="{{expressList}}"
title="选择快递公司"
>
<mp-actionSheet bindactiontap="onSelectExpress" show="{{isShowExpressSelector}}" actions="{{expressList}}"
ext-class="express-box" title="选择快递公司"
>
</mp-actionSheet>
</mp-actionSheet>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/afterSaleDetail/components/ReturnAddressBox/ReturnAddressBox.wxss
View file @
c754206
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
.text-box {
.text-box {
padding: 32rpx 24rpx;
padding: 32rpx 24rpx;
border-bottom: 2rpx solid #eff0f2;
/* border-bottom: 2rpx solid #eff0f2; */
}
}
.text-box .title {
.text-box .title {
...
@@ -104,3 +104,11 @@
...
@@ -104,3 +104,11 @@
color: var(--btnColor);
color: var(--btnColor);
font-weight: 500;
font-weight: 500;
}
}
.already-box {
padding:24rpx 32rpx;
box-sizing: border-box;
background: #fff;
border-radius: 16rpx;
margin-bottom:24rpx;
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons.js
View file @
c754206
...
@@ -211,9 +211,9 @@ Component({
...
@@ -211,9 +211,9 @@ Component({
wx
.
p
.
router
.
go
(
wx
.
p
.
router
.
go
(
"/packageMine/pages/order/afterSale_step_two/afterSale_step_two"
,
{
"/packageMine/pages/order/afterSale_step_two/afterSale_step_two"
,
{
subOrderCode
,
subOrderCode
,
refundPoints
:
redeemPoints
,
refundPoints
:
redeemPoints
,
goodsSource
,
goodsSource
,
applyQty
:
sellQty
||
applyQty
,
applyQty
:
sellQty
||
applyQty
,
}
}
);
);
},
},
...
@@ -314,14 +314,19 @@ Component({
...
@@ -314,14 +314,19 @@ Component({
// 售后详情
// 售后详情
onAfterSaleDetail
(
e
)
{
onAfterSaleDetail
(
e
)
{
console
.
log
(
e
)
let
url
=
"/packageMine/pages/order/afterSaleDetail/afterSaleDetail"
;
let
url
=
"/packageMine/pages/order/afterSaleDetail/afterSaleDetail"
;
let
{
let
{
item
:
{
item
:
{
orderCode
subOrderCode
,
goodsSource
,
tparReturnOrderCode
},
},
}
=
e
.
currentTarget
.
dataset
;
}
=
e
.
currentTarget
.
dataset
;
wx
.
p
.
router
.
go
(
url
,
{
wx
.
p
.
router
.
go
(
url
,
{
orderCode
,
subOrderCode
,
goodsSource
,
tparReturnOrderCode
});
});
},
},
},
},
...
...
packageMine/pages/order/index/index.js
View file @
c754206
...
@@ -141,7 +141,8 @@ Page({
...
@@ -141,7 +141,8 @@ Page({
let
{
let
{
requestType
,
requestType
,
pageNum
,
pageNum
,
keyword
keyword
,
tabIndex
}
=
this
.
data
;
}
=
this
.
data
;
let
obj
=
{
let
obj
=
{
requestType
,
requestType
,
...
@@ -151,8 +152,8 @@ Page({
...
@@ -151,8 +152,8 @@ Page({
keyword
=
keyword
.
replace
(
/
\
/g
,
""
);
keyword
=
keyword
.
replace
(
/
\
/g
,
""
);
if
(
keyword
.
length
)
obj
.
keyword
=
keyword
;
if
(
keyword
.
length
)
obj
.
keyword
=
keyword
;
}
}
// requestType==3:退货/售后
let
Method
=
requestType
==
3
?
'getSalesOrderList'
:
'getOrderList'
;
let
Method
=
tabIndex
==
5
?
'getSalesOrderList'
:
'getOrderList'
;
let
list
=
[];
let
list
=
[];
wx
.
p
.
api
.
mineApi
[
Method
](
obj
).
then
((
data
)
=>
{
wx
.
p
.
api
.
mineApi
[
Method
](
obj
).
then
((
data
)
=>
{
wx
.
hideLoading
();
wx
.
hideLoading
();
...
...
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