Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allCampaign
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
allCampaign
Commits
de41161b
Commit
de41161b
authored
Dec 26, 2019
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击任务一时,提示用户任务一红包已经被领完了
parent
64ec2d88
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
2019Double12/css/style.css
+6
-1
2019Double12/js/base.js
+24
-5
No files found.
2019Double12/css/style.css
View file @
de41161b
...
...
@@ -148,7 +148,12 @@ body .layui-m-layer .layui-m-layer-msg {
body
.layui-m-layer-msg
.layui-m-layercont
{
padding
:
30px
10px
;
}
.justify
.layui-m-layercont
{
text-align
:
justify
!important
;
}
.justify
{
text-align
:
justify
;
}
.markbox
{
position
:
fixed
;
left
:
0
;
...
...
2019Double12/js/base.js
View file @
de41161b
...
...
@@ -489,15 +489,25 @@ $(function () {
}
else
{
// 总共还剩多少红包
$
(
'#giftSum'
).
html
(
activityInfo
.
activityGiftInfo
.
giftSum
);
if
(
Number
(
activityInfo
.
activityGiftInfo
.
giftSum
)
<
0
){
$
(
'#giftSum'
).
html
(
0
);}
if
(
Number
(
activityInfo
.
activityGiftInfo
.
giftSum
)
<
0
)
{
$
(
'#giftSum'
).
html
(
0
);
}
task01
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task1'
).
pop
()
||
[];
task02
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task2'
).
pop
()
||
[];
task03
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task3'
).
pop
()
||
[];
task04
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task4'
).
pop
()
||
[];
if
(
task01
.
length
<
1
){
$
(
'.risk1 .disabledMask'
).
show
();}
if
(
task02
.
length
<
1
){
$
(
'.risk2 .disabledMask'
).
show
();}
if
(
task03
.
length
<
1
){
$
(
'.risk3 .disabledMask'
).
show
();}
if
(
task04
.
length
<
1
){
$
(
'.risk4 .disabledMask'
).
show
();}
if
(
task01
.
length
<
1
)
{
$
(
'.risk1 .disabledMask'
).
show
();
}
if
(
task02
.
length
<
1
)
{
$
(
'.risk2 .disabledMask'
).
show
();
}
if
(
task03
.
length
<
1
)
{
$
(
'.risk3 .disabledMask'
).
show
();
}
if
(
task04
.
length
<
1
)
{
$
(
'.risk4 .disabledMask'
).
show
();
}
if
(
task01
&&
task01
.
activityOpportunityUsedInfo
)
{
if
(
task01
.
activityOpportunityUsedInfo
.
leftTimes
>
0
)
{
$
(
'#task01 img'
).
attr
(
'src'
,
'./images/red_pocket_active.png'
)
...
...
@@ -645,6 +655,15 @@ $(function () {
}
if
(
customerId
)
{
//已经登录
if
(
campaignTaskCode
===
'12task1'
&&
task01
.
length
<
1
)
{
layer
.
open
({
content
:
'任务一红包已领完,赶快去完成其他任务领取红包吧'
,
skin
:
'msg'
,
className
:
'justify'
,
time
:
5
,
//2秒后自动关闭,
})
return
;
}
}
else
{
// 未登录
$
(
'.loginInBox'
).
show
();
...
...
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