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
651555b8
Commit
651555b8
authored
Aug 22, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 退款接口
parent
0cdb3cd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
refund.js
src/pages/refund/refund.js
+19
-10
No files found.
src/pages/refund/refund.js
View file @
651555b8
...
@@ -68,9 +68,9 @@ wxService.page({
...
@@ -68,9 +68,9 @@ wxService.page({
}
}
console
.
log
(
'selectGoods'
,
selectGoods
)
console
.
log
(
'selectGoods'
,
selectGoods
)
var
refundCreateDto
=
this
.
data
.
refundCreateDto
var
refundCreateDto
=
this
.
data
.
refundCreateDto
refundCreateDto
.
reason
=
this
.
data
.
curType
.
value
// 退款原因
// refundCreateDto.reason = this.data.curType.value // 退款原因
refundCreateDto
.
reason
=
this
.
data
.
curType
.
name
// 退款原因
refundCreateDto
.
skuList
=
selectGoods
.
map
(
function
(
item
)
{
refundCreateDto
.
skuList
=
selectGoods
.
map
(
function
(
item
)
{
return
{
return
{
...
@@ -80,17 +80,25 @@ wxService.page({
...
@@ -80,17 +80,25 @@ wxService.page({
}
}
})
})
console
.
log
(
'refundCreateDto'
,
refundCreateDto
)
console
.
log
(
'refundCreateDto'
,
refundCreateDto
)
// wx.showLoading({
this
.
handelRequestRefund
(
refundCreateDto
)
// title: '加载中',
// mask: true
// })
},
handelRequestRefund
(
params
)
{
wx
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
wxService
.
post
(
'/sale/refund/buyer/create'
,
params
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
}
}
})
},
},
chooseImage
:
function
(
event
)
{
// 选择图片
chooseImage
:
function
(
event
)
{
// 选择图片
...
@@ -243,6 +251,7 @@ wxService.page({
...
@@ -243,6 +251,7 @@ wxService.page({
onShow
:
function
()
{
onShow
:
function
()
{
const
{
params
}
=
this
.
options
const
{
params
}
=
this
.
options
let
detail
=
JSON
.
parse
(
params
)
let
detail
=
JSON
.
parse
(
params
)
console
.
log
(
'detail'
,
detail
)
// item.checked
// item.checked
detail
.
skuVOList
.
forEach
(
item
=>
{
detail
.
skuVOList
.
forEach
(
item
=>
{
item
.
checked
=
false
item
.
checked
=
false
...
...
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