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
02093491
Commit
02093491
authored
Sep 19, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款原因
parent
3204be37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
refund.js
src/pages/refund/refund.js
+34
-3
No files found.
src/pages/refund/refund.js
View file @
02093491
...
...
@@ -47,7 +47,8 @@ wxService.page({
}],
refundAmount
:
0
,
checkedColor
:
'rgb(203, 60, 60)'
,
pics
:[]
pics
:[],
id
:
''
},
submitRefund
()
{
var
selectGoods
=
this
.
data
.
cartList
.
filter
(
item
=>
item
.
checked
)
...
...
@@ -112,7 +113,32 @@ wxService.page({
})
},
getReasonList
()
{
wx
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
const
refundReason
=
{}
const
{
resonType
}
=
this
.
data
wxService
.
post
(
'/sale/refund/reason/buyer/sortAll'
,
refundReason
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
console
.
log
(
'data'
,
data
)
// data.forEach((item,index)=>{
// resonType.forEach(itemReson=> {
// itemReson.name = item.reason
// itemReson.value = item.index
// })
// })
this
.
setData
({
//resonType
})
}
}
})
},
// 上传图片
_uploadImg
(
e
){
if
(
e
.
detail
){
...
...
@@ -228,15 +254,20 @@ wxService.page({
onShow
:
function
()
{
const
{
params
}
=
this
.
options
let
detail
=
JSON
.
parse
(
params
)
console
.
log
(
'detail'
,
detail
)
console
.
log
(
'detail'
,
params
,
detail
.
id
)
// item.checked
detail
.
skuVOList
.
forEach
(
item
=>
{
item
.
checked
=
false
})
this
.
setData
({
id
:
detail
.
id
,
cartList
:
detail
.
skuVOList
,
refundAmount
:
detail
.
payAmount
,
'refundCreateDto.tradeId'
:
detail
.
id
},()
=>
{
// 退款原因列表 /refund/reason/buyer/sortAll
this
.
getReasonList
()
})
},
...
...
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