Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 ddfcc34e
authored
Aug 11, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复网络慢,多次点击创建优惠券按钮生成多个优惠券
1 parent
6077a389
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
1 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/customerTransform/components/preview.vue
src/views/couponManage/editCashCoupon.vue
View file @
ddfcc34
...
@@ -190,6 +190,7 @@ export default {
...
@@ -190,6 +190,7 @@ export default {
title
:
'创建'
,
title
:
'创建'
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
loading
:
false
,
loading
:
false
,
clickStatus
:
false
,
routeInfo
:
{
routeInfo
:
{
// 1-新增;2-编辑;3-查看
// 1-新增;2-编辑;3-查看
addOrEdit
:
1
,
addOrEdit
:
1
,
...
@@ -807,6 +808,8 @@ export default {
...
@@ -807,6 +808,8 @@ export default {
method
=
'createCouponApi'
//后台创建优惠券
method
=
'createCouponApi'
//后台创建优惠券
}
}
console
.
log
(
params
)
console
.
log
(
params
)
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
ddfcc34
...
@@ -168,6 +168,7 @@ export default {
...
@@ -168,6 +168,7 @@ export default {
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
showSubmit
:
true
,
showSubmit
:
true
,
userDisable
:
false
,
userDisable
:
false
,
clickStatus
:
false
,
size
:
'small'
,
size
:
'small'
,
title
:
'创建'
,
title
:
'创建'
,
titleObj
:
{
titleObj
:
{
...
@@ -566,6 +567,8 @@ export default {
...
@@ -566,6 +567,8 @@ export default {
}
else
{
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
method
=
'createCouponApi'
//后台创建优惠券
}
}
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
ddfcc34
...
@@ -127,6 +127,7 @@ export default {
...
@@ -127,6 +127,7 @@ export default {
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
loading
:
false
,
loading
:
false
,
editStatus
:
false
,
editStatus
:
false
,
clickStatus
:
false
,
// pickerOptions: {
// pickerOptions: {
// disabledDate(v) {//禁用当前之前的日期
// disabledDate(v) {//禁用当前之前的日期
// return v.getTime() < new Date().getTime() - 86400000;
// return v.getTime() < new Date().getTime() - 86400000;
...
@@ -457,6 +458,8 @@ export default {
...
@@ -457,6 +458,8 @@ export default {
}
else
{
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
method
=
'createCouponApi'
//后台创建优惠券
}
}
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
src/views/couponManage/editMemberService.vue
View file @
ddfcc34
...
@@ -209,6 +209,7 @@ export default {
...
@@ -209,6 +209,7 @@ export default {
},
1000
)
},
1000
)
}
}
return
{
return
{
clickStatus
:
false
,
isEdit
:
false
,
isEdit
:
false
,
showSubmit
:
true
,
showSubmit
:
true
,
disabledDescription
:
false
,
disabledDescription
:
false
,
...
@@ -402,6 +403,8 @@ export default {
...
@@ -402,6 +403,8 @@ export default {
},
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$refs
[
formName
].
validate
((
valid
,
errorObj
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
,
errorObj
)
=>
{
var
merchantval
=
true
var
merchantval
=
true
var
merchantErrorObj
=
[]
var
merchantErrorObj
=
[]
...
...
src/views/customerTransform/components/preview.vue
View file @
ddfcc34
...
@@ -115,7 +115,7 @@ export default {
...
@@ -115,7 +115,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scope
>
<
style
lang=
"scss"
scope
d
>
.img-bg
{
.img-bg
{
position
:
relative
;
position
:
relative
;
width
:
290px
;
width
:
290px
;
...
...
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