Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
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
xulili
ybf
Commits
d5673640
Commit
d5673640
authored
Apr 18, 2020
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建活动,条件限制
parent
c81c4ae3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
createBigWheelActive.vue
wx_application/src/views/active/createBigWheelActive.vue
+14
-6
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+1
-1
No files found.
wx_application/src/views/active/createBigWheelActive.vue
View file @
d5673640
...
...
@@ -267,7 +267,7 @@
@
touchstart
.
native
.
stop=
"prizeList[index].probability_show = true"
/>
-->
<van-stepper
class=
"right noborder"
class=
"right noborder
pro-input
"
style=
"padding-right: 20px;"
v-model=
"prizeList[index].probability"
:show-plus=
"false"
...
...
@@ -277,6 +277,7 @@
min=
"1"
max=
"100"
integer
@
change=
"handleProbalitity"
/>
<span
class=
"bfb"
>
%
</span>
<!--
<van-number-keyboard
...
...
@@ -419,6 +420,12 @@ export default {
},
created
()
{},
methods
:
{
handleProbalitity
(
val
)
{
if
(
val
.
length
>
2
)
{
document
.
getElementsByClassName
(
'pro-input'
)[
0
].
getElementsByTagName
(
'input'
)[
0
].
maxLength
=
3
;
this
.
$toast
(
'最多输入3位,且最大值为100'
);
}
},
openStartTime
()
{
this
.
basicInfo
.
startShow
=
true
;
this
.
minStartDate
=
new
Date
();
...
...
@@ -586,8 +593,8 @@ export default {
this
.
$toast
(
"请完整填写表单!"
);
return
false
;
}
if
(
this
.
basicInfo
.
jointimes
>
this
.
basicInfo
.
to
)
{
this
.
$toast
(
"会员单日参与次数
<=
会员总参与次数"
);
if
(
this
.
basicInfo
.
jointimes
>
this
.
basicInfo
.
to
tal_join
)
{
this
.
$toast
(
"会员单日参与次数
应小于等于
会员总参与次数"
);
return
false
;
}
let
validate
=
null
;
...
...
@@ -610,12 +617,13 @@ export default {
validate
=
false
;
break
;
}
if
(
this
.
prizeList
[
i
].
total_limit
<
this
.
prizeList
[
i
].
limit
)
{
this
.
$toast
(
"总发放数量应大于每日发放数量"
);
if
(
this
.
prizeList
[
i
].
total_limit
<
this
.
prizeList
[
i
].
preLimit
)
{
this
.
$toast
(
"总发放数量应大于等于每日发放数量"
);
validate
=
false
;
break
;
}
if
(
this
.
prizeList
[
i
].
total_limit
<
this
.
prizeList
[
i
].
preL
imit
)
{
if
(
this
.
prizeList
[
i
].
total_limit
<
this
.
prizeList
[
i
].
l
imit
)
{
this
.
$toast
(
"总发放数量应大于每人限领数量"
);
validate
=
false
;
break
;
...
...
wx_application/src/views/mainSale/active/main/index.vue
View file @
d5673640
...
...
@@ -238,7 +238,7 @@ export default {
this
.
flag
=
sessionStorage
.
getItem
(
"role"
);
}
}
else
{
//
this.zReadyUserId()
this
.
zReadyUserId
()
this
.
zTestGetNowUrlInfo
()
}
this
.
GET_CurrentActive
()
...
...
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