Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
welfare
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
达摩4.0重构
welfare
Commits
4cdcc24d
Commit
4cdcc24d
authored
Apr 01, 2021
by
shaojiawen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.gicdev.com/dm4/welfare
into dev
parents
b607adf9
f3bd0e20
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
3 deletions
+34
-3
index.html
public/index.html
+1
-1
form.vue
src/views/card/card-package/form.vue
+14
-0
card-form.js
src/views/card/gic-card/card-form.js
+7
-2
real-gift-detail.vue
src/views/gift-manage/real-gift-detail.vue
+6
-0
virtual-gift-detail.vue
src/views/gift-manage/virtual-gift-detail.vue
+6
-0
No files found.
public/index.html
View file @
4cdcc24d
...
...
@@ -48,7 +48,7 @@
<script
src=
"//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js"
></script>
<!-- 图片预览 -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js"
></script>
<!-- 删除轻弹窗 -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/input-number.1.0.12.js"
></script>
<!-- 输入框 -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.1
1
.js"
></script>
<!-- 福利选择器 -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.1
5
.js"
></script>
<!-- 福利选择器 -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.5.js"
></script>
<!-- 账号分组组件 -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/editor.1.1.13.js"
></script>
<!-- 富文本编辑器 -->
</body>
...
...
src/views/card/card-package/form.vue
View file @
4cdcc24d
...
...
@@ -214,6 +214,14 @@ export default {
delPackageItem
(
params
).
then
(
res
=>
{
this
.
cardLoading
=
false
;
this
.
refreshCouponList
();
let
callbackId
=
this
.
$route
.
query
.
callbackId
;
if
(
callbackId
)
{
let
obj
=
JSON
.
parse
(
localStorage
.
getItem
(
'welfareCreateCallback'
)
||
'{}'
);
obj
[
callbackId
]
=
false
;
localStorage
.
setItem
(
'welfareCreateCallback'
,
JSON
.
stringify
(
obj
));
obj
[
callbackId
]
=
true
;
localStorage
.
setItem
(
'welfareCreateCallback'
,
JSON
.
stringify
(
obj
));
}
}).
catch
(()
=>
{
this
.
cardLoading
=
false
;
});
...
...
@@ -277,6 +285,12 @@ export default {
this
.
$tips
({
message
:
`
${
this
.
isAdd
?
'新建'
:
'编辑'
}
成功`
,
type
:
'success'
});
if
(
this
.
isAdd
)
{
this
.
$store
.
commit
(
'updateShowCornerCanUseApp'
,
true
);
let
callbackId
=
this
.
$route
.
query
.
callbackId
;
if
(
callbackId
)
{
let
obj
=
JSON
.
parse
(
localStorage
.
getItem
(
'welfareCreateCallback'
)
||
'{}'
);
obj
[
callbackId
]
=
true
;
localStorage
.
setItem
(
'welfareCreateCallback'
,
JSON
.
stringify
(
obj
));
}
}
if
(
!
this
.
isAdd
)
{
this
.
$router
.
push
(
'/card-package/list'
);
...
...
src/views/card/gic-card/card-form.js
View file @
4cdcc24d
...
...
@@ -842,6 +842,12 @@ export default {
this
.
submitType
=
1
;
this
.
loading
=
false
;
this
.
$store
.
commit
(
'updateShowCornerCanUseApp'
,
true
);
let
callbackId
=
this
.
$route
.
query
.
callbackId
;
if
(
callbackId
)
{
let
obj
=
JSON
.
parse
(
localStorage
.
getItem
(
'welfareCreateCallback'
)
||
'{}'
);
obj
[
callbackId
]
=
true
;
localStorage
.
setItem
(
'welfareCreateCallback'
,
JSON
.
stringify
(
obj
));
}
}).
catch
(()
=>
{
this
.
loading
=
false
;
});
...
...
@@ -1020,4 +1026,4 @@ export default {
}
}
},
};
\ No newline at end of file
};
src/views/gift-manage/real-gift-detail.vue
View file @
4cdcc24d
...
...
@@ -1493,6 +1493,12 @@ export default {
this
.
btnLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
}
let
callbackId
=
this
.
$route
.
query
.
callbackId
;
if
(
callbackId
)
{
let
obj
=
JSON
.
parse
(
localStorage
.
getItem
(
'welfareCreateCallback'
)
||
'{}'
);
obj
[
callbackId
]
=
true
;
localStorage
.
setItem
(
'welfareCreateCallback'
,
JSON
.
stringify
(
obj
));
}
}).
finally
(()
=>
this
.
$emit
(
'updateLoading'
,
false
));
}
}
...
...
src/views/gift-manage/virtual-gift-detail.vue
View file @
4cdcc24d
...
...
@@ -658,6 +658,12 @@ export default {
}
else
{
this
.
btnLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
let
callbackId
=
this
.
$route
.
query
.
callbackId
;
if
(
callbackId
)
{
let
obj
=
JSON
.
parse
(
localStorage
.
getItem
(
'welfareCreateCallback'
)
||
'{}'
);
obj
[
callbackId
]
=
true
;
localStorage
.
setItem
(
'welfareCreateCallback'
,
JSON
.
stringify
(
obj
));
}
}
}).
finally
(()
=>
this
.
$emit
(
'updateLoading'
));
}
...
...
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