Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
4cc4ee29
Commit
4cc4ee29
authored
Sep 21, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' into fixbug-ZYW
parents
f60114b7
28815b8e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
11 deletions
+26
-11
order.js
src/pages/order/order.js
+21
-8
order.json
src/pages/order/order.json
+3
-1
order.wxml
src/pages/order/order.wxml
+2
-2
No files found.
src/pages/order/order.js
View file @
4cc4ee29
...
@@ -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
})
},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
...
...
src/pages/order/order.json
View file @
4cc4ee29
...
@@ -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
src/pages/order/order.wxml
View file @
4cc4ee29
...
@@ -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/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment