Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 a34eaae1
authored
Oct 20, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
bf7c97ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/goods/addPrefer.vue
src/views/goods/addPrefer.vue
View file @
a34eaae
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<el-switch
:disabled=
"disabled"
v-model=
"scope.scope.exchangeIntegralFlag"
@
change=
"changeIntegralFlagFn($event, scope.scope)"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
<el-switch
:disabled=
"disabled"
v-model=
"scope.scope.exchangeIntegralFlag"
@
change=
"changeIntegralFlagFn($event, scope.scope)"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</div>
</div>
<div
slot=
"exchangeIntegralSlot"
slot-scope=
"scope"
>
<div
slot=
"exchangeIntegralSlot"
slot-scope=
"scope"
>
<format-input
:disabled=
"disabled || scope.scope.exchangeIntegralFlag!=1"
:
minVal=
"1"
:
intDigit=
"6"
:precise=
"0"
placeholder=
"请输入"
<format-input
:disabled=
"disabled || scope.scope.exchangeIntegralFlag!=1"
:intDigit=
"6"
:precise=
"0"
placeholder=
"请输入"
v-model=
"scope.scope.exchangeIntegral"
></format-input>
v-model=
"scope.scope.exchangeIntegral"
></format-input>
</div>
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
...
@@ -338,7 +338,7 @@ export default {
...
@@ -338,7 +338,7 @@ export default {
return
!
(
+
activityPrice
)
||
!
(
+
originalPrice
)
return
!
(
+
activityPrice
)
||
!
(
+
originalPrice
)
})
})
const
_integralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
!
item
.
giveIntegral
&&
item
.
giveIntegral
!==
0
)
const
_integralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
!
item
.
giveIntegral
&&
item
.
giveIntegral
!==
0
)
const
_exchangeintegralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
this
.
formObj
.
goodsSource
==
1
&&
item
.
exchangeIntegralFlag
&&
!
item
.
exchangeIntegral
)
const
_exchangeintegralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
this
.
formObj
.
goodsSource
==
1
&&
item
.
exchangeIntegralFlag
&&
(
!
item
.
exchangeIntegral
||
item
.
exchangeIntegral
==
0
)
)
const
hasTarget
=
this
.
saleMerchantList
.
find
(
item
=>
{
const
hasTarget
=
this
.
saleMerchantList
.
find
(
item
=>
{
let
originalPrice
=
item
.
originalPrice
||
0
let
originalPrice
=
item
.
originalPrice
||
0
let
activityPrice
=
item
.
activityPrice
||
0
let
activityPrice
=
item
.
activityPrice
||
0
...
@@ -354,7 +354,7 @@ export default {
...
@@ -354,7 +354,7 @@ export default {
}
else
if
(
_integralTarget
)
{
}
else
if
(
_integralTarget
)
{
callback
(
new
Error
(
'请输入赠送积分'
))
callback
(
new
Error
(
'请输入赠送积分'
))
}
else
if
(
_exchangeintegralTarget
)
{
}
else
if
(
_exchangeintegralTarget
)
{
callback
(
new
Error
(
'请输入兑换积分'
))
callback
(
new
Error
(
'请输入
大于0的
兑换积分'
))
}
else
{
}
else
{
callback
()
callback
()
}
}
...
...
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