Commit 4cc4ee29 by 赵雅纹

Merge branch 'dev_7.1.0' into fixbug-ZYW

parents f60114b7 28815b8e
...@@ -9,6 +9,7 @@ wxService.page({ ...@@ -9,6 +9,7 @@ wxService.page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showApplyRefundModal: false,
// 订单状态(C:取消;N:新建,P:已支付;D:已发货;R:已收货) // 订单状态(C:取消;N:新建,P:已支付;D:已发货;R:已收货)
swiperItem: [ swiperItem: [
{ {
...@@ -94,13 +95,16 @@ wxService.page({ ...@@ -94,13 +95,16 @@ wxService.page({
icon: 'none' icon: 'none'
}) })
setTimeout(() => { setTimeout(() => {
this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.status) this.onShow()
}, 200) }, 200)
} else { } else {
wx.showToast({ wx.showToast({
title: `确认收货失败!`, title: `确认收货失败!`,
icon: 'none' icon: 'none'
}) })
setTimeout(() => {
this.onShow()
}, 200)
} }
} }
}) })
...@@ -121,12 +125,20 @@ wxService.page({ ...@@ -121,12 +125,20 @@ wxService.page({
title: `删除成功!`, title: `删除成功!`,
icon: 'none' icon: 'none'
}) })
setTimeout(() => {
this.onShow()
}, 200)
}
} else { } else {
wx.showToast({ wx.showToast({
title: `删除失败!`, title: `删除失败!`,
icon: 'none' icon: 'none'
}) })
}
setTimeout(() => {
this.onShow()
}, 200)
} }
}) })
}, },
...@@ -184,12 +196,6 @@ wxService.page({ ...@@ -184,12 +196,6 @@ wxService.page({
const { id } = e.currentTarget.dataset const { id } = e.currentTarget.dataset
wxService.router(`/pages/refundDetail/refundDetail?id=${id}`) wxService.router(`/pages/refundDetail/refundDetail?id=${id}`)
}, },
// 退货寄回
handelCheckRfSend(e) {
const { id } = e.currentTarget.dataset
console.log('handelCheckRfSend物流弹框', id)
// 物流弹框
},
// 取消退款 // 取消退款
handelCancelRefund(e) { handelCancelRefund(e) {
const { id } = e.currentTarget.dataset const { id } = e.currentTarget.dataset
...@@ -339,6 +345,13 @@ wxService.page({ ...@@ -339,6 +345,13 @@ wxService.page({
// }, // },
//填写物流信息
tapWriteLogis() {
console.log('222')
this.setData({
showApplyRefundModal: true
})
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
"navigationBarTitleText": "我的订单", "navigationBarTitleText": "我的订单",
"usingComponents": { "usingComponents": {
"no-more": "/component/noMore/noMore", "no-more": "/component/noMore/noMore",
"go-home": "/component/goHome/goHome" "go-home": "/component/goHome/goHome",
"apply-refund": "/component/applyRefund/applyRefund"
} }
} }
\ No newline at end of file
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
</view> </view>
<view class="order-status-rf" wx-if="{{item.status == 'A'}}"> <view class="order-status-rf" wx-if="{{item.status == 'A'}}">
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelDetailRf">查看详情</button> <button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelDetailRf">查看详情</button>
<button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="handelCheckRfSend">退货寄回</button> <button class="btn btn-sm btn-default" data-id="{{item.id}}" bindtap="tapWriteLogis">退货寄回</button>
<button class="btn btn-sm btn-primary btn-outline" data-id="{{item.id}}" bindtap="handelCancelRefund">取消退款</button> <button class="btn btn-sm btn-primary btn-outline" data-id="{{item.id}}" bindtap="handelCancelRefund">取消退款</button>
</view> </view>
<view class="order-status-rf" wx-if="{{item.status == 'R'}}"> <view class="order-status-rf" wx-if="{{item.status == 'R'}}">
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
当前无数据 当前无数据
</view> </view>
</view> </view>
<apply-refund show="{{showApplyRefundModal}}" />
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment