Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
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
new-sing
admin-base
Commits
214a0dcd
Commit
214a0dcd
authored
Sep 17, 2019
by
chenjundi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统订单-关联赠品
parent
51ed8bd6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
dialog.vue
src/components/shop/dialog.vue
+1
-1
giftDeliverDialog.vue
src/components/teacherDetail/giftDeliverDialog.vue
+9
-1
No files found.
src/components/shop/dialog.vue
View file @
214a0dcd
...
@@ -870,7 +870,7 @@
...
@@ -870,7 +870,7 @@
})
})
},
},
getRelationGift
()
{
getRelationGift
()
{
relationGiftApi
().
then
(
res
=>
{
relationGiftApi
(
{
status
:
1
}
).
then
(
res
=>
{
this
.
relation_gift
=
res
.
list
;
this
.
relation_gift
=
res
.
list
;
});
});
}
}
...
...
src/components/teacherDetail/giftDeliverDialog.vue
View file @
214a0dcd
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
:title=
"dialogObj.title"
:title=
"dialogObj.title"
center
center
append-to-body
append-to-body
:visible
.
sync=
"dialogObj.show"
>
:visible
.
sync=
"dialogObj.show"
:close-on-click-modal=
"false"
>
<div
v-if=
"dialogObj.gift_deliver"
class=
"dialog-content"
>
<div
v-if=
"dialogObj.gift_deliver"
class=
"dialog-content"
>
<div
class=
"dialog-text"
>
物流已发货,不能修改赠品信息!
</div>
<div
class=
"dialog-text"
>
物流已发货,不能修改赠品信息!
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -59,6 +60,13 @@
...
@@ -59,6 +60,13 @@
relationGiftApi
({
goods_id
:
this
.
dialogObj
.
goods_id
}).
then
(
res
=>
{
relationGiftApi
({
goods_id
:
this
.
dialogObj
.
goods_id
}).
then
(
res
=>
{
this
.
selectedGiftList
=
res
.
list
;
this
.
selectedGiftList
=
res
.
list
;
});
});
relationGiftApi
({
out_trade_no
:
this
.
dialogObj
.
out_trade_no
}).
then
(
res
=>
{
let
giftListArr
=
[];
res
.
list
.
forEach
(
i
=>
{
giftListArr
.
push
(
i
.
id
);
});
this
.
form
.
selectedGiftList
=
giftListArr
;
});
},
},
sub
()
{
sub
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
...
...
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