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 febe0a92
authored
Aug 16, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改loading显示
1 parent
01f4b519
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/couponManage/editCashCoupon.vue
View file @
febe0a9
...
...
@@ -771,7 +771,6 @@ export default {
handleConfirm
()
{
this
.
validateRules
()
this
.
loading
=
true
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
,
errorObj
)
=>
{
var
merchantval
=
true
var
merchantErrorObj
=
[]
...
...
@@ -808,6 +807,7 @@ export default {
method
=
'createCouponApi'
//后台创建优惠券
}
console
.
log
(
params
)
this
.
loading
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
febe0a9
...
...
@@ -544,7 +544,6 @@ export default {
handleConfirm
()
{
this
.
validateRules
()
this
.
loading
=
true
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
,
errorObj
)
=>
{
var
merchantval
=
true
var
merchantErrorObj
=
[]
...
...
@@ -567,6 +566,7 @@ export default {
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
}
this
.
loading
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
febe0a9
...
...
@@ -435,7 +435,6 @@ export default {
handleConfirm
()
{
this
.
validateRules
()
this
.
loading
=
true
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
,
errorObj
)
=>
{
var
merchantval
=
true
var
merchantErrorObj
=
[]
...
...
@@ -458,6 +457,7 @@ export default {
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
}
this
.
loading
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
src/views/couponManage/editMemberService.vue
View file @
febe0a9
...
...
@@ -432,7 +432,6 @@ export default {
},
//创建服务
createService
()
{
this
.
sloading
=
true
let
params
=
{
effectiveDays
:
''
,
useAmount
:
''
,
...
...
@@ -494,6 +493,7 @@ export default {
params
.
discountType
=
7
params
.
merchantId
=
this
.
merchantId
params
.
merchantName
=
this
.
merchantName
this
.
sloading
=
true
createService
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
...
...
@@ -513,7 +513,6 @@ export default {
},
//更新服务
updateService
()
{
this
.
sloading
=
true
let
param
=
{}
param
.
anticipatedCost
=
this
.
ruleForm
.
anticipatedCost
*
100
param
.
discountType
=
7
...
...
@@ -522,6 +521,7 @@ export default {
param
.
couponId
=
this
.
$route
.
query
.
couponId
param
.
stock
=
this
.
ruleForm
.
stock
param
.
useDescription
=
this
.
ruleForm
.
useDescription
this
.
sloading
=
true
updateService
(
param
)
.
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
...
...
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