Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73b006b0
authored
Feb 21, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
afdc4c0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/views/gift/create.vue
src/views/gift/create.vue
View file @
73b006b
...
...
@@ -166,13 +166,21 @@ export default {
}
,
getDetail
(
id
)
{
let
total
=
0
let
{
radioObj
}
=
this
giftApi
.
getGiftDetail
(
id
).
then
(
res
=>
{
this
.
hideLoading
()
res
.
couponList
.
length
&&
res
.
couponList
.
map
(
e
=>
total
+=
e
.
couponAnticipatedCost
*
e
.
couponAmount
)
this
.
flag
=
true
if
(
res
.
receiveWay
==
1
)
res
.
phone
=
res
.
receiveDetails
else
obj
.
vin
=
res
.
receiveDetails
radioObj
.
map
(
e
=>
e
.
active
=
false
)
if
(
res
.
receiveWay
==
1
)
{
res
.
phone
=
res
.
receiveDetails
radioObj
[
0
].
active
=
true
}
else
{
radioObj
[
1
].
active
=
true
res
.
vin
=
res
.
receiveDetails
}
this
.
obj
=
res
console
.
log
(
res
)
this
.
total
=
total
this
.
checkData
()
}
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment