Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin
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
baihong
admin
Commits
2eaafe08
Commit
2eaafe08
authored
Apr 26, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除奖励
parent
1297898a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
activityClocks.js
src/api/clock/activityClocks.js
+1
-1
setTabs.vue
src/view/clockEarly/setTabs.vue
+1
-3
setTabs.vue
src/view/signIn/setTabs.vue
+7
-7
No files found.
src/api/clock/activityClocks.js
View file @
2eaafe08
...
...
@@ -16,7 +16,7 @@ export const getActivityConfigByPay = (data) => {
return
$http
.
putObj
(
'/cms/configs/configAwards/editConfigAward'
,
data
)
}
export
const
deleteConfigAward
=
(
data
)
=>
{
return
$http
.
delete
(
'/cms/configs/configAwards/deleteConfigAward
'
,
data
)
return
$http
.
delete
(
'/cms/configs/configAwards/deleteConfigAward
?awardId='
+
data
)
}
//活动规则
export
const
getActivityConfigRule
=
(
data
)
=>
{
...
...
src/view/clockEarly/setTabs.vue
View file @
2eaafe08
...
...
@@ -331,9 +331,7 @@ export default {
}
},
del
(
p
)
{
deleteConfigAward
({
awardId
:
p
.
id
}).
then
(
res
=>
{
deleteConfigAward
(
p
.
id
).
then
(
res
=>
{
this
.
$Message
.
success
(
"删除成功!"
);
this
.
modalVisible
=
false
;
let
type
=
this
.
tab
===
"3"
?
1
:
2
;
...
...
src/view/signIn/setTabs.vue
View file @
2eaafe08
...
...
@@ -104,7 +104,7 @@
</
template
>
</Table>
<div
class=
"editor"
v-if=
"tab === '6'"
>
<editor
/>
<editor
v-model=
"content"
/>
<div
class=
"topSearch"
style=
"margin-top: 20px;"
>
<div
class=
"left"
>
<Button
type=
"primary"
@
click=
"goDetail"
>
取消
</Button>
...
...
@@ -130,7 +130,7 @@
<FormItem
label=
"奖品名称"
prop=
"award_name"
>
<Input
v-model=
"formValidate.award_name"
placeholder=
"请输入"
></Input>
</FormItem>
<FormItem
label=
"优惠卷类型"
>
<FormItem
label=
"优惠卷类型"
>
<Select
v-model=
"formValidate.award_type"
placeholder=
"请选择"
>
<Option
:value=
"1"
>
优惠券
</Option>
<Option
:value=
"2"
>
真我币
</Option>
...
...
@@ -176,6 +176,8 @@ export default {
},
data
()
{
return
{
gzId
:
null
,
content
:
""
,
modalVisible
:
true
,
add
:
true
,
modalVisible
:
false
,
...
...
@@ -319,7 +321,7 @@ export default {
updateRule
({
id
:
this
.
gzId
,
content
:
this
.
content
,
rule_type
:
1
rule_type
:
2
}).
then
(
res
=>
{
this
.
$Message
.
success
(
"保存成功!"
);
});
...
...
@@ -345,9 +347,7 @@ export default {
}
},
del
(
p
)
{
deleteConfigAward
({
awardId
:
p
.
id
}).
then
(
res
=>
{
deleteConfigAward
(
p
.
id
).
then
(
res
=>
{
this
.
$Message
.
success
(
"删除成功!"
);
this
.
modalVisible
=
false
;
let
type
=
this
.
tab
===
"3"
?
3
:
4
;
...
...
@@ -371,7 +371,7 @@ export default {
getRu
()
{
getActivityConfigRule
({
language
:
"cn"
,
ruleType
:
1
ruleType
:
2
}).
then
(
res
=>
{
this
.
content
=
res
.
content
;
this
.
gzId
=
res
.
id
;
...
...
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