Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
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 c15a7f18
authored
Sep 23, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f2ddd239
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
src/views/memberCenter/setmealAddUpdate.vue
src/views/memberCenter/setmealAddUpdate.vue
View file @
c15a7f1
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<el-radio-group
v-model=
"ruleForm.limitPurchaseFlag"
class=
"limit-wrap"
@
change=
"changeLimit"
>
<el-radio-group
v-model=
"ruleForm.limitPurchaseFlag"
class=
"limit-wrap"
@
change=
"changeLimit"
>
<el-radio
:label=
"2"
>
<el-radio
:label=
"2"
>
每人限购
每人限购
<el-input-number
class=
"limit-number"
size=
"mini"
controls-position=
"right"
:disabled=
"ruleForm.limitPurchaseFlag == 1"
v-model=
"ruleForm.limitPurchaseNumber"
:max=
"100"
></el-input-number>
<el-input-number
class=
"limit-number"
size=
"mini"
controls-position=
"right"
:disabled=
"ruleForm.limitPurchaseFlag == 1"
v-model=
"ruleForm.limitPurchaseNumber"
:max=
"100"
></el-input-number>
次
次
</el-radio>
</el-radio>
<el-radio
:label=
"1"
>
不限购
</el-radio>
<el-radio
:label=
"1"
>
不限购
</el-radio>
...
@@ -280,12 +280,11 @@ export default {
...
@@ -280,12 +280,11 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
changeLimit
(
e
)
{
changeLimit
(
e
)
{
if
(
e
==
2
)
{
if
(
e
==
2
)
{
this
.
ruleForm
.
limitPurchaseNumber
=
1
this
.
ruleForm
.
limitPurchaseNumber
=
1
return
return
}
}
this
.
ruleForm
.
limitPurchaseNumber
=
0
this
.
ruleForm
.
limitPurchaseNumber
=
0
},
},
changeqrCode
(
val
)
{
changeqrCode
(
val
)
{
this
.
ruleForm
[
val
.
key
]
=
val
.
arr
[
0
]
this
.
ruleForm
[
val
.
key
]
=
val
.
arr
[
0
]
...
@@ -395,10 +394,11 @@ export default {
...
@@ -395,10 +394,11 @@ export default {
},
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
.
ruleForm
.
validate
(
async
valid
=>
{
this
.
$refs
.
ruleForm
.
validate
(
async
valid
=>
{
if
(
this
.
choseItemList
.
length
<=
0
)
{
this
.
setmealContentRules
=
true
return
}
if
(
!
valid
)
{
if
(
!
valid
)
{
if
(
this
.
choseItemList
.
length
<=
0
)
{
this
.
setmealContentRules
=
true
}
return
return
}
}
if
(
this
.
id
)
{
if
(
this
.
id
)
{
...
@@ -471,10 +471,10 @@ export default {
...
@@ -471,10 +471,10 @@ export default {
params
.
packageImg
=
this
.
ruleForm
.
packageImg
params
.
packageImg
=
this
.
ruleForm
.
packageImg
params
.
sharePosterImg
=
this
.
ruleForm
.
sharePosterImg
params
.
sharePosterImg
=
this
.
ruleForm
.
sharePosterImg
}
}
if
(
!
this
.
showGh
&&
this
.
accountLevel
==
4
)
{
}
params
.
limitPurchaseFlag
=
this
.
ruleForm
.
limitPurchaseFlag
if
(
!
this
.
showGh
&&
this
.
accountLevel
==
4
)
{
params
.
limitPurchaseNumber
=
this
.
ruleForm
.
limitPurchaseFlag
==
2
?
params
.
limitPurchaseNumber
:
''
params
.
limitPurchaseFlag
=
this
.
ruleForm
.
limitPurchaseFlag
}
params
.
limitPurchaseNumber
=
this
.
ruleForm
.
limitPurchaseFlag
==
2
?
this
.
ruleForm
.
limitPurchaseNumber
:
''
}
}
let
list
=
this
.
choseItemList
let
list
=
this
.
choseItemList
for
(
var
i
in
list
)
{
for
(
var
i
in
list
)
{
...
@@ -845,7 +845,7 @@ export default {
...
@@ -845,7 +845,7 @@ export default {
margin
:
0
4px
;
margin
:
0
4px
;
}
}
.el-input--mini
.el-input__inner
{
.el-input--mini
.el-input__inner
{
border
:
1px
solid
#
E5E5E
5
;
border
:
1px
solid
#
e5e5e
5
;
}
}
.el-input-number--mini
.el-input-number__decrease
,
.el-input-number--mini
.el-input-number__decrease
,
.el-input-number--mini
.el-input-number__increase
{
.el-input-number--mini
.el-input-number__increase
{
...
...
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