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
bfaaa271
Commit
bfaaa271
authored
Sep 22, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refund/buyer/preview
parent
e3a8160d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
refund.js
src/pages/refund/refund.js
+9
-17
No files found.
src/pages/refund/refund.js
View file @
bfaaa271
...
@@ -56,8 +56,6 @@ wxService.page({
...
@@ -56,8 +56,6 @@ wxService.page({
count
count
})
})
});
});
console
.
log
(
'selectGoods'
,
skulist
)
this
.
reFundPreview
({
skuList
:
skulist
})
this
.
reFundPreview
({
skuList
:
skulist
})
var
refundCreateDto
=
this
.
data
.
refundCreateDto
var
refundCreateDto
=
this
.
data
.
refundCreateDto
...
@@ -70,12 +68,7 @@ wxService.page({
...
@@ -70,12 +68,7 @@ wxService.page({
skuId
:
item
.
skuId
skuId
:
item
.
skuId
}
}
})
})
this
.
handelRequestRefund
(
refundCreateDto
)
// console.log('refundCreateDto', refundCreateDto)
// this.handelRequestRefund(refundCreateDto)
},
},
handelRequestRefund
(
params
)
{
handelRequestRefund
(
params
)
{
wx
.
showLoading
({
wx
.
showLoading
({
...
@@ -206,9 +199,7 @@ wxService.page({
...
@@ -206,9 +199,7 @@ wxService.page({
blurNum
:
function
(
e
)
{
// 输入数量
blurNum
:
function
(
e
)
{
// 输入数量
var
newNum
=
e
.
detail
.
value
var
newNum
=
e
.
detail
.
value
var
cartList
=
this
.
data
.
cartList
var
cartList
=
this
.
data
.
cartList
var
index
=
e
.
currentTarget
.
dataset
.
index
var
index
=
e
.
currentTarget
.
dataset
.
index
var
refundNum
=
cartList
[
index
].
count
var
refundNum
=
cartList
[
index
].
count
if
(
newNum
===
''
||
newNum
===
'0'
)
{
if
(
newNum
===
''
||
newNum
===
'0'
)
{
...
@@ -226,13 +217,19 @@ wxService.page({
...
@@ -226,13 +217,19 @@ wxService.page({
this
.
setData
({
this
.
setData
({
cartList
:
cartList
cartList
:
cartList
},
()
=>
{
},
()
=>
{
console
.
log
(
'blurNum'
,
cartList
[
index
],
index
,
newNum
,
refundNum
)
this
.
getReturnPrice
()
this
.
getReturnPrice
()
this
.
editOk
(
cartList
[
index
])
//调用完成
this
.
editOk
(
cartList
[
index
])
//调用完成
})
})
},
},
editOk
(
cartPro
){
editOk
(
cartPro
){
this
.
reFundPreview
(
cartPro
)
// 退款预览
let
skulist
=
[];
const
{
skuId
,
count
}
=
cartPro
;
skulist
.
push
({
skuId
,
count
})
this
.
reFundPreview
({
skuList
:
skulist
})
// 退款预览
},
},
getReturnPrice
()
{
getReturnPrice
()
{
var
cartList
=
this
.
data
.
cartList
var
cartList
=
this
.
data
.
cartList
...
@@ -286,8 +283,6 @@ wxService.page({
...
@@ -286,8 +283,6 @@ wxService.page({
})
})
},
},
reFundPreview
(
cartPro
=
{})
{
reFundPreview
(
cartPro
=
{})
{
// /refund/buyer/preview
// console.log("cartPro", cartPro)
const
params
=
{
const
params
=
{
refundCreateDto
:
{...
cartPro
}
refundCreateDto
:
{...
cartPro
}
}
}
...
@@ -300,9 +295,6 @@ wxService.page({
...
@@ -300,9 +295,6 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
if
(
result
==
0
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
}
else
{
}
}
}
}
})
})
...
...
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