Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
b1a57aea
Commit
b1a57aea
authored
Jul 23, 2021
by
dazhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组队开宝箱标题调整
parent
c4c6084b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
build/mrstaticjs/newyear-2019-landing.31b75069.chunk.js
+2
-1
build/mrstaticjs/treasure-box-home.4ca21867.chunk.js
+2
-1
build/mrstaticjs/treasure-box-mybox.62baa8b8.chunk.js
+2
-1
No files found.
build/mrstaticjs/newyear-2019-landing.31b75069.chunk.js
View file @
b1a57aea
(
this
[
"webpackJsonpmr-julyedu"
]
=
this
[
"webpackJsonpmr-julyedu"
]
||
[]).
push
([[
35
],{
1024
:
function
(
e
,
t
,
a
){},
1027
:
function
(
e
,
t
,
a
){},
1085
:
function
(
e
,
t
,
a
){},
1086
:
function
(
e
,
t
,
a
){},
1087
:
function
(
e
,
t
,
a
){},
1198
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
a
(
134
);
var
n
=
a
(
34
),
c
=
a
.
n
(
n
),
i
=
(
a
(
36
),
a
(
10
)),
s
=
a
.
n
(
i
),
r
=
a
(
3
),
o
=
a
(
5
),
l
=
a
(
58
),
u
=
a
(
6
),
m
=
a
(
7
),
d
=
a
(
0
),
p
=
a
.
n
(
d
),
h
=
(
a
(
1085
),
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
return
Object
(
r
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
o
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"box-container"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"image-box"
},
this
.
props
.
children
))}}]),
a
}(
d
.
Component
)),
g
=
a
(
25
),
b
=
a
(
20
),
v
=
a
(
581
),
y
=
a
(
582
),
E
=
(
a
(
1086
),
a
(
1
)),
f
=
a
(
419
),
w
=
a
.
n
(
f
),
j
=
a
(
96
),
S
=
a
(
176
),
_
=
a
(
15
),
N
=
(
a
(
1087
),
p
.
a
.
memo
((
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"all-course"
},
p
.
a
.
createElement
(
_
.
b
,{
to
:
"/classify"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u67e5
\
u770b
\
u5168
\
u90e8
\
u8bfe
\
u7a0b >>"
),
p
.
a
.
createElement
(
"span"
,
null
,
"
\
u6570
\
u5b66
\
u57fa
\
u7840
\
u3001
\
u6570
\
u5b66
\
u7ed3
\
u6784
\
u3001
\
u5927
\
u6570
\
u636e
\
u5b9e
\
u6218
\
u3001Python..."
)))}))),
T
=
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
r
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
c
=
new
Array
(
n
),
i
=
0
;
i
<
n
;
i
++
)
c
[
i
]
=
arguments
[
i
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
c
))).
closeIcon
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
e
.
createTeamSuccessPopup
=
null
,
e
.
joinSuccessPopup
=
null
,
e
.
shareTipPopup
=
null
,
e
.
swiper
=
null
,
e
.
shareTitle
=
""
,
e
.
shareDesc
=
""
,
e
.
state
=
{
teamData
:{
member
:[]},
origin
:
sessionStorage
.
getItem
(
"isCaptain"
)?
1
:
Object
(
E
.
c
)(
"origin"
),
treasure_code
:
Object
(
E
.
c
)(
"treasure_code"
),
activityEnd
:
!
1
,
notices
:[],
rule
:
""
,
isCaptain
:
1
==
Object
(
E
.
c
)(
"origin"
),
isLoading
:
e
.
props
.
user
.
isFetching
,
modules
:[]},
e
.
getIndexData
=
function
(){
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/m/home"
)).
then
((
function
(
t
){
if
(
200
===
t
.
data
.
code
){
var
a
=
(
t
.
data
||
{}).
data
,
n
=
Array
.
isArray
(
a
.
modules
)?
a
.
modules
:[];
e
.
setState
({
modules
:
n
})}
else
s
.
a
.
info
(
t
.
data
.
msg
,
2
)}))},
e
.
getStage
=
function
(){
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
c
=
a
.
data
,
i
=
a
.
msg
;
if
(
200
===
n
){
if
(
0
===
Number
(
c
.
treasure_stage
))
return
void
e
.
props
.
history
.
push
(
"/"
)}
else
s
.
a
.
info
(
i
,
2
)}))},
e
.
createMeta
=
function
(
e
,
t
,
a
){
var
n
=
document
.
createElement
(
"meta"
);
n
.
setAttribute
(
"name"
,
"description"
),
n
.
setAttribute
(
"itemprop"
,
"description"
),
n
.
setAttribute
(
"content"
,
t
);
var
c
=
document
.
createElement
(
"meta"
);
c
.
setAttribute
(
"itemprop"
,
"name"
),
c
.
setAttribute
(
"content"
,
e
);
var
i
=
document
.
createElement
(
"meta"
);
i
.
setAttribute
(
"itemprop"
,
"image"
),
i
.
setAttribute
(
"content"
,
a
);
var
s
=
document
.
getElementsByTagName
(
"head"
)[
0
];
s
.
appendChild
(
n
),
s
.
appendChild
(
c
),
s
.
appendChild
(
i
)},
e
.
fetchPageData
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
a
=
t
.
origin
,
n
=
void
0
===
a
?
e
.
state
.
origin
:
a
,
c
=
t
.
treasure_code
,
i
=
void
0
===
c
?
e
.
state
.
treasure_code
:
c
,
r
=
e
.
props
.
location
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/team"
),{
treasure_code
:
i
,
origin
:
n
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
==
c
){
e
.
setState
({
teamData
:
n
,
isCaptain
:
sessionStorage
.
getItem
(
"isCaptain"
)?
sessionStorage
.
getItem
(
"isCaptain"
):
1
==
Object
(
E
.
c
)(
"origin"
),
activityEnd
:
5
==
n
.
status
}),
e
.
setupWxShareConfig
(
n
.
member
),
E
.
b
.
isWeixin
?
Object
(
E
.
m
)({
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
r
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
createMeta
(
e
.
shareTitle
,
e
.
shareDesc
,
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
);
var
o
=
new
URLSearchParams
(
window
.
location
.
search
);
"1"
!==
o
.
get
(
"origin"
)
||
E
.
b
.
isWeixin
||
(
o
.
set
(
"origin"
,
"2"
),
sessionStorage
.
setItem
(
"isCaptain"
,
"1"
),
window
.
history
.
replaceState
(
null
,
""
,
"landing?"
.
concat
(
o
.
toString
()))),
e
.
showSharePromptWithParam
()}
else
520
!==
c
&&
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
setupWxShareConfig
=
function
(
t
){
var
a
=
t
.
length
,
n
=
5
-
a
<=
0
?
4
:
5
-
a
;
e
.
shareTitle
=
"
\
u8fd8
\
u5dee"
.
concat
(
n
,
"
\
u4eba
\
u5373
\
u53ef
\
u5f00
\
u5b9d
\
u7bb1
\
uff0c100%
\
u6709
\
u5956
\
uff01"
),
e
.
shareDesc
=
"
\
u52a0
\
u5165
\
u6211
\
u7684
\
u961f
\
u4f0d
\
uff0c
\
u673a
\
u68b0
\
u952e
\
u76d8
\
uff0c
\
u7eb8
\
u8d28
\
u4e66
\
u7c4d
\
u7b49
\
u8d85
\
u591a
\
u5956
\
u54c1
\
u7b49
\
u4f60
\
u62ff
\
uff01--
\
u4e03
\
u6708
\
u5728
\
u7ebf"
},
e
.
showSharePromptWithParam
=
function
(){
sessionStorage
.
getItem
(
"showShareTip"
)
&&!
sessionStorage
.
getItem
(
"closedRemind"
)
&&
e
.
showShareTip
()},
e
.
joinTeam
=
function
(){
if
(
!
e
.
requiredLogin
()){
var
t
=
e
.
state
.
treasure_code
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/joinTeam"
),{
treasure_code
:
t
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
===
c
)
switch
(
n
.
status
){
case
1
:
case
2
:
e
.
joinSuccess
(
n
);
break
;
default
:
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}
else
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))}},
e
.
handleToMyTreasure
=
function
(
t
){
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
(),
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/box/yearTreasure?id="
.
concat
(
t
,
"&version="
).
concat
(
Object
(
E
.
c
)(
"version"
))):
window
.
location
.
assign
(
"https://m.julyedu.com/box/yearTreasure?id="
.
concat
(
t
))},
e
.
joinSuccess
=
function
(
t
){
var
a
=
t
.
id
,
n
=
t
.
status
,
c
=
t
.
my_team
,
i
=
c
.
team_num
,
s
=
c
.
lack_member
,
r
=
c
.
is_team
,
o
=
c
.
treasure_code
;
e
.
joinSuccessPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,{
className
:
"join-success"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6210
\
u529f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
className
:
"landing-join-success-wrapper"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
2
===
n
?
"
\
u7ec4
\
u961f
\
u6210
\
u529f
\
uff0c
\
u606d
\
u559c
\
u4f60
\
u83b7
\
u5f97
\
u4e00
\
u4e2a
\
u5b9d
\
u7bb1
\
uff01"
:
r
?
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
"
\
u60a8
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
i
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
s
),
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1"
):
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
),
2
===
n
?
p
.
a
.
createElement
(
"img"
,{
style
:{
width
:
"150px"
,
marginTop
:
"23px"
},
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif"
,
alt
:
""
,
onClick
:
e
.
handleToMyTreasure
.
bind
(
Object
(
l
.
a
)(
e
),
a
)}):
r
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
o
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
close
:
function
(){
e
.
fetchPageData
(),
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"join"
,
e
.
state
.
treasure_code
,
2
)}))}})},
e
.
inviteMembers
=
function
(
t
){
var
a
=
e
.
props
,
n
=
a
.
history
,
c
=
a
.
match
,
i
=
a
.
location
;
if
(
Object
(
E
.
c
)(
"version"
)){
var
s
=
{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
i
.
pathname
,
"?treasure_code="
).
concat
(
t
,
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
};
Object
(
E
.
a
)(
"toShare"
,
s
)}
sessionStorage
.
setItem
(
"showShareTip"
,
"1"
),
n
.
replace
(
""
.
concat
(
c
.
url
,
"?treasure_code="
).
concat
(
t
,
"&origin="
,
1
)),
e
.
createTeamSuccessPopup
&&
e
.
createTeamSuccessPopup
.
remove
()
&&
(
e
.
createTeamSuccessPopup
=
null
),
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
fetchPageData
({
treasure_code
:
t
,
origin
:
1
}),
e
.
setState
({
isCaptain
:
!
0
})},
e
.
getFollowStatus
=
function
(){
return
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user/isFollowWeChat"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
;
return
200
===
a
&&
n
.
is_follow
}))},
e
.
createTeamSuccess
=
function
(
t
){
var
a
=
t
.
member
,
n
=
t
.
team_num
,
c
=
t
.
lack_member
,
i
=
t
.
treasure_code
;
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
getFollowStatus
().
then
((
function
(
t
){
e
.
createTeamSuccessPopup
=
Object
(
g
.
h
)({
title
:
"
\
u521b
\
u5efa
\
u6210
\
u529f"
,
className
:
"landing-create-success"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
p
.
a
.
createElement
(
"span"
,
null
,
n
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
c
),
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6~"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"treasure-box"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"ul"
,{
className
:
"members"
},
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
n
=
a
[
t
];
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
n
&&
n
.
is_captain
&&
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"avatar"
,
src
:
n
?
n
.
head_img
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png"
,
alt
:
""
}))}))),
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
i
)},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
afterClose
:
function
(){
t
||
e
.
remind
(
"create"
,
i
)}})}))},
e
.
saveImage
=
function
(
e
){
var
t
=
Object
(
E
.
c
)(
"version"
);(
t
=
"string"
===
typeof
t
?
t
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
)
&&
parseInt
(
t
)
<
451
?
s
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
E
.
a
)(
"generateQRCode"
,
e
)},
e
.
remind
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"create"
,
a
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
c
=
e
.
props
.
user
;
E
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/wx/user_temporary_qrcode/"
).
concat
(
c
.
data
.
uid
)).
then
((
function
(
e
){
return
e
.
data
.
data
.
url
})).
then
((
function
(
c
){
w
.
a
.
toDataURL
(
c
).
then
((
function
(
i
){
Object
(
g
.
h
)({
title
:
"
\
u63d0
\
u9192
\
u670d
\
u52a1"
,
className
:
"landing-remind"
,
closeIcon
:
e
.
closeIcon
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"create"
===
t
?
"
\
u6709
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
u540e
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
:
"
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u65f6
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
),
p
.
a
.
createElement
(
"img"
,{
src
:
i
,
alt
:
""
}),
E
.
b
.
isAndroidApp
?
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"button"
,{
className
:
"android-qr-code-btn"
,
onClick
:
e
.
saveImage
.
bind
(
Object
(
l
.
a
)(
e
),
c
)},
"
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801"
)):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u957f
\
u6309
\
u8bc6
\
u522b/
\
u626b
\
u7801
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u5373
\
u53ef
\
u9884
\
u7ea6"
)),
close
:
function
(){
sessionStorage
.
setItem
(
"closedRemind"
,
"1"
),
e
.
fetchPageData
({
treasure_code
:
a
,
origin
:
n
})}})}))}))},
e
.
showShareTip
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
user
,
n
=
t
.
location
;
E
.
b
.
isAndroidApp
||
E
.
b
.
isIOSApp
?
Object
(
E
.
a
)(
"toShare"
,{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
n
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
shareTipPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
e
.
state
.
teamData
.
lack_member
),
"
\
u540d
\
u961f
\
u53cb
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u5feb
\
u5206
\
u4eab
\
u7ed9
\
u597d
\
u53cb
\
u5427~"
),
className
:
"landing-share-tip "
.
concat
(
E
.
b
.
isWeixin
?
"wechat"
:
""
),
closable
:
!
1
,
close
:
function
(){
sessionStorage
.
removeItem
(
"showShareTip"
),
a
.
hasError
||
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"create"
,
Object
(
E
.
c
)(
"treasure_code"
),
1
)}))}})},
e
.
showOpenInBrowserTip
=
function
(){
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
),
className
:
"landing-open-in-browser-tip"
,
closable
:
!
1
})},
e
.
createMyTeam
=
function
(){
e
.
requiredLogin
()
||
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
200
==
c
?
e
.
createTeamSuccess
(
n
):
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
requiredLogin
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
history
,
n
=
t
.
user
,
c
=
t
.
location
;
if
(
n
.
hasError
)
return
E
.
b
.
isWeixin
?
window
.
location
.
assign
(
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="
.
concat
(
encodeURIComponent
(
""
.
concat
(
window
.
location
.
origin
).
concat
(
c
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin="
).
concat
(
Object
(
E
.
c
)(
"origin"
),
"&aa=bb"
)),
"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
)):
a
.
push
(
"/passport"
),
!
0
},
e
.
toSquare
=
function
(){
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/?version="
+
Object
(
E
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://m.julyedu.com/"
)},
e
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getStage
(),
this
.
fetchPageData
(),
this
.
getIndexData
(),
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
"create"
),
document
.
title
=
"
\
u
7cbd
\
u5b50
\
u8282
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66AI
\
u8bfe
\
u7a0b
\
uff0c
\
u73b0
\
u91d1
\
u7ea2
\
u5305
\
uff0c
\
u4eac
\
u4e1c
\
u8d2d
\
u7269
\
u5361
\
u9001
\
u4e0d
\
u505c
\
uff01-
\
u4e03
\
u6708
\
u5728
\
u7ebf"
;
var
e
=
document
.
querySelector
(
"#landing"
),
t
=
document
.
querySelector
(
".box-container"
);
t
.
offsetHeight
<
window
.
innerHeight
&&
(
e
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
),
t
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
))}},{
key
:
"componentDidUpdate"
,
value
:
function
(
e
){
e
.
user
.
hasError
===
this
.
props
.
user
.
hasError
||
this
.
props
.
user
.
hasError
||
this
.
fetchPageData
(),
e
.
user
.
isFetching
===
this
.
props
.
user
.
isFetching
||
this
.
props
.
user
.
isFetching
||
this
.
setState
({
isLoading
:
this
.
props
.
user
.
isFetching
})}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
this
.
shareTipPopup
&&
this
.
shareTipPopup
.
remove
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
,
t
=
e
.
teamData
,
a
=
t
.
head_img
,
n
=
t
.
member
,
i
=
t
.
status
,
s
=
t
.
lack_member
,
r
=
t
.
team_num
,
o
=
t
.
prize_info
,
l
=
t
.
my_team
,
u
=
t
.
standby_plan
,
m
=
e
.
activityEnd
,
d
=
e
.
isCaptain
,
g
=
e
.
isLoading
,
b
=
e
.
modules
;
return
p
.
a
.
createElement
(
"div"
,{
id
:
"landing"
},
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"div"
,{
id
:
"to-square"
},
p
.
a
.
createElement
(
"a"
,{
href
:
"javascript:"
,
onClick
:
this
.
toSquare
},
"
\
u524d
\
u5f80
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u5b98
\
u7f51
\
uff0c
\
u5b66
\
u4eba
\
u5de5
\
u667a
\
u80fd
\
u7cbe
\
u54c1
\
u8bfe
\
u7a0b
\
uff01 >>"
)),
p
.
a
.
createElement
(
h
,
null
,
p
.
a
.
createElement
(
"i"
,{
className
:
"snow-deco "
.
concat
(
u
&&
E
.
b
.
isWeixin
?
"standby"
:
""
)}),
u
&&
E
.
b
.
isWeixin
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
c
.
a
,{
className
:
"standby-space"
}),
p
.
a
.
createElement
(
"div"
,{
className
:
"standby-tip"
},
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
)),
p
.
a
.
createElement
(
"img"
,{
className
:
"main-avatar"
,
src
:
a
,
alt
:
""
}),
1
===
i
?
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
):
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u52a0
\
u5165
\
u6211
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
r
),
"
\
u53f7
\
u961f
\
u4f0d
\
uff0c
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
),
p
.
a
.
createElement
(
v
.
a
,{
showSystemNotices
:
!
1
}),
p
.
a
.
createElement
(
y
.
a
,
null
),
p
.
a
.
createElement
(
"div"
,{
className
:
"group"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"member"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
a
=
n
[
t
];
return
a
?
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
a
.
is_captain
?
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
):
null
,
p
.
a
.
createElement
(
"img"
,{
src
:
a
.
head_img
,
alt
:
""
,
className
:
"avatar"
}))):
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
,
alt
:
""
,
className
:
"avatar"
})))}))),
p
.
a
.
createElement
(
"ul"
,{
className
:
"bars"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
,
className
:
""
.
concat
(
t
<
n
.
length
?
"active"
:
""
)})}))),
1
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
"
\
u8fd8
\
u5dee "
,
s
,
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5f53
\
u524d
\
u5b9d
\
u7bb1
\
u54e6~"
),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
showShareTip
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
3
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5f53
\
u524d
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
4
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5176
\
u4ed6
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
2
===
i
&&!
m
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
joinTeam
},
"
\
u540c
\
u610f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
),
o
&&
0
!==
o
.
length
&&!
m
&&!
d
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"certainly-prompt"
},
"
\
u7b2c"
,
o
[
0
].
stage_no
,
"
\
u4e2a
\
u5b9d
\
u7bb1
\
u5fc5
\
u4e2d "
,
o
[
0
].
name
),
m
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"activity-end"
},
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6d3b
\
u52a8
\
u5df2
\
u7ed3
\
u675f"
),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u4e86
\
u89e3
\
u66f4
\
u591a
\
u6d3b
\
u52a8
\
u4fe1
\
u606f"
),
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u957f
\
u6309
\
u8bc6
\
u522b /
\
u5fae
\
u4fe1
\
u626b
\
u7801"
)))),
!
d
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"course-module"
},
p
.
a
.
createElement
(
S
.
a
,{
modules
:
b
}),
p
.
a
.
createElement
(
N
,
null
)),
g
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"loading"
,
style
:{
width
:
window
.
innerWidth
+
"px"
,
height
:
window
.
innerHeight
+
"px"
}},
p
.
a
.
createElement
(
j
.
FadeLoader
,{
color
:
"#fff"
,
loading
:
g
})))}}]),
a
}(
d
.
Component
);
t
.
default
=
Object
(
b
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),
null
)(
T
)},
1204
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
a
(
134
);
var
n
=
a
(
34
),
c
=
a
.
n
(
n
),
i
=
(
a
(
36
),
a
(
10
)),
s
=
a
.
n
(
i
),
r
=
a
(
3
),
o
=
a
(
5
),
l
=
a
(
58
),
u
=
a
(
6
),
m
=
a
(
7
),
d
=
a
(
0
),
p
=
a
.
n
(
d
),
h
=
(
a
(
1024
),
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
return
Object
(
r
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
o
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"box-container"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"image-box"
},
this
.
props
.
children
))}}]),
a
}(
d
.
Component
)),
g
=
a
(
25
),
b
=
a
(
20
),
v
=
a
(
581
),
y
=
a
(
582
),
E
=
(
a
(
1027
),
a
(
1
)),
f
=
a
(
419
),
w
=
a
.
n
(
f
),
j
=
a
(
650
),
S
=
a
(
96
),
_
=
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
r
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
c
=
new
Array
(
n
),
i
=
0
;
i
<
n
;
i
++
)
c
[
i
]
=
arguments
[
i
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
c
))).
closeIcon
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
e
.
createTeamSuccessPopup
=
null
,
e
.
joinSuccessPopup
=
null
,
e
.
shareTipPopup
=
null
,
e
.
swiper
=
null
,
e
.
shareTitle
=
""
,
e
.
shareDesc
=
""
,
e
.
state
=
{
teamData
:{
member
:[]},
origin
:
sessionStorage
.
getItem
(
"isCaptain"
)?
1
:
Object
(
E
.
c
)(
"origin"
),
treasure_code
:
Object
(
E
.
c
)(
"treasure_code"
),
activityEnd
:
!
1
,
notices
:[],
rule
:
""
,
isCaptain
:
1
==
Object
(
E
.
c
)(
"origin"
),
isLoading
:
e
.
props
.
user
.
isFetching
},
e
.
getStage
=
function
(){
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
c
=
a
.
data
,
i
=
a
.
msg
;
if
(
200
===
n
){
if
(
0
===
Number
(
c
.
activity_stage
))
return
void
e
.
props
.
history
.
push
(
"/"
)}
else
s
.
a
.
info
(
i
,
2
)}))},
e
.
createMeta
=
function
(
e
,
t
,
a
){
var
n
=
document
.
createElement
(
"meta"
);
n
.
setAttribute
(
"name"
,
"description"
),
n
.
setAttribute
(
"itemprop"
,
"description"
),
n
.
setAttribute
(
"content"
,
t
);
var
c
=
document
.
createElement
(
"meta"
);
c
.
setAttribute
(
"itemprop"
,
"name"
),
c
.
setAttribute
(
"content"
,
e
);
var
i
=
document
.
createElement
(
"meta"
);
i
.
setAttribute
(
"itemprop"
,
"image"
),
i
.
setAttribute
(
"content"
,
a
);
var
s
=
document
.
getElementsByTagName
(
"head"
)[
0
];
s
.
appendChild
(
n
),
s
.
appendChild
(
c
),
s
.
appendChild
(
i
)},
e
.
fetchPageData
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
a
=
t
.
origin
,
n
=
void
0
===
a
?
e
.
state
.
origin
:
a
,
c
=
t
.
treasure_code
,
i
=
void
0
===
c
?
e
.
state
.
treasure_code
:
c
,
r
=
e
.
props
.
location
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/team"
),{
treasure_code
:
i
,
origin
:
n
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
==
c
){
e
.
setState
({
teamData
:
n
,
isCaptain
:
sessionStorage
.
getItem
(
"isCaptain"
)?
sessionStorage
.
getItem
(
"isCaptain"
):
1
==
Object
(
E
.
c
)(
"origin"
),
activityEnd
:
5
==
n
.
status
}),
e
.
setupWxShareConfig
(
n
.
member
),
E
.
b
.
isWeixin
?
Object
(
E
.
m
)({
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
r
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
createMeta
(
e
.
shareTitle
,
e
.
shareDesc
,
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
);
var
o
=
new
URLSearchParams
(
window
.
location
.
search
);
"1"
!==
o
.
get
(
"origin"
)
||
E
.
b
.
isWeixin
||
(
o
.
set
(
"origin"
,
"2"
),
sessionStorage
.
setItem
(
"isCaptain"
,
"1"
),
window
.
history
.
replaceState
(
null
,
""
,
"landing?"
.
concat
(
o
.
toString
()))),
e
.
showSharePromptWithParam
()}
else
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
setupWxShareConfig
=
function
(
t
){
var
a
=
t
.
length
,
n
=
5
-
a
<=
0
?
4
:
5
-
a
;
e
.
shareTitle
=
"
\
u8fd8
\
u5dee"
.
concat
(
n
,
"
\
u4eba
\
u5373
\
u53ef
\
u5f00
\
u5b9d
\
u7bb1
\
uff0c100%
\
u6709
\
u5956
\
uff01"
),
e
.
shareDesc
=
"
\
u52a0
\
u5165
\
u6211
\
u7684
\
u961f
\
u4f0d
\
uff0c
\
u673a
\
u68b0
\
u952e
\
u76d8
\
uff0c
\
u7eb8
\
u8d28
\
u4e66
\
u7c4d
\
u7b49
\
u8d85
\
u591a
\
u5956
\
u54c1
\
u7b49
\
u4f60
\
u62ff
\
uff01--
\
u4e03
\
u6708
\
u5728
\
u7ebf"
},
e
.
showSharePromptWithParam
=
function
(){
sessionStorage
.
getItem
(
"showShareTip"
)
&&!
sessionStorage
.
getItem
(
"closedRemind"
)
&&
e
.
showShareTip
()},
e
.
joinTeam
=
function
(){
if
(
!
e
.
requiredLogin
()){
var
t
=
e
.
state
.
treasure_code
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/joinTeam"
),{
treasure_code
:
t
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
===
c
)
switch
(
n
.
status
){
case
1
:
case
2
:
e
.
joinSuccess
(
n
);
break
;
default
:
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}
else
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))}},
e
.
handleToMyTreasure
=
function
(
t
){
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
(),
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearTreasure?id="
.
concat
(
t
,
"&version="
).
concat
(
Object
(
E
.
c
)(
"version"
))):
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearTreasure?id="
.
concat
(
t
))},
e
.
joinSuccess
=
function
(
t
){
var
a
=
t
.
id
,
n
=
t
.
status
,
c
=
t
.
my_team
,
i
=
c
.
team_num
,
s
=
c
.
lack_member
,
r
=
c
.
is_team
,
o
=
c
.
treasure_code
;
e
.
joinSuccessPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,{
className
:
"join-success"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6210
\
u529f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
className
:
"landing-join-success-wrapper"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
2
===
n
?
"
\
u7ec4
\
u961f
\
u6210
\
u529f
\
uff0c
\
u606d
\
u559c
\
u4f60
\
u83b7
\
u5f97
\
u4e00
\
u4e2a
\
u5b9d
\
u7bb1
\
uff01"
:
r
?
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
"
\
u60a8
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
i
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
s
),
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1"
):
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
),
2
===
n
?
p
.
a
.
createElement
(
"img"
,{
style
:{
width
:
"150px"
,
marginTop
:
"23px"
},
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif"
,
alt
:
""
,
onClick
:
e
.
handleToMyTreasure
.
bind
(
Object
(
l
.
a
)(
e
),
a
)}):
r
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
o
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
close
:
function
(){
e
.
fetchPageData
(),
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"join"
,
e
.
state
.
treasure_code
,
2
)}))}})},
e
.
inviteMembers
=
function
(
t
){
var
a
=
e
.
props
,
n
=
a
.
history
,
c
=
a
.
match
,
i
=
a
.
location
;
if
(
Object
(
E
.
c
)(
"version"
)){
var
s
=
{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
i
.
pathname
,
"?treasure_code="
).
concat
(
t
,
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
};
Object
(
E
.
a
)(
"toShare"
,
s
)}
sessionStorage
.
setItem
(
"showShareTip"
,
"1"
),
n
.
replace
(
""
.
concat
(
c
.
url
,
"?treasure_code="
).
concat
(
t
,
"&origin="
,
1
)),
e
.
createTeamSuccessPopup
&&
e
.
createTeamSuccessPopup
.
remove
()
&&
(
e
.
createTeamSuccessPopup
=
null
),
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
fetchPageData
({
treasure_code
:
t
,
origin
:
1
}),
e
.
setState
({
isCaptain
:
!
0
})},
e
.
getFollowStatus
=
function
(){
return
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user/isFollowWeChat"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
;
return
200
===
a
&&
n
.
is_follow
}))},
e
.
createTeamSuccess
=
function
(
t
){
var
a
=
t
.
member
,
n
=
t
.
team_num
,
c
=
t
.
lack_member
,
i
=
t
.
treasure_code
;
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
getFollowStatus
().
then
((
function
(
t
){
e
.
createTeamSuccessPopup
=
Object
(
g
.
h
)({
title
:
"
\
u521b
\
u5efa
\
u6210
\
u529f"
,
className
:
"landing-create-success"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
p
.
a
.
createElement
(
"span"
,
null
,
n
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
c
),
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6~"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"treasure-box"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"ul"
,{
className
:
"members"
},
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
n
=
a
[
t
];
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
n
&&
n
.
is_captain
&&
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"avatar"
,
src
:
n
?
n
.
head_img
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png"
,
alt
:
""
}))}))),
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
i
)},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
afterClose
:
function
(){
t
||
e
.
remind
(
"create"
,
i
)}})}))},
e
.
saveImage
=
function
(
e
){
var
t
=
Object
(
E
.
c
)(
"version"
);(
t
=
"string"
===
typeof
t
?
t
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
)
&&
parseInt
(
t
)
<
451
?
s
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
E
.
a
)(
"generateQRCode"
,
e
)},
e
.
remind
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"create"
,
a
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
c
=
e
.
props
.
user
;
E
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/wx/user_temporary_qrcode/"
).
concat
(
c
.
data
.
uid
)).
then
((
function
(
e
){
return
e
.
data
.
data
.
url
})).
then
((
function
(
c
){
w
.
a
.
toDataURL
(
c
).
then
((
function
(
i
){
Object
(
g
.
h
)({
title
:
"
\
u63d0
\
u9192
\
u670d
\
u52a1"
,
className
:
"landing-remind"
,
closeIcon
:
e
.
closeIcon
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"create"
===
t
?
"
\
u6709
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
u540e
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
:
"
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u65f6
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
),
p
.
a
.
createElement
(
"img"
,{
src
:
i
,
alt
:
""
}),
E
.
b
.
isAndroidApp
?
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"button"
,{
className
:
"android-qr-code-btn"
,
onClick
:
e
.
saveImage
.
bind
(
Object
(
l
.
a
)(
e
),
c
)},
"
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801"
)):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u957f
\
u6309
\
u8bc6
\
u522b/
\
u626b
\
u7801
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u5373
\
u53ef
\
u9884
\
u7ea6"
)),
close
:
function
(){
sessionStorage
.
setItem
(
"closedRemind"
,
"1"
),
e
.
fetchPageData
({
treasure_code
:
a
,
origin
:
n
})}})}))}))},
e
.
showShareTip
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
user
,
n
=
t
.
location
;
E
.
b
.
isAndroidApp
||
E
.
b
.
isIOSApp
?
Object
(
E
.
a
)(
"toShare"
,{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
n
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
shareTipPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
e
.
state
.
teamData
.
lack_member
),
"
\
u540d
\
u961f
\
u53cb
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u5feb
\
u5206
\
u4eab
\
u7ed9
\
u597d
\
u53cb
\
u5427~"
),
className
:
"landing-share-tip "
.
concat
(
E
.
b
.
isWeixin
?
"wechat"
:
""
),
closable
:
!
1
,
close
:
function
(){
sessionStorage
.
removeItem
(
"showShareTip"
),
a
.
hasError
||
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"create"
,
Object
(
E
.
c
)(
"treasure_code"
),
1
)}))}})},
e
.
showOpenInBrowserTip
=
function
(){
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
),
className
:
"landing-open-in-browser-tip"
,
closable
:
!
1
})},
e
.
createMyTeam
=
function
(){
e
.
requiredLogin
()
||
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
200
==
c
?
e
.
createTeamSuccess
(
n
):
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
requiredLogin
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
history
,
n
=
t
.
user
,
c
=
t
.
location
;
if
(
n
.
hasError
)
return
E
.
b
.
isWeixin
?
window
.
location
.
assign
(
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="
.
concat
(
encodeURIComponent
(
""
.
concat
(
window
.
location
.
origin
).
concat
(
c
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin="
).
concat
(
Object
(
E
.
c
)(
"origin"
),
"&aa=bb"
)),
"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
)):
a
.
push
(
"/passport"
),
!
0
},
e
.
toSquare
=
function
(){
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearindex?version="
+
Object
(
E
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearindex"
)},
e
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getStage
(),
this
.
fetchPageData
(),
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
"create"
),
document
.
title
=
"AI
\
u5145
\
u7535
\
u5b63
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66AI
\
u7206
\
u6b3e
\
u597d
\
u8bfe
\
uff0c300
\
u672c
\
u7a0b
\
u5e8f
\
u5458
\
u5fc5
\
u5907
\
u7eb8
\
u8d28
\
u4e66
\
u514d
\
u8d39
\
u9001
\
uff0cAI
\
u8fdb
\
u9636
\
u5b9d
\
u5178
\
u6765
\
u5c31
\
u9001
\
uff01-
\
u4e03
\
u6708
\
u5728
\
u7ebf"
;
var
e
=
document
.
querySelector
(
"#landing"
),
t
=
document
.
querySelector
(
".box-container"
);
t
.
offsetHeight
<
window
.
innerHeight
&&
(
e
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
),
t
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
))}},{
key
:
"componentDidUpdate"
,
value
:
function
(
e
){
e
.
user
.
hasError
===
this
.
props
.
user
.
hasError
||
this
.
props
.
user
.
hasError
||
this
.
fetchPageData
(),
e
.
user
.
isFetching
===
this
.
props
.
user
.
isFetching
||
this
.
props
.
user
.
isFetching
||
this
.
setState
({
isLoading
:
this
.
props
.
user
.
isFetching
})}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
this
.
shareTipPopup
&&
this
.
shareTipPopup
.
remove
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
,
t
=
e
.
teamData
,
a
=
t
.
head_img
,
n
=
t
.
member
,
i
=
t
.
status
,
s
=
t
.
lack_member
,
r
=
t
.
team_num
,
o
=
t
.
prize_info
,
l
=
t
.
my_team
,
u
=
t
.
standby_plan
,
m
=
e
.
activityEnd
,
d
=
e
.
isCaptain
,
g
=
e
.
isLoading
;
return
p
.
a
.
createElement
(
"div"
,{
id
:
"landing"
},
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"div"
,{
id
:
"to-square"
},
p
.
a
.
createElement
(
"a"
,{
href
:
"javascript:"
,
onClick
:
this
.
toSquare
},
"
\
u524d
\
u5f80
\
u6d3b
\
u52a8
\
u4f1a
\
u573a
\
uff0c
\
u4eab
\
u66f4
\
u591a
\
u798f
\
u5229
\
uff01 >>"
)),
p
.
a
.
createElement
(
h
,
null
,
p
.
a
.
createElement
(
"i"
,{
className
:
"snow-deco "
.
concat
(
u
&&
E
.
b
.
isWeixin
?
"standby"
:
""
)}),
u
&&
E
.
b
.
isWeixin
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
c
.
a
,{
className
:
"standby-space"
}),
p
.
a
.
createElement
(
"div"
,{
className
:
"standby-tip"
},
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
)),
p
.
a
.
createElement
(
"img"
,{
className
:
"main-avatar"
,
src
:
a
,
alt
:
""
}),
1
===
i
?
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
):
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u52a0
\
u5165
\
u6211
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
r
),
"
\
u53f7
\
u961f
\
u4f0d
\
uff0c
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
),
p
.
a
.
createElement
(
v
.
a
,{
showSystemNotices
:
!
1
}),
p
.
a
.
createElement
(
y
.
a
,
null
),
p
.
a
.
createElement
(
"div"
,{
className
:
"group"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"member"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
a
=
n
[
t
];
return
a
?
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
a
.
is_captain
?
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
):
null
,
p
.
a
.
createElement
(
"img"
,{
src
:
a
.
head_img
,
alt
:
""
,
className
:
"avatar"
}))):
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
,
alt
:
""
,
className
:
"avatar"
})))}))),
p
.
a
.
createElement
(
"ul"
,{
className
:
"bars"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
,
className
:
""
.
concat
(
t
<
n
.
length
?
"active"
:
""
)})}))),
1
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
"
\
u8fd8
\
u5dee "
,
s
,
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5f53
\
u524d
\
u5b9d
\
u7bb1
\
u54e6~"
),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
showShareTip
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
3
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5f53
\
u524d
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
4
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5176
\
u4ed6
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
2
===
i
&&!
m
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
joinTeam
},
"
\
u540c
\
u610f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
),
o
&&
0
!==
o
.
length
&&!
m
&&!
d
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"certainly-prompt"
},
"
\
u7b2c"
,
o
[
0
].
stage_no
,
"
\
u4e2a
\
u5b9d
\
u7bb1
\
u5fc5
\
u4e2d "
,
o
[
0
].
name
),
m
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"activity-end"
},
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6d3b
\
u52a8
\
u5df2
\
u7ed3
\
u675f"
),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u4e86
\
u89e3
\
u66f4
\
u591a
\
u6d3b
\
u52a8
\
u4fe1
\
u606f"
),
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u957f
\
u6309
\
u8bc6
\
u522b /
\
u5fae
\
u4fe1
\
u626b
\
u7801"
)))),
!
d
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
c
.
a
,{
size
:
"xl"
}),
p
.
a
.
createElement
(
j
.
a
,{
getSum
:
function
(){}})),
g
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"loading"
,
style
:{
width
:
window
.
innerWidth
+
"px"
,
height
:
window
.
innerHeight
+
"px"
}},
p
.
a
.
createElement
(
S
.
FadeLoader
,{
color
:
"#fff"
,
loading
:
g
})))}}]),
a
}(
d
.
Component
);
t
.
default
=
Object
(
b
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),
null
)(
_
)}}]);
(
this
[
"webpackJsonpmr-julyedu"
]
=
this
[
"webpackJsonpmr-julyedu"
]
||
[]).
push
([[
35
],{
1024
:
function
(
e
,
t
,
a
){},
1027
:
function
(
e
,
t
,
a
){},
1085
:
function
(
e
,
t
,
a
){},
1086
:
function
(
e
,
t
,
a
){},
1087
:
function
(
e
,
t
,
a
){},
1198
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
a
(
134
);
var
n
=
a
(
34
),
c
=
a
.
n
(
n
),
i
=
(
a
(
36
),
a
(
10
)),
s
=
a
.
n
(
i
),
r
=
a
(
3
),
o
=
a
(
5
),
l
=
a
(
58
),
u
=
a
(
6
),
m
=
a
(
7
),
d
=
a
(
0
),
p
=
a
.
n
(
d
),
h
=
(
a
(
1085
),
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
return
Object
(
r
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
o
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"box-container"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"image-box"
},
this
.
props
.
children
))}}]),
a
}(
d
.
Component
)),
g
=
a
(
25
),
b
=
a
(
20
),
v
=
a
(
581
),
y
=
a
(
582
),
E
=
(
a
(
1086
),
a
(
1
)),
f
=
a
(
419
),
w
=
a
.
n
(
f
),
j
=
a
(
96
),
S
=
a
(
176
),
_
=
a
(
15
),
N
=
(
a
(
1087
),
p
.
a
.
memo
((
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"all-course"
},
p
.
a
.
createElement
(
_
.
b
,{
to
:
"/classify"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u67e5
\
u770b
\
u5168
\
u90e8
\
u8bfe
\
u7a0b >>"
),
p
.
a
.
createElement
(
"span"
,
null
,
"
\
u6570
\
u5b66
\
u57fa
\
u7840
\
u3001
\
u6570
\
u5b66
\
u7ed3
\
u6784
\
u3001
\
u5927
\
u6570
\
u636e
\
u5b9e
\
u6218
\
u3001Python..."
)))}))),
T
=
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
r
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
c
=
new
Array
(
n
),
i
=
0
;
i
<
n
;
i
++
)
c
[
i
]
=
arguments
[
i
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
c
))).
closeIcon
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
e
.
createTeamSuccessPopup
=
null
,
e
.
joinSuccessPopup
=
null
,
e
.
shareTipPopup
=
null
,
e
.
swiper
=
null
,
e
.
shareTitle
=
""
,
e
.
shareDesc
=
""
,
e
.
state
=
{
teamData
:{
member
:[]},
origin
:
sessionStorage
.
getItem
(
"isCaptain"
)?
1
:
Object
(
E
.
c
)(
"origin"
),
treasure_code
:
Object
(
E
.
c
)(
"treasure_code"
),
activityEnd
:
!
1
,
notices
:[],
rule
:
""
,
isCaptain
:
1
==
Object
(
E
.
c
)(
"origin"
),
isLoading
:
e
.
props
.
user
.
isFetching
,
modules
:[]},
e
.
getIndexData
=
function
(){
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/m/home"
)).
then
((
function
(
t
){
if
(
200
===
t
.
data
.
code
){
var
a
=
(
t
.
data
||
{}).
data
,
n
=
Array
.
isArray
(
a
.
modules
)?
a
.
modules
:[];
e
.
setState
({
modules
:
n
})}
else
s
.
a
.
info
(
t
.
data
.
msg
,
2
)}))},
e
.
getStage
=
function
(){
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
c
=
a
.
data
,
i
=
a
.
msg
;
if
(
200
===
n
){
if
(
0
===
Number
(
c
.
treasure_stage
))
return
void
e
.
props
.
history
.
push
(
"/"
)}
else
s
.
a
.
info
(
i
,
2
)}))},
e
.
createMeta
=
function
(
e
,
t
,
a
){
var
n
=
document
.
createElement
(
"meta"
);
n
.
setAttribute
(
"name"
,
"description"
),
n
.
setAttribute
(
"itemprop"
,
"description"
),
n
.
setAttribute
(
"content"
,
t
);
var
c
=
document
.
createElement
(
"meta"
);
c
.
setAttribute
(
"itemprop"
,
"name"
),
c
.
setAttribute
(
"content"
,
e
);
var
i
=
document
.
createElement
(
"meta"
);
i
.
setAttribute
(
"itemprop"
,
"image"
),
i
.
setAttribute
(
"content"
,
a
);
var
s
=
document
.
getElementsByTagName
(
"head"
)[
0
];
s
.
appendChild
(
n
),
s
.
appendChild
(
c
),
s
.
appendChild
(
i
)},
e
.
fetchPageData
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
a
=
t
.
origin
,
n
=
void
0
===
a
?
e
.
state
.
origin
:
a
,
c
=
t
.
treasure_code
,
i
=
void
0
===
c
?
e
.
state
.
treasure_code
:
c
,
r
=
e
.
props
.
location
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/team"
),{
treasure_code
:
i
,
origin
:
n
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
==
c
){
e
.
setState
({
teamData
:
n
,
isCaptain
:
sessionStorage
.
getItem
(
"isCaptain"
)?
sessionStorage
.
getItem
(
"isCaptain"
):
1
==
Object
(
E
.
c
)(
"origin"
),
activityEnd
:
5
==
n
.
status
}),
e
.
setupWxShareConfig
(
n
.
member
),
E
.
b
.
isWeixin
?
Object
(
E
.
m
)({
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
r
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
createMeta
(
e
.
shareTitle
,
e
.
shareDesc
,
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
);
var
o
=
new
URLSearchParams
(
window
.
location
.
search
);
"1"
!==
o
.
get
(
"origin"
)
||
E
.
b
.
isWeixin
||
(
o
.
set
(
"origin"
,
"2"
),
sessionStorage
.
setItem
(
"isCaptain"
,
"1"
),
window
.
history
.
replaceState
(
null
,
""
,
"landing?"
.
concat
(
o
.
toString
()))),
e
.
showSharePromptWithParam
()}
else
520
!==
c
&&
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
setupWxShareConfig
=
function
(
t
){
var
a
=
t
.
length
,
n
=
5
-
a
<=
0
?
4
:
5
-
a
;
e
.
shareTitle
=
"
\
u8fd8
\
u5dee"
.
concat
(
n
,
"
\
u4eba
\
u5373
\
u53ef
\
u5f00
\
u5b9d
\
u7bb1
\
uff0c100%
\
u6709
\
u5956
\
uff01"
),
e
.
shareDesc
=
"
\
u52a0
\
u5165
\
u6211
\
u7684
\
u961f
\
u4f0d
\
uff0c
\
u673a
\
u68b0
\
u952e
\
u76d8
\
uff0c
\
u7eb8
\
u8d28
\
u4e66
\
u7c4d
\
u7b49
\
u8d85
\
u591a
\
u5956
\
u54c1
\
u7b49
\
u4f60
\
u62ff
\
uff01--
\
u4e03
\
u6708
\
u5728
\
u7ebf"
},
e
.
showSharePromptWithParam
=
function
(){
sessionStorage
.
getItem
(
"showShareTip"
)
&&!
sessionStorage
.
getItem
(
"closedRemind"
)
&&
e
.
showShareTip
()},
e
.
joinTeam
=
function
(){
if
(
!
e
.
requiredLogin
()){
var
t
=
e
.
state
.
treasure_code
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/joinTeam"
),{
treasure_code
:
t
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
===
c
)
switch
(
n
.
status
){
case
1
:
case
2
:
e
.
joinSuccess
(
n
);
break
;
default
:
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}
else
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))}},
e
.
handleToMyTreasure
=
function
(
t
){
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
(),
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/box/yearTreasure?id="
.
concat
(
t
,
"&version="
).
concat
(
Object
(
E
.
c
)(
"version"
))):
window
.
location
.
assign
(
"https://m.julyedu.com/box/yearTreasure?id="
.
concat
(
t
))},
e
.
joinSuccess
=
function
(
t
){
var
a
=
t
.
id
,
n
=
t
.
status
,
c
=
t
.
my_team
,
i
=
c
.
team_num
,
s
=
c
.
lack_member
,
r
=
c
.
is_team
,
o
=
c
.
treasure_code
;
e
.
joinSuccessPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,{
className
:
"join-success"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6210
\
u529f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
className
:
"landing-join-success-wrapper"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
2
===
n
?
"
\
u7ec4
\
u961f
\
u6210
\
u529f
\
uff0c
\
u606d
\
u559c
\
u4f60
\
u83b7
\
u5f97
\
u4e00
\
u4e2a
\
u5b9d
\
u7bb1
\
uff01"
:
r
?
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
"
\
u60a8
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
i
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
s
),
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1"
):
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
),
2
===
n
?
p
.
a
.
createElement
(
"img"
,{
style
:{
width
:
"150px"
,
marginTop
:
"23px"
},
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif"
,
alt
:
""
,
onClick
:
e
.
handleToMyTreasure
.
bind
(
Object
(
l
.
a
)(
e
),
a
)}):
r
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
o
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
close
:
function
(){
e
.
fetchPageData
(),
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"join"
,
e
.
state
.
treasure_code
,
2
)}))}})},
e
.
inviteMembers
=
function
(
t
){
var
a
=
e
.
props
,
n
=
a
.
history
,
c
=
a
.
match
,
i
=
a
.
location
;
if
(
Object
(
E
.
c
)(
"version"
)){
var
s
=
{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
i
.
pathname
,
"?treasure_code="
).
concat
(
t
,
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
};
Object
(
E
.
a
)(
"toShare"
,
s
)}
sessionStorage
.
setItem
(
"showShareTip"
,
"1"
),
n
.
replace
(
""
.
concat
(
c
.
url
,
"?treasure_code="
).
concat
(
t
,
"&origin="
,
1
)),
e
.
createTeamSuccessPopup
&&
e
.
createTeamSuccessPopup
.
remove
()
&&
(
e
.
createTeamSuccessPopup
=
null
),
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
fetchPageData
({
treasure_code
:
t
,
origin
:
1
}),
e
.
setState
({
isCaptain
:
!
0
})},
e
.
getFollowStatus
=
function
(){
return
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user/isFollowWeChat"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
;
return
200
===
a
&&
n
.
is_follow
}))},
e
.
createTeamSuccess
=
function
(
t
){
var
a
=
t
.
member
,
n
=
t
.
team_num
,
c
=
t
.
lack_member
,
i
=
t
.
treasure_code
;
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
getFollowStatus
().
then
((
function
(
t
){
e
.
createTeamSuccessPopup
=
Object
(
g
.
h
)({
title
:
"
\
u521b
\
u5efa
\
u6210
\
u529f"
,
className
:
"landing-create-success"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
p
.
a
.
createElement
(
"span"
,
null
,
n
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
c
),
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6~"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"treasure-box"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"ul"
,{
className
:
"members"
},
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
n
=
a
[
t
];
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
n
&&
n
.
is_captain
&&
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"avatar"
,
src
:
n
?
n
.
head_img
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png"
,
alt
:
""
}))}))),
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
i
)},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
afterClose
:
function
(){
t
||
e
.
remind
(
"create"
,
i
)}})}))},
e
.
saveImage
=
function
(
e
){
var
t
=
Object
(
E
.
c
)(
"version"
);(
t
=
"string"
===
typeof
t
?
t
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
)
&&
parseInt
(
t
)
<
451
?
s
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
E
.
a
)(
"generateQRCode"
,
e
)},
e
.
remind
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"create"
,
a
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
c
=
e
.
props
.
user
;
E
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/wx/user_temporary_qrcode/"
).
concat
(
c
.
data
.
uid
)).
then
((
function
(
e
){
return
e
.
data
.
data
.
url
})).
then
((
function
(
c
){
w
.
a
.
toDataURL
(
c
).
then
((
function
(
i
){
Object
(
g
.
h
)({
title
:
"
\
u63d0
\
u9192
\
u670d
\
u52a1"
,
className
:
"landing-remind"
,
closeIcon
:
e
.
closeIcon
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"create"
===
t
?
"
\
u6709
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
u540e
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
:
"
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u65f6
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
),
p
.
a
.
createElement
(
"img"
,{
src
:
i
,
alt
:
""
}),
E
.
b
.
isAndroidApp
?
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"button"
,{
className
:
"android-qr-code-btn"
,
onClick
:
e
.
saveImage
.
bind
(
Object
(
l
.
a
)(
e
),
c
)},
"
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801"
)):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u957f
\
u6309
\
u8bc6
\
u522b/
\
u626b
\
u7801
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u5373
\
u53ef
\
u9884
\
u7ea6"
)),
close
:
function
(){
sessionStorage
.
setItem
(
"closedRemind"
,
"1"
),
e
.
fetchPageData
({
treasure_code
:
a
,
origin
:
n
})}})}))}))},
e
.
showShareTip
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
user
,
n
=
t
.
location
;
E
.
b
.
isAndroidApp
||
E
.
b
.
isIOSApp
?
Object
(
E
.
a
)(
"toShare"
,{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
n
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
shareTipPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
e
.
state
.
teamData
.
lack_member
),
"
\
u540d
\
u961f
\
u53cb
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u5feb
\
u5206
\
u4eab
\
u7ed9
\
u597d
\
u53cb
\
u5427~"
),
className
:
"landing-share-tip "
.
concat
(
E
.
b
.
isWeixin
?
"wechat"
:
""
),
closable
:
!
1
,
close
:
function
(){
sessionStorage
.
removeItem
(
"showShareTip"
),
a
.
hasError
||
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"create"
,
Object
(
E
.
c
)(
"treasure_code"
),
1
)}))}})},
e
.
showOpenInBrowserTip
=
function
(){
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
),
className
:
"landing-open-in-browser-tip"
,
closable
:
!
1
})},
e
.
createMyTeam
=
function
(){
e
.
requiredLogin
()
||
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
200
==
c
?
e
.
createTeamSuccess
(
n
):
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
requiredLogin
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
history
,
n
=
t
.
user
,
c
=
t
.
location
;
if
(
n
.
hasError
)
return
E
.
b
.
isWeixin
?
window
.
location
.
assign
(
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="
.
concat
(
encodeURIComponent
(
""
.
concat
(
window
.
location
.
origin
).
concat
(
c
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin="
).
concat
(
Object
(
E
.
c
)(
"origin"
),
"&aa=bb"
)),
"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
)):
a
.
push
(
"/passport"
),
!
0
},
e
.
toSquare
=
function
(){
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/?version="
+
Object
(
E
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://m.julyedu.com/"
)},
e
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getStage
(),
this
.
fetchPageData
(),
this
.
getIndexData
(),
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
"create"
),
document
.
title
=
"
\
u
0041
\
u0049
\
u5145
\
u7535
\
u5b63
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66
\
u6b63
\
u4ef7
\
u8bfe
\
uff0c
\
u0032
\
u0030
\
u0030
\
u672c
\
u7eb8
\
u8d28
\
u4e66
\
u7b49
\
u5305
\
u90ae
\
u9001
\
uff01
\
u002d
\
u4e03
\
u6708
\
u5728
\
u7ebf"
;
var
e
=
document
.
querySelector
(
"#landing"
),
t
=
document
.
querySelector
(
".box-container"
);
t
.
offsetHeight
<
window
.
innerHeight
&&
(
e
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
),
t
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
))}},{
key
:
"componentDidUpdate"
,
value
:
function
(
e
){
e
.
user
.
hasError
===
this
.
props
.
user
.
hasError
||
this
.
props
.
user
.
hasError
||
this
.
fetchPageData
(),
e
.
user
.
isFetching
===
this
.
props
.
user
.
isFetching
||
this
.
props
.
user
.
isFetching
||
this
.
setState
({
isLoading
:
this
.
props
.
user
.
isFetching
})}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
this
.
shareTipPopup
&&
this
.
shareTipPopup
.
remove
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
,
t
=
e
.
teamData
,
a
=
t
.
head_img
,
n
=
t
.
member
,
i
=
t
.
status
,
s
=
t
.
lack_member
,
r
=
t
.
team_num
,
o
=
t
.
prize_info
,
l
=
t
.
my_team
,
u
=
t
.
standby_plan
,
m
=
e
.
activityEnd
,
d
=
e
.
isCaptain
,
g
=
e
.
isLoading
,
b
=
e
.
modules
;
return
p
.
a
.
createElement
(
"div"
,{
id
:
"landing"
},
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"div"
,{
id
:
"to-square"
},
p
.
a
.
createElement
(
"a"
,{
href
:
"javascript:"
,
onClick
:
this
.
toSquare
},
"
\
u524d
\
u5f80
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u5b98
\
u7f51
\
uff0c
\
u5b66
\
u4eba
\
u5de5
\
u667a
\
u80fd
\
u7cbe
\
u54c1
\
u8bfe
\
u7a0b
\
uff01 >>"
)),
p
.
a
.
createElement
(
h
,
null
,
p
.
a
.
createElement
(
"i"
,{
className
:
"snow-deco "
.
concat
(
u
&&
E
.
b
.
isWeixin
?
"standby"
:
""
)}),
u
&&
E
.
b
.
isWeixin
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
c
.
a
,{
className
:
"standby-space"
}),
p
.
a
.
createElement
(
"div"
,{
className
:
"standby-tip"
},
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
)),
p
.
a
.
createElement
(
"img"
,{
className
:
"main-avatar"
,
src
:
a
,
alt
:
""
}),
1
===
i
?
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
):
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u52a0
\
u5165
\
u6211
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
r
),
"
\
u53f7
\
u961f
\
u4f0d
\
uff0c
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
),
p
.
a
.
createElement
(
v
.
a
,{
showSystemNotices
:
!
1
}),
p
.
a
.
createElement
(
y
.
a
,
null
),
p
.
a
.
createElement
(
"div"
,{
className
:
"group"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"member"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
a
=
n
[
t
];
return
a
?
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
a
.
is_captain
?
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
):
null
,
p
.
a
.
createElement
(
"img"
,{
src
:
a
.
head_img
,
alt
:
""
,
className
:
"avatar"
}))):
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
,
alt
:
""
,
className
:
"avatar"
})))}))),
p
.
a
.
createElement
(
"ul"
,{
className
:
"bars"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
,
className
:
""
.
concat
(
t
<
n
.
length
?
"active"
:
""
)})}))),
1
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
"
\
u8fd8
\
u5dee "
,
s
,
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5f53
\
u524d
\
u5b9d
\
u7bb1
\
u54e6~"
),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
showShareTip
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
3
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5f53
\
u524d
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
4
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5176
\
u4ed6
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
2
===
i
&&!
m
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
joinTeam
},
"
\
u540c
\
u610f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
),
o
&&
0
!==
o
.
length
&&!
m
&&!
d
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"certainly-prompt"
},
"
\
u7b2c"
,
o
[
0
].
stage_no
,
"
\
u4e2a
\
u5b9d
\
u7bb1
\
u5fc5
\
u4e2d "
,
o
[
0
].
name
),
m
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"activity-end"
},
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6d3b
\
u52a8
\
u5df2
\
u7ed3
\
u675f"
),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u4e86
\
u89e3
\
u66f4
\
u591a
\
u6d3b
\
u52a8
\
u4fe1
\
u606f"
),
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u957f
\
u6309
\
u8bc6
\
u522b /
\
u5fae
\
u4fe1
\
u626b
\
u7801"
)))),
!
d
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"course-module"
},
p
.
a
.
createElement
(
S
.
a
,{
modules
:
b
}),
p
.
a
.
createElement
(
N
,
null
)),
g
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"loading"
,
style
:{
width
:
window
.
innerWidth
+
"px"
,
height
:
window
.
innerHeight
+
"px"
}},
p
.
a
.
createElement
(
j
.
FadeLoader
,{
color
:
"#fff"
,
loading
:
g
})))}}]),
a
}(
d
.
Component
);
t
.
default
=
Object
(
b
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),
null
)(
T
)},
1204
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
a
(
134
);
var
n
=
a
(
34
),
c
=
a
.
n
(
n
),
i
=
(
a
(
36
),
a
(
10
)),
s
=
a
.
n
(
i
),
r
=
a
(
3
),
o
=
a
(
5
),
l
=
a
(
58
),
u
=
a
(
6
),
m
=
a
(
7
),
d
=
a
(
0
),
p
=
a
.
n
(
d
),
h
=
(
a
(
1024
),
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
return
Object
(
r
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
o
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"box-container"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"image-box"
},
this
.
props
.
children
))}}]),
a
}(
d
.
Component
)),
g
=
a
(
25
),
b
=
a
(
20
),
v
=
a
(
581
),
y
=
a
(
582
),
E
=
(
a
(
1027
),
a
(
1
)),
f
=
a
(
419
),
w
=
a
.
n
(
f
),
j
=
a
(
650
),
S
=
a
(
96
),
_
=
function
(
e
){
Object
(
u
.
a
)(
a
,
e
);
var
t
=
Object
(
m
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
r
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
c
=
new
Array
(
n
),
i
=
0
;
i
<
n
;
i
++
)
c
[
i
]
=
arguments
[
i
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
c
))).
closeIcon
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
e
.
createTeamSuccessPopup
=
null
,
e
.
joinSuccessPopup
=
null
,
e
.
shareTipPopup
=
null
,
e
.
swiper
=
null
,
e
.
shareTitle
=
""
,
e
.
shareDesc
=
""
,
e
.
state
=
{
teamData
:{
member
:[]},
origin
:
sessionStorage
.
getItem
(
"isCaptain"
)?
1
:
Object
(
E
.
c
)(
"origin"
),
treasure_code
:
Object
(
E
.
c
)(
"treasure_code"
),
activityEnd
:
!
1
,
notices
:[],
rule
:
""
,
isCaptain
:
1
==
Object
(
E
.
c
)(
"origin"
),
isLoading
:
e
.
props
.
user
.
isFetching
},
e
.
getStage
=
function
(){
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
c
=
a
.
data
,
i
=
a
.
msg
;
if
(
200
===
n
){
if
(
0
===
Number
(
c
.
activity_stage
))
return
void
e
.
props
.
history
.
push
(
"/"
)}
else
s
.
a
.
info
(
i
,
2
)}))},
e
.
createMeta
=
function
(
e
,
t
,
a
){
var
n
=
document
.
createElement
(
"meta"
);
n
.
setAttribute
(
"name"
,
"description"
),
n
.
setAttribute
(
"itemprop"
,
"description"
),
n
.
setAttribute
(
"content"
,
t
);
var
c
=
document
.
createElement
(
"meta"
);
c
.
setAttribute
(
"itemprop"
,
"name"
),
c
.
setAttribute
(
"content"
,
e
);
var
i
=
document
.
createElement
(
"meta"
);
i
.
setAttribute
(
"itemprop"
,
"image"
),
i
.
setAttribute
(
"content"
,
a
);
var
s
=
document
.
getElementsByTagName
(
"head"
)[
0
];
s
.
appendChild
(
n
),
s
.
appendChild
(
c
),
s
.
appendChild
(
i
)},
e
.
fetchPageData
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
a
=
t
.
origin
,
n
=
void
0
===
a
?
e
.
state
.
origin
:
a
,
c
=
t
.
treasure_code
,
i
=
void
0
===
c
?
e
.
state
.
treasure_code
:
c
,
r
=
e
.
props
.
location
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/team"
),{
treasure_code
:
i
,
origin
:
n
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
==
c
){
e
.
setState
({
teamData
:
n
,
isCaptain
:
sessionStorage
.
getItem
(
"isCaptain"
)?
sessionStorage
.
getItem
(
"isCaptain"
):
1
==
Object
(
E
.
c
)(
"origin"
),
activityEnd
:
5
==
n
.
status
}),
e
.
setupWxShareConfig
(
n
.
member
),
E
.
b
.
isWeixin
?
Object
(
E
.
m
)({
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
r
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
createMeta
(
e
.
shareTitle
,
e
.
shareDesc
,
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
);
var
o
=
new
URLSearchParams
(
window
.
location
.
search
);
"1"
!==
o
.
get
(
"origin"
)
||
E
.
b
.
isWeixin
||
(
o
.
set
(
"origin"
,
"2"
),
sessionStorage
.
setItem
(
"isCaptain"
,
"1"
),
window
.
history
.
replaceState
(
null
,
""
,
"landing?"
.
concat
(
o
.
toString
()))),
e
.
showSharePromptWithParam
()}
else
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
setupWxShareConfig
=
function
(
t
){
var
a
=
t
.
length
,
n
=
5
-
a
<=
0
?
4
:
5
-
a
;
e
.
shareTitle
=
"
\
u8fd8
\
u5dee"
.
concat
(
n
,
"
\
u4eba
\
u5373
\
u53ef
\
u5f00
\
u5b9d
\
u7bb1
\
uff0c100%
\
u6709
\
u5956
\
uff01"
),
e
.
shareDesc
=
"
\
u52a0
\
u5165
\
u6211
\
u7684
\
u961f
\
u4f0d
\
uff0c
\
u673a
\
u68b0
\
u952e
\
u76d8
\
uff0c
\
u7eb8
\
u8d28
\
u4e66
\
u7c4d
\
u7b49
\
u8d85
\
u591a
\
u5956
\
u54c1
\
u7b49
\
u4f60
\
u62ff
\
uff01--
\
u4e03
\
u6708
\
u5728
\
u7ebf"
},
e
.
showSharePromptWithParam
=
function
(){
sessionStorage
.
getItem
(
"showShareTip"
)
&&!
sessionStorage
.
getItem
(
"closedRemind"
)
&&
e
.
showShareTip
()},
e
.
joinTeam
=
function
(){
if
(
!
e
.
requiredLogin
()){
var
t
=
e
.
state
.
treasure_code
;
E
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/treasure/joinTeam"
),{
treasure_code
:
t
}).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
if
(
200
===
c
)
switch
(
n
.
status
){
case
1
:
case
2
:
e
.
joinSuccess
(
n
);
break
;
default
:
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}
else
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))}},
e
.
handleToMyTreasure
=
function
(
t
){
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
(),
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearTreasure?id="
.
concat
(
t
,
"&version="
).
concat
(
Object
(
E
.
c
)(
"version"
))):
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearTreasure?id="
.
concat
(
t
))},
e
.
joinSuccess
=
function
(
t
){
var
a
=
t
.
id
,
n
=
t
.
status
,
c
=
t
.
my_team
,
i
=
c
.
team_num
,
s
=
c
.
lack_member
,
r
=
c
.
is_team
,
o
=
c
.
treasure_code
;
e
.
joinSuccessPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,{
className
:
"join-success"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6210
\
u529f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
className
:
"landing-join-success-wrapper"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
2
===
n
?
"
\
u7ec4
\
u961f
\
u6210
\
u529f
\
uff0c
\
u606d
\
u559c
\
u4f60
\
u83b7
\
u5f97
\
u4e00
\
u4e2a
\
u5b9d
\
u7bb1
\
uff01"
:
r
?
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
"
\
u60a8
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
i
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
s
),
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1"
):
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
),
2
===
n
?
p
.
a
.
createElement
(
"img"
,{
style
:{
width
:
"150px"
,
marginTop
:
"23px"
},
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif"
,
alt
:
""
,
onClick
:
e
.
handleToMyTreasure
.
bind
(
Object
(
l
.
a
)(
e
),
a
)}):
r
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
o
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
close
:
function
(){
e
.
fetchPageData
(),
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"join"
,
e
.
state
.
treasure_code
,
2
)}))}})},
e
.
inviteMembers
=
function
(
t
){
var
a
=
e
.
props
,
n
=
a
.
history
,
c
=
a
.
match
,
i
=
a
.
location
;
if
(
Object
(
E
.
c
)(
"version"
)){
var
s
=
{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
i
.
pathname
,
"?treasure_code="
).
concat
(
t
,
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
};
Object
(
E
.
a
)(
"toShare"
,
s
)}
sessionStorage
.
setItem
(
"showShareTip"
,
"1"
),
n
.
replace
(
""
.
concat
(
c
.
url
,
"?treasure_code="
).
concat
(
t
,
"&origin="
,
1
)),
e
.
createTeamSuccessPopup
&&
e
.
createTeamSuccessPopup
.
remove
()
&&
(
e
.
createTeamSuccessPopup
=
null
),
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
fetchPageData
({
treasure_code
:
t
,
origin
:
1
}),
e
.
setState
({
isCaptain
:
!
0
})},
e
.
getFollowStatus
=
function
(){
return
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user/isFollowWeChat"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
;
return
200
===
a
&&
n
.
is_follow
}))},
e
.
createTeamSuccess
=
function
(
t
){
var
a
=
t
.
member
,
n
=
t
.
team_num
,
c
=
t
.
lack_member
,
i
=
t
.
treasure_code
;
e
.
joinSuccessPopup
&&
e
.
joinSuccessPopup
.
remove
()
&&
(
e
.
joinSuccessPopup
=
null
),
e
.
getFollowStatus
().
then
((
function
(
t
){
e
.
createTeamSuccessPopup
=
Object
(
g
.
h
)({
title
:
"
\
u521b
\
u5efa
\
u6210
\
u529f"
,
className
:
"landing-create-success"
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"tip"
},
p
.
a
.
createElement
(
"span"
,
null
,
n
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
c
),
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6~"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"treasure-box"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"ul"
,{
className
:
"members"
},
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
n
=
a
[
t
];
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
n
&&
n
.
is_captain
&&
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"avatar"
,
src
:
n
?
n
.
head_img
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png"
,
alt
:
""
}))}))),
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
onClick
:
e
.
inviteMembers
.
bind
(
Object
(
l
.
a
)(
e
),
i
)},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
closeIcon
:
e
.
closeIcon
,
afterClose
:
function
(){
t
||
e
.
remind
(
"create"
,
i
)}})}))},
e
.
saveImage
=
function
(
e
){
var
t
=
Object
(
E
.
c
)(
"version"
);(
t
=
"string"
===
typeof
t
?
t
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
)
&&
parseInt
(
t
)
<
451
?
s
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
E
.
a
)(
"generateQRCode"
,
e
)},
e
.
remind
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"create"
,
a
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
c
=
e
.
props
.
user
;
E
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/wx/user_temporary_qrcode/"
).
concat
(
c
.
data
.
uid
)).
then
((
function
(
e
){
return
e
.
data
.
data
.
url
})).
then
((
function
(
c
){
w
.
a
.
toDataURL
(
c
).
then
((
function
(
i
){
Object
(
g
.
h
)({
title
:
"
\
u63d0
\
u9192
\
u670d
\
u52a1"
,
className
:
"landing-remind"
,
closeIcon
:
e
.
closeIcon
,
content
:
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"create"
===
t
?
"
\
u6709
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
u540e
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
:
"
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u65f6
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
),
p
.
a
.
createElement
(
"img"
,{
src
:
i
,
alt
:
""
}),
E
.
b
.
isAndroidApp
?
p
.
a
.
createElement
(
"div"
,
null
,
p
.
a
.
createElement
(
"button"
,{
className
:
"android-qr-code-btn"
,
onClick
:
e
.
saveImage
.
bind
(
Object
(
l
.
a
)(
e
),
c
)},
"
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801"
)):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u957f
\
u6309
\
u8bc6
\
u522b/
\
u626b
\
u7801
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u5373
\
u53ef
\
u9884
\
u7ea6"
)),
close
:
function
(){
sessionStorage
.
setItem
(
"closedRemind"
,
"1"
),
e
.
fetchPageData
({
treasure_code
:
a
,
origin
:
n
})}})}))}))},
e
.
showShareTip
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
user
,
n
=
t
.
location
;
E
.
b
.
isAndroidApp
||
E
.
b
.
isIOSApp
?
Object
(
E
.
a
)(
"toShare"
,{
title
:
e
.
shareTitle
,
desc
:
e
.
shareDesc
,
link
:
""
.
concat
(
window
.
location
.
origin
).
concat
(
n
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin=2"
),
imgUrl
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"
}):
e
.
shareTipPopup
=
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u8fd8
\
u5dee"
,
p
.
a
.
createElement
(
"span"
,
null
,
e
.
state
.
teamData
.
lack_member
),
"
\
u540d
\
u961f
\
u53cb
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u5feb
\
u5206
\
u4eab
\
u7ed9
\
u597d
\
u53cb
\
u5427~"
),
className
:
"landing-share-tip "
.
concat
(
E
.
b
.
isWeixin
?
"wechat"
:
""
),
closable
:
!
1
,
close
:
function
(){
sessionStorage
.
removeItem
(
"showShareTip"
),
a
.
hasError
||
e
.
getFollowStatus
().
then
((
function
(
t
){
!
t
&&
e
.
remind
(
"create"
,
Object
(
E
.
c
)(
"treasure_code"
),
1
)}))}})},
e
.
showOpenInBrowserTip
=
function
(){
Object
(
g
.
h
)({
title
:
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
),
className
:
"landing-open-in-browser-tip"
,
closable
:
!
1
})},
e
.
createMyTeam
=
function
(){
e
.
requiredLogin
()
||
E
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
data
,
c
=
a
.
code
,
i
=
a
.
msg
;
200
==
c
?
e
.
createTeamSuccess
(
n
):
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
.
requiredLogin
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
history
,
n
=
t
.
user
,
c
=
t
.
location
;
if
(
n
.
hasError
)
return
E
.
b
.
isWeixin
?
window
.
location
.
assign
(
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="
.
concat
(
encodeURIComponent
(
""
.
concat
(
window
.
location
.
origin
).
concat
(
c
.
pathname
,
"?treasure_code="
).
concat
(
Object
(
E
.
c
)(
"treasure_code"
),
"&origin="
).
concat
(
Object
(
E
.
c
)(
"origin"
),
"&aa=bb"
)),
"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
)):
a
.
push
(
"/passport"
),
!
0
},
e
.
toSquare
=
function
(){
Object
(
E
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearindex?version="
+
Object
(
E
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://m.julyedu.com/year/yearindex"
)},
e
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getStage
(),
this
.
fetchPageData
(),
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
"create"
),
document
.
title
=
"AI
\
u5145
\
u7535
\
u5b63
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66AI
\
u7206
\
u6b3e
\
u597d
\
u8bfe
\
uff0c300
\
u672c
\
u7a0b
\
u5e8f
\
u5458
\
u5fc5
\
u5907
\
u7eb8
\
u8d28
\
u4e66
\
u514d
\
u8d39
\
u9001
\
uff0cAI
\
u8fdb
\
u9636
\
u5b9d
\
u5178
\
u6765
\
u5c31
\
u9001
\
uff01-
\
u4e03
\
u6708
\
u5728
\
u7ebf"
;
var
e
=
document
.
querySelector
(
"#landing"
),
t
=
document
.
querySelector
(
".box-container"
);
t
.
offsetHeight
<
window
.
innerHeight
&&
(
e
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
),
t
.
style
.
minHeight
=
""
.
concat
(
window
.
innerHeight
,
"px"
))}},{
key
:
"componentDidUpdate"
,
value
:
function
(
e
){
e
.
user
.
hasError
===
this
.
props
.
user
.
hasError
||
this
.
props
.
user
.
hasError
||
this
.
fetchPageData
(),
e
.
user
.
isFetching
===
this
.
props
.
user
.
isFetching
||
this
.
props
.
user
.
isFetching
||
this
.
setState
({
isLoading
:
this
.
props
.
user
.
isFetching
})}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
this
.
shareTipPopup
&&
this
.
shareTipPopup
.
remove
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
,
t
=
e
.
teamData
,
a
=
t
.
head_img
,
n
=
t
.
member
,
i
=
t
.
status
,
s
=
t
.
lack_member
,
r
=
t
.
team_num
,
o
=
t
.
prize_info
,
l
=
t
.
my_team
,
u
=
t
.
standby_plan
,
m
=
e
.
activityEnd
,
d
=
e
.
isCaptain
,
g
=
e
.
isLoading
;
return
p
.
a
.
createElement
(
"div"
,{
id
:
"landing"
},
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"div"
,{
id
:
"to-square"
},
p
.
a
.
createElement
(
"a"
,{
href
:
"javascript:"
,
onClick
:
this
.
toSquare
},
"
\
u524d
\
u5f80
\
u6d3b
\
u52a8
\
u4f1a
\
u573a
\
uff0c
\
u4eab
\
u66f4
\
u591a
\
u798f
\
u5229
\
uff01 >>"
)),
p
.
a
.
createElement
(
h
,
null
,
p
.
a
.
createElement
(
"i"
,{
className
:
"snow-deco "
.
concat
(
u
&&
E
.
b
.
isWeixin
?
"standby"
:
""
)}),
u
&&
E
.
b
.
isWeixin
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
c
.
a
,{
className
:
"standby-space"
}),
p
.
a
.
createElement
(
"div"
,{
className
:
"standby-tip"
},
"
\
u70b9
\
u51fb
\
u53f3
\
u4e0a
\
u89d2
\
uff0c
\
u9009
\
u62e9
\
u201c
\
u5728
\
u6d4f
\
u89c8
\
u5668
\
u6253
\
u5f00
\
u201d"
)),
p
.
a
.
createElement
(
"img"
,{
className
:
"main-avatar"
,
src
:
a
,
alt
:
""
}),
1
===
i
?
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
):
p
.
a
.
createElement
(
"div"
,{
className
:
"des"
},
"
\
u52a0
\
u5165
\
u6211
\
u7684"
,
p
.
a
.
createElement
(
"span"
,
null
,
r
),
"
\
u53f7
\
u961f
\
u4f0d
\
uff0c
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
u9886
\
u53d6
\
u4e30
\
u539a
\
u5956
\
u54c1~"
),
p
.
a
.
createElement
(
v
.
a
,{
showSystemNotices
:
!
1
}),
p
.
a
.
createElement
(
y
.
a
,
null
),
p
.
a
.
createElement
(
"div"
,{
className
:
"group"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"member"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
var
a
=
n
[
t
];
return
a
?
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
a
.
is_captain
?
p
.
a
.
createElement
(
"sup"
,
null
,
"
\
u961f
\
u957f"
):
null
,
p
.
a
.
createElement
(
"img"
,{
src
:
a
.
head_img
,
alt
:
""
,
className
:
"avatar"
}))):
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar-wrapper"
},
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
,
alt
:
""
,
className
:
"avatar"
})))}))),
p
.
a
.
createElement
(
"ul"
,{
className
:
"bars"
},
n
&&
n
.
length
&&
new
Array
(
5
).
fill
(
"a"
).
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
,
className
:
""
.
concat
(
t
<
n
.
length
?
"active"
:
""
)})}))),
1
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
"
\
u8fd8
\
u5dee "
,
s
,
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5f53
\
u524d
\
u5b9d
\
u7bb1
\
u54e6~"
),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
showShareTip
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
)),
3
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5f53
\
u524d
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
4
===
i
&&!
m
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"group-des"
},
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u5df2
\
u52a0
\
u5165
\
u5176
\
u4ed6
\
u961f
\
u4f0d"
),
l
.
is_team
?
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u60a8
\
u7684"
,
l
.
team_num
,
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
lack_member
,
"
\
u4eba
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1~"
):
p
.
a
.
createElement
(
"p"
,
null
,
"
\
u81ea
\
u5df1
\
u5f53
\
u961f
\
u957f
\
uff0c
\
u5b9d
\
u7bb1
\
u5185
\
u6709
\
u4e13
\
u5c5e
\
u5956
\
u54c1
\
u54e6~"
)),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
(
l
.
is_team
?
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
inviteMembers
.
bind
(
this
,
l
.
treasure_code
)},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
):
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
createMyTeam
},
"
\
u521b
\
u5efa
\
u6211
\
u7684
\
u961f
\
u4f0d"
))),
!
(
u
&&
E
.
b
.
isWeixin
)
&&
2
===
i
&&!
m
&&
p
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"invite-btn"
,
onClick
:
this
.
joinTeam
},
"
\
u540c
\
u610f
\
u52a0
\
u5165
\
u961f
\
u4f0d"
),
o
&&
0
!==
o
.
length
&&!
m
&&!
d
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"certainly-prompt"
},
"
\
u7b2c"
,
o
[
0
].
stage_no
,
"
\
u4e2a
\
u5b9d
\
u7bb1
\
u5fc5
\
u4e2d "
,
o
[
0
].
name
),
m
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"activity-end"
},
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6d3b
\
u52a8
\
u5df2
\
u7ed3
\
u675f"
),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u4e86
\
u89e3
\
u66f4
\
u591a
\
u6d3b
\
u52a8
\
u4fe1
\
u606f"
),
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u957f
\
u6309
\
u8bc6
\
u522b /
\
u5fae
\
u4fe1
\
u626b
\
u7801"
)))),
!
d
&&
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
p
.
a
.
createElement
(
c
.
a
,{
size
:
"xl"
}),
p
.
a
.
createElement
(
j
.
a
,{
getSum
:
function
(){}})),
g
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"loading"
,
style
:{
width
:
window
.
innerWidth
+
"px"
,
height
:
window
.
innerHeight
+
"px"
}},
p
.
a
.
createElement
(
S
.
FadeLoader
,{
color
:
"#fff"
,
loading
:
g
})))}}]),
a
}(
d
.
Component
);
t
.
default
=
Object
(
b
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),
null
)(
_
)}}]);
//# sourceMappingURL=newyear-2019-landing.31b75069.chunk.js.map
//# sourceMappingURL=newyear-2019-landing.31b75069.chunk.js.map
\ No newline at end of file
build/mrstaticjs/treasure-box-home.4ca21867.chunk.js
View file @
b1a57aea
(
this
[
"webpackJsonpmr-julyedu"
]
=
this
[
"webpackJsonpmr-julyedu"
]
||
[]).
push
([[
46
],{
1071
:
function
(
e
,
t
,
a
){},
1072
:
function
(
e
,
t
,
a
){},
1073
:
function
(
e
,
t
,
a
){},
1074
:
function
(
e
,
t
,
a
){},
1075
:
function
(
e
,
t
,
a
){},
1076
:
function
(
e
,
t
,
a
){},
1077
:
function
(
e
,
t
,
a
){},
1078
:
function
(
e
,
t
,
a
){},
1188
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
a
(
36
);
var
n
,
r
,
s
=
a
(
10
),
o
=
a
.
n
(
s
),
c
=
a
(
3
),
i
=
a
(
5
),
l
=
a
(
6
),
u
=
a
(
7
),
m
=
a
(
0
),
p
=
a
.
n
(
m
),
d
=
(
a
(
1071
),
a
(
4
)),
h
=
a
(
58
),
f
=
(
a
(
1072
),
a
(
1
)),
g
=
a
(
28
),
v
=
a
(
419
),
b
=
a
.
n
(
v
),
y
=
a
(
20
),
_
=
Object
(
y
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}))(
n
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
c
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
getLength
=
function
(){
var
e
=
Object
(
h
.
a
)(
n
);
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/wish_sum"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
r
=
a
.
data
;
200
==
n
&&
e
.
setState
({
sum
:
r
.
sum
})}))},
n
.
fetchBigCourse
=
function
(){
var
e
=
n
.
state
.
bigcourse
;
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/preheat_data"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
r
=
a
.
code
,
s
=
a
.
data
;
200
===
r
&&
n
.
setState
({
bigcourse
:
Object
.
assign
({},
e
,{
isMore
:
!
1
,
course
:
s
,
courseList
:
s
})})}))},
n
.
fetchFreeCourse
=
function
(){
var
e
=
n
.
state
.
freecourse
;
f
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/assistance/detail"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
r
=
a
.
errno
,
s
=
a
.
data
;
200
===
r
&&
n
.
setState
({
freecourse
:
Object
.
assign
({},
e
,{
isMore
:
s
.
course_info
.
length
>
4
,
course
:
s
.
course_info
.
length
>
4
?
s
.
course_info
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
s
.
course_info
,
courseList
:
s
.
course_info
})})}))},
n
.
fetchGroupCourse
=
function
(){
var
e
=
n
.
state
.
groupcourse
;
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/excellent_course"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
r
=
a
.
code
,
s
=
a
.
data
;
200
===
r
&&
n
.
setState
({
groupcourse
:
Object
.
assign
({},
e
,{
isMore
:
s
.
length
>
4
,
course
:
s
.
length
>
4
?
s
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
s
,
courseList
:
s
})})}))},
n
.
fetchAICourse
=
function
(
e
,
t
){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/four_stage/"
).
concat
(
e
)).
then
((
function
(
a
){
var
r
=
a
.
data
,
s
=
r
.
code
,
o
=
r
.
data
;
200
===
s
&&
n
.
getList
(
e
,
o
,
t
)}))},
n
.
getList
=
function
(
e
,
t
,
a
){
var
r
=
n
.
state
,
s
=
r
.
basic
,
o
=
r
.
advanced
,
c
=
r
.
higher
,
i
=
r
.
expand
;
"one"
===
e
&&
n
.
setState
({
basic
:
Object
.
assign
({},
s
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})}),
"two"
===
e
&&
n
.
setState
({
advanced
:
Object
.
assign
({},
o
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})}),
"three"
===
e
&&
n
.
setState
({
higher
:
Object
.
assign
({},
c
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})}),
"four"
===
e
&&
n
.
setState
({
expand
:
Object
.
assign
({},
i
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})})},
n
.
toQQque
=
function
(){
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toQQ"
,
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
):
window
.
location
.
href
=
"http://q.url.cn/s/Vbkup6m?_type=wpa"
},
n
.
toCourse
=
function
(
e
){
var
t
=
n
.
props
.
history
;
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toCourse"
,
e
):
t
.
push
(
"/detail?id="
.
concat
(
e
))},
n
.
handleToMore
=
function
(
e
){
var
t
=
{};
n
.
state
[
e
].
isMore
?(
t
[
e
]
=
{
isMore
:
!
n
.
state
[
e
].
isMore
,
course
:
n
.
state
[
e
].
courseList
,
courseList
:
n
.
state
[
e
].
courseList
,
addshowMore
:
!
n
.
state
[
e
].
addshowMore
},
n
.
setState
(
Object
(
d
.
a
)({},
t
))):(
t
[
e
]
=
{
isMore
:
!
n
.
state
[
e
].
isMore
,
course
:
n
.
state
[
e
].
courseList
.
filter
((
function
(
e
,
t
){
return
t
<
4
})),
courseList
:
n
.
state
[
e
].
courseList
,
addshowMore
:
!
n
.
state
[
e
].
addshowMore
},
n
.
setState
(
Object
(
d
.
a
)({},
t
)))},
n
.
toLogin
=
function
(){
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toLogin"
):
n
.
props
.
history
.
push
(
"/passport/login"
)},
n
.
freeStudy
=
function
(){
n
.
setState
({
tofreeStudy
:
!
0
})},
n
.
closePopup
=
function
(){
n
.
setState
({
tofreeStudy
:
!
1
})},
n
.
closePopupWish
=
function
(){
var
e
=
Object
(
h
.
a
)(
n
);
e
.
setState
({
isshowFollow
:
!
1
}),
setTimeout
((
function
(){
e
.
toJoinList
(
e
.
state
.
wish
.
id
,
e
.
state
.
wish
.
key
)}),
200
)},
n
.
getQRcodeUrl
=
function
(){
var
e
=
Object
(
h
.
a
)(
n
);
f
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/wx/user_temporary_qrcode/"
).
concat
(
e
.
props
.
user
.
data
.
uid
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
errno
,
r
=
t
.
data
,
s
=
t
.
msg
;
0
==
a
?(
n
.
setState
({
qrUrl
:
r
.
url
}),
b
.
a
.
toDataURL
(
r
.
url
,(
function
(
e
,
t
){
n
.
setState
({
followBarcode
:
t
})}))):
o
.
a
.
info
(
s
,
2
)}))},
n
.
addWishList
=
function
(
e
,
t
){
var
a
=
Object
(
h
.
a
)(
n
),
r
=!
n
.
props
.
user
.
hasError
;
a
.
setState
({
wish
:{
id
:
e
,
key
:
t
}}),
r
?
a
.
isFollow
(
e
,
t
):
a
.
toLogin
()},
n
.
isFollow
=
function
(
e
,
t
){
var
a
=
Object
(
h
.
a
)(
n
);
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user/isFollowWeChat"
)).
then
((
function
(
n
){
var
r
=
n
.
data
,
s
=
r
.
code
,
c
=
r
.
data
,
i
=
r
.
msg
;
200
===
s
?(
a
.
setState
({
isshowFollow
:
!
c
.
is_follow
}),
a
.
state
.
isshowFollow
?
a
.
getQRcodeUrl
():
a
.
toJoinList
(
e
,
t
)):
o
.
a
.
info
(
i
,
2
)}))},
n
.
toJoinList
=
function
(
e
,
t
){
var
a
=
Object
(
h
.
a
)(
n
);
f
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/activity/join_list"
),{
course_id
:
e
}).
then
((
function
(
e
){
var
n
=
e
.
data
,
r
=
n
.
code
,
s
=
n
.
msg
;
200
==
r
?(
o
.
a
.
success
(
"
\
u5df2
\
u6210
\
u529f
\
u52a0
\
u5165
\
u5fc3
\
u613f
\
u5355"
,
3
),
a
.
getLength
(),
"1"
===
t
&&
a
.
fetchAICourse
(
"one"
,
a
.
state
.
basic
.
addshowMore
),
"2"
===
t
&&
a
.
fetchAICourse
(
"two"
,
a
.
state
.
advanced
.
addshowMore
),
"3"
===
t
&&
a
.
fetchAICourse
(
"three"
,
a
.
state
.
higher
.
addshowMore
),
"4"
===
t
&&
a
.
fetchAICourse
(
"four"
,
a
.
state
.
expand
.
addshowMore
),
"group"
===
t
&&
a
.
fetchGroupCourse
()):
o
.
a
.
info
(
s
,
2
)}))},
n
.
saveImage
=
function
(){
var
e
=
Object
(
f
.
c
)(
"version"
);
e
=
"string"
===
typeof
e
?
e
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
;
var
t
=
n
.
state
.
qrUrl
;
e
&&
parseInt
(
e
)
<
451
?
o
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
f
.
a
)(
"generateQRCode"
,
t
)},
n
.
saveImage2
=
function
(){
var
e
=
Object
(
f
.
c
)(
"version"
);(
e
=
"string"
===
typeof
e
?
e
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
)
&&
parseInt
(
e
)
<
451
?
o
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
f
.
a
)(
"saveImage"
,
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg"
)},
n
.
getTeamInfo
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/teamInfo"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
,
s
=
t
.
msg
;
if
(
200
===
a
){
var
c
=
r
.
info
,
i
=
r
.
removable_data
;
n
.
setState
({
removable
:
c
.
removable
,
currentId
:
c
.
removable
>
0
?
i
[
0
].
id
:
null
})}
else
o
.
a
.
info
(
s
)}))},
n
.
toBoxList
=
function
(){
var
e
=!
n
.
props
.
user
.
hasError
,
t
=
n
.
state
.
currentId
,
a
=
""
;
t
&&
(
a
=
"?id="
.
concat
(
t
)),
e
?
Object
(
f
.
c
)(
"version"
)?
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
a
,
"?version="
).
concat
(
Object
(
f
.
c
)(
"version"
))):
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
a
)):
n
.
toLogin
()},
n
.
toYearWish
=
function
(){
!
n
.
props
.
user
.
hasError
?
Object
(
f
.
c
)(
"version"
)?
n
.
props
.
history
.
push
(
"/year/yearWish?version="
.
concat
(
Object
(
f
.
c
)(
"version"
))):
n
.
props
.
history
.
push
(
"/year/yearWish"
):
n
.
toLogin
()},
n
.
toInviteFriends
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
a
=
n
.
props
.
history
;
if
(
Object
(
f
.
c
)(
"version"
)){
var
r
=
{
title
:
"
\
u3010
\
u4ec5
\
u5269"
.
concat
(
t
.
number
,
"
\
u4e2a
\
u540d
\
u989d
\
u3011
\
u6211"
).
concat
(
t
.
price
,
"
\
u5143
\
u62fc
\
u4e86
\
u300a"
).
concat
(
t
.
course_title
,
"
\
u300b"
),
desc
:
t
.
course_title
,
link
:
""
.
concat
(
API
.
m
,
"/togroup?id="
).
concat
(
e
,
"&is_originator=1"
),
imgUrl
:
t
.
image_name
};
Object
(
f
.
a
)(
"toShare"
,
r
)}
else
a
.
push
(
"/togroup?id="
.
concat
(
e
))},
n
.
isCountDown
=
function
(
e
,
t
){
return
e
?
t
:
""
},
n
.
formatTitleAndKey
=
function
(
e
){
var
t
=
null
;
switch
(
e
){
case
1
:
t
=
{
title
:
"
\
u57fa
\
u7840"
,
key
:
"basic"
};
break
;
case
2
:
t
=
{
title
:
"
\
u8fdb
\
u9636"
,
key
:
"advanced"
};
break
;
case
3
:
t
=
{
title
:
"
\
u9ad8
\
u9636"
,
key
:
"higher"
};
break
;
case
4
:
t
=
{
title
:
"
\
u6269
\
u5c55"
,
key
:
"expand"
};
break
;
default
:
t
=
null
}
return
t
},
n
.
formatCourseData
=
function
(
e
){
var
t
=
n
.
state
,
a
=
t
.
basic
,
r
=
t
.
advanced
,
s
=
t
.
higher
,
o
=
t
.
expand
,
c
=
null
;
switch
(
e
){
case
1
:
c
=
a
;
break
;
case
2
:
c
=
r
;
break
;
case
3
:
c
=
s
;
break
;
case
4
:
c
=
o
;
break
;
default
:
c
=
null
}
return
c
},
n
.
toCart
=
function
(
e
){
var
t
=
n
.
props
.
history
;
f
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/m/cart/add"
),{
course_id
:
e
}).
then
((
function
(
e
){
var
a
=
e
.
data
,
r
=
a
.
code
,
s
=
a
.
msg
;
200
===
r
||
15001
===
r
?
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toShoppingCart"
):
t
.
push
(
"/shopcart"
):
4030
===
r
||
4040
===
r
?
n
.
toLogin
():
o
.
a
.
info
(
s
,
2
)}))},
n
.
toContinueBargain
=
function
(
e
,
t
,
a
,
r
){
var
s
=
n
.
props
.
history
;
if
(
Object
(
f
.
c
)(
"version"
)){
var
o
=
{
title
:
"
\
u6211
\
u53d1
\
u73b0
\
u4e00
\
u95e8
\
u597d
\
u8bfe
\
uff0c
\
u5feb
\
u6765
\
u5e2e
\
u6211
\
u780d
\
u4ef7
\
u5427
\
uff01"
,
desc
:
"
\
u6211
\
u5df2
\
u7ecf
\
u780d
\
u4e86"
.
concat
(
t
,
"
\
u5143
\
uff0c
\
u770b
\
u770b
\
u4f60
\
u80fd
\
u780d
\
u591a
\
u5c11"
),
link
:
""
.
concat
(
API
.
m
,
"/bargain-middle-page?id="
).
concat
(
e
,
"&bargaincode="
).
concat
(
a
,
"&is_originator=1"
),
imgUrl
:
r
};
Object
(
f
.
a
)(
"toShare"
,
o
)}
else
s
.
push
(
"/bargain-middle-page?id="
.
concat
(
e
,
"&bargaincode="
).
concat
(
a
,
"&is_originator=1"
))},
n
.
bargainToOrder
=
function
(
e
){
var
t
=
n
.
props
,
a
=
t
.
history
;
t
.
user
.
hasError
?
n
.
toLogin
():
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toPay"
,
e
):
f
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/m/cart/addtopreorder/["
).
concat
(
e
,
"]"
)).
then
((
function
(
t
){
var
n
=
t
.
data
,
r
=
n
.
errno
,
s
=
n
.
msg
;
0
===
r
?
a
.
push
(
"/order?id=["
.
concat
(
e
,
"]"
),{
bargain
:
1
}):
o
.
a
.
info
(
s
,
2
)}))},
n
.
state
=
{
tofreeStudy
:
!
1
,
basic
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
advanced
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
higher
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
expand
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
bigcourse
:{
course
:[],
courseList
:[],
isMore
:
!
1
},
freecourse
:{
course
:[],
courseList
:[],
isMore
:
!
1
},
groupcourse
:{
course
:[],
courseList
:[],
isMore
:
!
1
},
isshowFollow
:
!
1
,
wish
:{
id
:
""
,
key
:
""
},
followBarcode
:
""
,
qrUrl
:
""
,
sum
:
""
,
removable
:
""
,
currentId
:
""
},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getTeamInfo
(),
this
.
getLength
(),
this
.
fetchBigCourse
(),
this
.
fetchGroupCourse
(),
this
.
fetchAICourse
(
"one"
,
!
1
),
this
.
fetchAICourse
(
"two"
,
!
1
),
this
.
fetchAICourse
(
"three"
,
!
1
),
this
.
fetchAICourse
(
"four"
,
!
1
)}},{
key
:
"shouldComponentUpdate"
,
value
:
function
(
e
,
t
,
a
){
return
this
.
props
.
isAppUpdate
===
e
.
isAppUpdate
||
(
this
.
getTeamInfo
(),
this
.
getLength
(),
this
.
fetchBigCourse
(),
this
.
fetchGroupCourse
(),
this
.
fetchAICourse
(
"one"
),
this
.
fetchAICourse
(
"two"
),
this
.
fetchAICourse
(
"three"
),
this
.
fetchAICourse
(
"four"
),
!
1
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
.
removable
;
return
p
.
a
.
createElement
(
"div"
,{
className
:
"year-index-course"
},
e
>
0
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"nav-right-wish nav-right"
},
p
.
a
.
createElement
(
"span"
,{
onClick
:
this
.
toBoxList
,
className
:
"nav-right__link"
},
"
\
u672a
\
u5f00
\
u5b9d
\
u7bb1"
,
p
.
a
.
createElement
(
"i"
,{
className
:
"nav-right__number"
},
e
))))}}]),
a
}(
m
.
Component
))
||
n
,
j
=
Object
(
g
.
g
)(
_
),
E
=
(
a
(
1073
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
return
Object
(
c
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
props
.
id
;
return
p
.
a
.
createElement
(
"div"
,{
className
:
"common_container"
,
id
:
e
},
p
.
a
.
createElement
(
"div"
,{
className
:
"container_top"
}),
p
.
a
.
createElement
(
"div"
,{
className
:
"container_content"
},
this
.
props
.
title
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"title_container"
},
p
.
a
.
createElement
(
"i"
,
null
),
p
.
a
.
createElement
(
"p"
,
null
,
this
.
props
.
title
),
p
.
a
.
createElement
(
"i"
,
null
)),
p
.
a
.
Children
.
map
(
this
.
props
.
children
,(
function
(
e
){
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
e
)}))),
p
.
a
.
createElement
(
"div"
,{
className
:
"container_bottom"
}))}}]),
a
}(
m
.
Component
)),
k
=
(
a
(
1074
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
c
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
fetchRankInfo
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/ranking"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
;
200
===
a
&&
"{}"
!==
JSON
.
stringify
(
r
)
&&
(
r
.
length
>
5
?
n
.
setState
({
rank
:
r
.
filter
((
function
(
e
,
t
){
return
t
<
5
})),
rankList
:
r
,
isMore
:
!
0
}):
n
.
setState
({
rank
:
r
,
rankList
:
r
,
isMore
:
!
1
}))}))},
n
.
switchMoreRank
=
function
(){
var
e
=
n
.
state
,
t
=
e
.
rankList
;
e
.
isMore
?
n
.
setState
({
rank
:
t
,
isMore
:
!
1
}):
n
.
setState
({
rank
:
t
.
filter
((
function
(
e
,
t
){
return
t
<
5
})),
isMore
:
!
0
})},
n
.
handleToVip
=
function
(
e
){
var
t
=
n
.
props
.
history
;
e
&&
(
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toCourse"
,
e
):
t
.
push
(
"/detail?id="
.
concat
(
e
)))},
n
.
state
=
{
rank
:[],
rankList
:[],
isMore
:
!
1
},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
fetchRankInfo
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
rank
,
n
=
t
.
isMore
;
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
0
!==
a
.
length
&&
p
.
a
.
createElement
(
"div"
,{
"data-skip"
:
"rank"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"rank-title"
},
p
.
a
.
createElement
(
"i"
,{
className
:
"rank-title__decorate"
}),
p
.
a
.
createElement
(
"h2"
,{
className
:
"rank-title__txt"
},
"
\
u5b9d
\
u7bb1
\
u8fbe
\
u4eba
\
u699c"
),
p
.
a
.
createElement
(
"i"
,{
className
:
"rank-title__decorate"
})),
p
.
a
.
createElement
(
"p"
,{
className
:
"rank-desc"
},
"
\
u5b9d
\
u7bb1
\
u6570
\
u91cf
\
u524d50
\
u540d
\
u53ef
\
u989d
\
u5916
\
u83b7
\
u5f97
\
u4e00
\
u4efd
\
u5956
\
u54c1
\
uff0c
\
u6570
\
u91cf
\
u76f8
\
u540c
\
u7684
\
u7528
\
u65f6
\
u77ed
\
u8005
\
u6392
\
u540d
\
u5728
\
u524d"
),
p
.
a
.
createElement
(
"dl"
,{
className
:
"rank-header"
},
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u6392
\
u540d"
),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u7528
\
u6237"
),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u5b9d
\
u7bb1
\
u6570
\
u91cf"
),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u5956
\
u54c1"
)),
p
.
a
.
createElement
(
"div"
,{
className
:
"rank-body"
},
a
.
map
((
function
(
t
,
a
){
return
p
.
a
.
createElement
(
"dl"
,{
className
:
"rank-item"
,
key
:
a
},
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
a
<=
2
?
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-column__number"
,
"data-num"
:
a
}):
p
.
a
.
createElement
(
"span"
,
null
,
a
+
1
)),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-column__name"
},
t
.
user_name
)),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
p
.
a
.
createElement
(
"span"
,
null
,
t
.
num
)),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
t
.
url
?
p
.
a
.
createElement
(
"a"
,{
className
:
"rank-column__txt"
,
onClick
:
function
(){
return
e
.
handleToVip
(
t
.
url
)}},
t
.
prize_name
):
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-column__txt"
},
t
.
prize_name
)))})),
p
.
a
.
createElement
(
"div"
,{
className
:
"rank-more"
,
onClick
:
this
.
switchMoreRank
},
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-more__txt"
},
n
?
"
\
u5c55
\
u5f00"
:
"
\
u6536
\
u8d77"
),
p
.
a
.
createElement
(
"i"
,{
className
:
"rank-more__icon"
,
"data-more"
:
n
})))))}}]),
a
}(
m
.
Component
)),
w
=
(
a
(
1075
),
a
(
24
)),
O
=
a
(
38
),
N
=
a
.
n
(
O
),
I
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
c
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
getTeamInfo
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/teamInfo"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
,
s
=
t
.
msg
;
if
(
200
===
a
){
var
c
=
r
.
prize_info
,
i
=
r
.
is_my_team
,
l
=
r
.
info
,
u
=
r
.
member
,
m
=
r
.
removable_data
,
p
=
r
.
my_team
;
n
.
setState
({
prize_info
:
c
,
is_my_team
:
i
,
info
:
l
,
member
:
n
.
fillTeam
(
u
,
i
),
removable_data
:
m
,
my_team
:
p
});
var
d
=
null
;
l
.
removable
>
0
&&
(
d
=
m
[
0
].
id
),
n
.
props
.
getRemovable
(
l
.
removable
,
d
)}
else
o
.
a
.
info
(
s
)}))},
n
.
toYearTreasure
=
function
(
e
){
if
(
n
.
props
.
user
.
hasError
)
n
.
toLogin
();
else
{
var
t
=
""
;
if
(
e
){
var
a
=
n
.
state
,
r
=
a
.
removable_data
;
if
(
a
.
info
.
removable
>
0
){
var
s
=
r
[
0
];
t
=
"?id="
.
concat
(
s
.
id
)}}
Object
(
f
.
c
)(
"version"
)?
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
t
,
"?version="
).
concat
(
Object
(
f
.
c
)(
"version"
))):
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
t
))}},
n
.
toLogin
=
function
(){
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toLogin"
):
n
.
props
.
history
.
push
(
"/passport/login"
)},
n
.
createTeam
=
function
(){
if
(
n
.
props
.
user
.
hasError
)
n
.
toLogin
();
else
{
sessionStorage
.
setItem
(
"showShareTip"
,
"1"
);
var
e
=
n
.
state
,
t
=
e
.
is_my_team
,
a
=
e
.
my_team
.
treasure_code
;
t
?
Object
(
f
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
a
+
"&version="
+
Object
(
f
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
a
):
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
,
r
=
t
.
msg
;
if
(
200
===
a
){
var
s
=
n
.
treasure_code
;
Object
(
f
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
s
+
"&version="
+
Object
(
f
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
s
)}
else
o
.
a
.
info
(
r
)}))}},
n
.
fillTeam
=
function
(
e
,
t
){
var
a
=
e
.
length
;
if
(
n
.
props
.
user
.
hasError
)
for
(
var
r
=
0
;
r
<
5
-
a
;
r
++
)
e
.
push
({
head_img
:
""
,
user_name
:
""
,
nobody
:
!
0
});
else
if
(
0
!==
a
||
t
)
for
(
var
s
=
0
;
s
<
5
-
a
;
s
++
)
e
.
push
({
head_img
:
""
,
user_name
:
""
,
nobody
:
!
0
});
else
{
e
.
push
({
head_img
:
N
.
a
.
get
(
"avatar_file"
),
user_name
:
N
.
a
.
get
(
"user_name"
)});
for
(
var
o
=
0
;
o
<
4
;
o
++
)
e
.
push
({
head_img
:
""
,
user_name
:
""
,
nobody
:
!
0
})}
return
e
},
n
.
state
=
{
is_my_team
:
!
1
,
prize_info
:[],
info
:{
removable
:
0
,
total
:
0
},
member
:[],
removable_data
:[],
my_team
:{}},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getTeamInfo
()}},{
key
:
"shouldComponentUpdate"
,
value
:
function
(
e
,
t
,
a
){
return
this
.
props
.
isAppUpdate
===
e
.
isAppUpdate
||
(
this
.
getTeamInfo
(),
!
1
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
prize_info
,
n
=
t
.
is_my_team
,
r
=
t
.
info
,
s
=
r
.
removable
,
o
=
r
.
total
,
c
=
t
.
member
,
i
=
""
,
l
=
0
;
a
.
length
>
0
&&
(
i
=
a
[
0
].
name
,
l
=
a
[
0
].
stage_no
);
var
u
=
""
;
return
u
=
0
===
o
?
"
\
u6211
\
u7684
\
u5b9d
\
u7bb1"
:
0
===
s
?
"
\
u5171"
.
concat
(
o
,
"
\
u4e2a
\
u5b9d
\
u7bb1"
):
"
\
u5171"
.
concat
(
o
,
"
\
u4e2a
\
u5b9d
\
u7bb1/"
).
concat
(
s
,
"
\
u4e2a
\
u672a
\
u5f00"
),
p
.
a
.
createElement
(
"div"
,{
className
:
"team_info__container"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"team__member"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"member__list"
},
c
&&
c
.
length
>
0
&&
c
.
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
,
className
:
"member__item"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar__container"
},
e
.
nobody
?
p
.
a
.
createElement
(
"img"
,{
className
:
"head__image"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
,
alt
:
""
}):
p
.
a
.
createElement
(
"img"
,{
className
:
"head__image"
,
src
:
e
.
head_img
,
alt
:
""
}),
0
===
t
?
p
.
a
.
createElement
(
"img"
,{
className
:
"caption__flag"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png"
,
alt
:
""
}):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"shadow"
})),
p
.
a
.
createElement
(
"div"
,{
className
:
"member__join "
.
concat
(
e
.
nobody
?
""
:
"join"
)}))}))),
p
.
a
.
createElement
(
"div"
,{
className
:
"box__number"
},
p
.
a
.
createElement
(
"img"
,{
onClick
:
function
(){
return
e
.
toYearTreasure
(
!
0
)},
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"p"
,{
onClick
:
function
(){
return
e
.
toYearTreasure
(
!
1
)},
className
:
"box__text"
},
u
),
p
.
a
.
createElement
(
"img"
,{
className
:
"position__arrow"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png"
,
alt
:
""
}),
s
>
0
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"position__number"
},
s
))),
p
.
a
.
createElement
(
"div"
,{
onClick
:
this
.
createTeam
,
className
:
"invite__btn"
},
n
?
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
:
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
),
l
>
0
&&
i
&&
p
.
a
.
createElement
(
"p"
,{
className
:
"stage_prize"
},
"
\
u7b2c"
.
concat
(
l
,
"
\
u4e2a
\
u5b9d
\
u7bb1
\
u5fc5
\
u4e2d"
).
concat
(
i
)))}}]),
a
}(
m
.
Component
),
S
=
Object
(
w
.
d
)(
Object
(
y
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),
null
),
g
.
g
)(
I
),
L
=
(
a
(
1076
),
a
(
25
)),
C
=
a
(
8
),
M
=
Object
(
C
.
a
)((
function
(){
return
a
.
e
(
44
).
then
(
a
.
bind
(
null
,
1135
))})),
x
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
closeIcon
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
e
.
state
=
{
prizes
:[],
notices
:[],
rule
:[],
unfoldList
:
!
1
},
e
.
getPrizes
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/prize_data"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
r
=
a
.
data
,
s
=
a
.
msg
;
200
==
n
?
e
.
setState
({
prizes
:
r
.
prize_data
,
notices
:
r
.
notices
,
rule
:
r
.
rule
}):
o
.
a
.
info
(
s
,
2
,
null
,
!
1
)}))},
e
.
showRules
=
function
(){
Object
(
L
.
h
)({
title
:
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1
\
u6d3b
\
u52a8
\
u89c4
\
u5219"
,
className
:
"landing-treasure-rules"
,
content
:
p
.
a
.
createElement
(
"div"
,{
dangerouslySetInnerHTML
:{
__html
:
e
.
state
.
rule
}}),
closeIcon
:
e
.
closeIcon
})},
e
.
showMore
=
function
(){
e
.
setState
((
function
(
t
){
if
(
e
.
state
.
unfoldList
)
e
.
bg
.
style
=
e
.
innerBox
.
style
=
e
.
prizeBox
.
style
=
""
;
else
{
var
a
=
parseFloat
(
getComputedStyle
(
e
.
prizeBox
,
":before"
).
getPropertyValue
(
"height"
)),
n
=
parseFloat
(
getComputedStyle
(
e
.
prizeBox
,
":after"
).
getPropertyValue
(
"height"
)),
r
=
e
.
prizeList
.
scrollHeight
,
s
=
a
+
r
-
.
12458
*
a
-
.
595
*
n
+
n
;
e
.
prizeBox
.
style
.
height
=
""
.
concat
(
s
+
27
,
"px"
),
e
.
innerBox
.
style
.
height
=
""
.
concat
(
r
,
"px"
),
e
.
bg
.
style
.
height
=
""
.
concat
(
r
-
n
+
.
12458
*
a
+
27
,
"px"
)}
return
{
unfoldList
:
!
t
.
unfoldList
}}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getPrizes
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
.
showSystemNotices
,
a
=
this
.
state
.
notices
;
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
t
&&
a
&&
a
.
length
?
p
.
a
.
createElement
(
M
,{
bullets
:
a
}):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"prizes-box"
,
ref
:
function
(
t
){
return
e
.
prizeBox
=
t
}},
p
.
a
.
createElement
(
"a"
,{
href
:
"javascript:;"
,
className
:
"rule-btn"
,
onClick
:
this
.
showRules
},
"
\
u6d3b
\
u52a8
\
u89c4
\
u5219 >"
,
" "
),
p
.
a
.
createElement
(
"div"
,{
className
:
"bg"
,
ref
:
function
(
t
){
return
e
.
bg
=
t
}}),
p
.
a
.
createElement
(
"div"
,{
className
:
"inner-box"
,
ref
:
function
(
t
){
return
e
.
innerBox
=
t
}},
p
.
a
.
createElement
(
"ul"
,{
className
:
"prize-list"
,
ref
:
function
(
t
){
return
e
.
prizeList
=
t
}},
this
.
state
.
prizes
.
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
e
.
img_name
?
p
.
a
.
createElement
(
"i"
,{
className
:
"prize-list__image"
,
style
:{
backgroundImage
:
"url("
.
concat
(
e
.
img_name
,
")"
)}}):
p
.
a
.
createElement
(
"i"
,{
className
:
"prize-list__image"
}),
0
!=
e
.
is_captain
&&
p
.
a
.
createElement
(
"span"
,{
className
:
"captain top-tag"
},
"
\
u961f
\
u957f
\
u4e13
\
u5c5e"
),
2
===
e
.
mode
&&
p
.
a
.
createElement
(
"span"
,{
className
:
"stage top-tag"
},
"
\
u7b2c"
,
e
.
stage_no
,
"
\
u4e2a
\
u5fc5
\
u4e2d"
),
e
.
grant_max
?
p
.
a
.
createElement
(
"div"
,{
className
:
"bottom-bar"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"progress-bar"
},
p
.
a
.
createElement
(
"span"
,{
className
:
"progress"
,
style
:{
width
:
""
.
concat
(
e
.
surplus
/
e
.
grant_max
*
100
,
"%"
)}})),
p
.
a
.
createElement
(
"span"
,
null
,
"
\
u9650
\
u91cf"
,
e
.
grant_max
,
"
\
u4efd"
)):
p
.
a
.
createElement
(
"span"
,{
className
:
"no-limit"
},
"
\
u4e0d
\
u9650
\
u91cf"
))})),
p
.
a
.
createElement
(
"li"
,
null
,
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png"
,
alt
:
""
})))),
p
.
a
.
createElement
(
"div"
,{
className
:
"show-more"
,
onClick
:
this
.
showMore
},
this
.
state
.
unfoldList
?
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6536
\
u8d77"
,
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png"
,
alt
:
""
})):
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u67e5
\
u770b
\
u5168
\
u90e8
\
u5956
\
u54c1"
,
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png"
,
alt
:
""
})))))}}]),
a
}(
m
.
Component
),
A
=
a
(
73
),
P
=
a
(
139
),
z
=
(
a
(
205
),
a
(
1077
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
state
=
{
bulletScreenData
:[]},
e
.
initializeBulletScreen
=
function
(){
var
t
=
Object
(
h
.
a
)(
e
),
a
=
Object
(
A
.
a
)(
Array
(
19
).
keys
()),
n
=!
1
;
e
.
swiper
=
new
P
.
a
(
".swiper-container"
,{
direction
:
"vertical"
,
allowTouchMove
:
!
1
,
autoplay
:
!
0
,
on
:{
transitionEnd
:
function
(){
var
e
=
this
;
this
.
slides
.
length
>
20
&&
(
this
.
removeSlide
(
0
),
this
.
autoplay
.
start
()),
this
.
activeIndex
!==
this
.
slides
.
length
-
1
||
n
||
(
this
.
autoplay
.
stop
(),
t
.
getBulletScreenData
().
then
((
function
(
r
){
n
=!
0
,
e
.
removeSlide
(
a
),
e
.
appendSlide
(
t
.
getSlides
(
r
)),
setTimeout
((
function
(){
e
.
autoplay
.
start
(),
n
=!
1
}))})))}}})},
e
.
getSlides
=
function
(
e
){
return
e
.
map
((
function
(
e
){
return
'
\
n <li class="swiper-slide">
\
n <img class="avatar" src="'
.
concat
(
e
.
avatar_file
,
'" alt="">
\
n <span>'
).
concat
(
e
.
user_name
,
" "
).
concat
(
e
.
msg
,
"</span>
\
n </li>
\
n "
)}))},
e
.
getBulletScreenData
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]
&&
arguments
[
0
];
return
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/barrage_data"
)).
then
((
function
(
a
){
var
n
=
a
.
data
,
r
=
n
.
data
;
if
(
200
===
n
.
code
){
if
(
!
t
)
return
r
;
e
.
setState
({
bulletScreenData
:
r
},(
function
(){
e
.
initializeBulletScreen
()}))}}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getBulletScreenData
(
!
0
)}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
this
.
swiper
&&
this
.
swiper
.
destroy
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
.
bulletScreenData
;
return
p
.
a
.
createElement
(
"div"
,{
id
:
"user-bullet-screen"
,
className
:
"swiper-container"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"swiper-wrapper"
},
e
.
length
&&
e
.
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
className
:
"swiper-slide"
,
key
:
t
},
p
.
a
.
createElement
(
"img"
,{
src
:
e
.
avatar_file
,
alt
:
""
,
className
:
"avatar"
}),
p
.
a
.
createElement
(
"span"
,
null
,
e
.
user_name
,
" "
,
e
.
msg
))}))))}}]),
a
}(
m
.
Component
)),
T
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
return
Object
(
c
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
E
,{
id
:
"year-treasure"
,
title
:
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
},
p
.
a
.
createElement
(
"div"
,{
style
:{
textAlign
:
"center"
,
fontSize
:
"12px"
,
color
:
"#FFDC1E"
,
marginTop
:
"10px"
}},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u7ec4
\
u961f
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
uff0c
\
u6ee15
\
u4eba
\
u540e
\
u5c06
\
u968f
\
u673a
\
u83b7
\
u5f97
\
u4ee5
\
u4e0b
\
u5956
\
u54c1~"
),
p
.
a
.
createElement
(
x
,{
showSystemNotices
:
!
0
}),
p
.
a
.
createElement
(
z
,
null
),
p
.
a
.
createElement
(
S
,{
isAppUpdate
:
this
.
props
.
isAppUpdate
,
getRemovable
:
this
.
props
.
getRemovable
}),
p
.
a
.
createElement
(
k
,{
history
:
this
.
props
.
history
}))}}]),
a
}(
m
.
Component
),
U
=
Object
(
g
.
g
)(
T
),
B
=
(
a
(
1078
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
computedStyle
=
function
(){
return
{
top
:
""
.
concat
(
e
.
props
.
top
,
"px"
),
width
:
""
.
concat
(
e
.
props
.
width
,
"px"
)}},
e
.
closePopup
=
function
(){
e
.
props
.
mark
&&
e
.
props
.
closePopup
()},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"popup__container"
,
onClick
:
this
.
closePopup
},
p
.
a
.
createElement
(
"div"
,{
className
:
"content__container"
,
style
:
this
.
computedStyle
(),
onClick
:
function
(
e
){
e
.
stopPropagation
()}},
p
.
a
.
createElement
(
"img"
,{
className
:
"close__btn"
,
onClick
:
this
.
props
.
closePopup
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
alt
:
""
}),
p
.
a
.
Children
.
map
(
this
.
props
.
children
,(
function
(
e
){
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
e
)}))))}}]),
a
}(
m
.
Component
)),
F
=
a
(
23
),
D
=
a
(
404
),
R
=
Object
(
y
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),{
setCurrentUser
:
F
.
i
,
startFetchUser
:
F
.
j
})(
r
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
state
=
{
removable
:
0
,
currentOpenId
:
0
,
treasure_stage
:
0
,
activity_stage
:
0
,
userInfoList
:[],
userInfo
:{},
isAppUpdate
:
!
1
,
showMark
:
!
1
,
banner
:
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"
},
e
.
loginInfo
=
function
(
t
){
e
.
setState
({
userInfoList
:
t
},(
function
(){
e
.
state
.
userInfoList
.
length
&&
(
e
.
props
.
startFetchUser
(),
e
.
appLogin
())}))},
e
.
appLogin
=
function
(){
var
t
=
Object
(
D
.
a
)(
new
Date
,
90
);
e
.
state
.
userInfoList
.
forEach
((
function
(
e
,
a
){
N
.
a
.
set
(
"token"
,
e
.
token
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"plat"
,
e
.
plat
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"uid"
,
e
.
uid
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"uname"
,
e
.
uname
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"avatar_file"
,
e
.
avatar_file
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
})})),
N
.
a
.
get
(
"token"
)
&&
N
.
a
.
get
(
"uid"
)
&&
e
.
setState
({
isAppUpdate
:
!
0
}),
e
.
props
.
setCurrentUser
(
e
.
transformUser
(
e
.
state
.
userInfoList
))},
e
.
transformUser
=
function
(
e
){
var
t
;
return
e
.
forEach
((
function
(
e
,
a
){
t
=
{
hasError
:
!
1
,
data
:{
username
:
e
.
uname
,
avatar
:
e
.
avatar_file
,
token
:
e
.
token
,
uid
:
e
.
uid
},
isFetching
:
!
1
}})),
t
},
e
.
closePopup
=
function
(){
e
.
setState
({
showMark
:
!
1
})},
e
.
getRemovable
=
function
(
e
,
t
){},
e
.
getStage
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
r
=
a
.
data
,
s
=
a
.
msg
;
if
(
200
===
n
){
if
(
0
===
Number
(
r
.
treasure_stage
))
return
void
e
.
props
.
history
.
push
(
"/"
);
e
.
setState
({
activity_stage
:
r
.
activity_stage
,
treasure_stage
:
r
.
treasure_stage
}),
r
.
activity_stage
,
e
.
setState
({
banner
:
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"
})}
else
o
.
a
.
info
(
s
,
2
)}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
var
e
=
this
;
window
.
loginInfo
=
function
(
t
){
e
.
loginInfo
(
t
)},
e
.
getStage
(),
document
.
title
=
"
\
u
7cbd
\
u5b50
\
u8282
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66AI
\
u8bfe
\
u7a0b
\
uff0c
\
u73b0
\
u91d1
\
u7ea2
\
u5305
\
uff0c
\
u4eac
\
u4e1c
\
u8d2d
\
u7269
\
u5361
\
u9001
\
u4e0d
\
u505c
\
uff01-
\
u4e03
\
u6708
\
u5728
\
u7ebf"
}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
,
t
=
e
.
banner
,
a
=
e
.
activity_stage
,
n
=
e
.
treasure_stage
;
return
p
.
a
.
createElement
(
"div"
,{
className
:
"year-index"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"banner-treasure"
},
p
.
a
.
createElement
(
"img"
,{
src
:
t
,
alt
:
""
})),
1
===
n
&&
p
.
a
.
createElement
(
U
,{
isAppUpdate
:
this
.
state
.
isAppUpdate
,
getRemovable
:
this
.
getRemovable
}),
p
.
a
.
createElement
(
j
,{
stage
:
a
,
treasureStage
:
n
,
isAppUpdate
:
this
.
state
.
isAppUpdate
}),
this
.
state
.
showMark
&&
p
.
a
.
createElement
(
B
,{
top
:
50
,
closePopup
:
this
.
closePopup
,
mark
:
!
0
},
p
.
a
.
createElement
(
"div"
,{
className
:
"sub__code_container"
},
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__title"
},
"
\
u63d0
\
u9192
\
u670d
\
u52a1"
),
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__tip"
},
"
\
u6709
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
u540e
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"sub__qr_code"
,
id
:
"live-qr-code"
,
src
:
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg"
,
alt
:
""
}),
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__tip"
},
"
\
u957f
\
u6309
\
u8bc6
\
u522b/
\
u626b
\
u7801
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u5373
\
u53ef
\
u9884
\
u7ea6"
))),
this
.
state
.
showMark
&&
p
.
a
.
createElement
(
B
,{
top
:
50
,
closePopup
:
this
.
closePopup
,
mark
:
!
0
},
p
.
a
.
createElement
(
"div"
,{
className
:
"sub__code_container"
},
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__title"
},
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1
\
u6d3b
\
u52a8
\
u89c4
\
u5219"
),
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__rule"
},
"1.
\
u6d3b
\
u52a8
\
u671f
\
u95f4
\
uff083
\
u670826
\
u65e5-3
\
u670831
\
u65e5
\
uff09
\
u53ef
\
u968f
\
u65f6
\
u53c2
\
u4e0e
\
u5f00
\
u5b9d
\
u7bb1
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"2.
\
u5f53
\
u524d
\
u961f
\
u4f0d
\
u6ee1
\
u5458
\
u540e
\
u53ef
\
u7ee7
\
u7eed
\
u521b
\
u5efa
\
u65b0
\
u961f
\
u4f0d
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"3.
\
u6bcf
\
u4eba
\
u6709
\
u4e00
\
u6b21
\
u673a
\
u4f1a
\
u52a0
\
u5165
\
u597d
\
u53cb
\
u7684
\
u961f
\
u4f0d
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"4.
\
u961f
\
u4f0d
\
u6ee1
\
u5458
\
u540e
\
u6240
\
u6709
\
u6210
\
u5458
\
u5747
\
u53ef
\
u968f
\
u673a
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u5185
\
u5956
\
u54c1
\
uff0c
\
u961f
\
u957f
\
u5956
\
u52b1
\
u66f4
\
u4e30
\
u539a
\
u54e6~"
,
p
.
a
.
createElement
(
"br"
,
null
),
"5.
\
u4ee3
\
u91d1
\
u5238
\
u3001
\
u8bfe
\
u7a0b
\
u7b49
\
u865a
\
u62df
\
u5956
\
u54c1
\
u5c06
\
u76f4
\
u63a5
\
u53d1
\
u653e
\
u81f3
\
u8d26
\
u6237
\
uff0c
\
u5b9e
\
u7269
\
u5956
\
u54c1
\
u6d3b
\
u52a8
\
u7ed3
\
u675f
\
u540e
\
u7edf
\
u4e00
\
u90ae
\
u5bc4
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"6.
\
u73b0
\
u91d1
\
u53ef
\
u63d0
\
u73b0
\
uff1a
\
u6211
\
u7684
\
u2192
\
u8d5a
\
u5956
\
u5b66
\
u91d1
\
u2192
\
u63d0
\
u73b0
\
u3002"
))),
p
.
a
.
createElement
(
"div"
,{
className
:
"btm-rule"
},
"*
\
u672c
\
u6d3b
\
u52a8
\
u89e3
\
u91ca
\
u6743
\
u5f52
\
u5317
\
u4eac
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u79d1
\
u6280
\
u6709
\
u9650
\
u516c
\
u53f8
\
u6240
\
u6709 *"
))}}]),
a
}(
m
.
Component
))
||
r
;
t
.
default
=
R
}}]);
(
this
[
"webpackJsonpmr-julyedu"
]
=
this
[
"webpackJsonpmr-julyedu"
]
||
[]).
push
([[
46
],{
1071
:
function
(
e
,
t
,
a
){},
1072
:
function
(
e
,
t
,
a
){},
1073
:
function
(
e
,
t
,
a
){},
1074
:
function
(
e
,
t
,
a
){},
1075
:
function
(
e
,
t
,
a
){},
1076
:
function
(
e
,
t
,
a
){},
1077
:
function
(
e
,
t
,
a
){},
1078
:
function
(
e
,
t
,
a
){},
1188
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
a
(
36
);
var
n
,
r
,
s
=
a
(
10
),
o
=
a
.
n
(
s
),
c
=
a
(
3
),
i
=
a
(
5
),
l
=
a
(
6
),
u
=
a
(
7
),
m
=
a
(
0
),
p
=
a
.
n
(
m
),
d
=
(
a
(
1071
),
a
(
4
)),
h
=
a
(
58
),
f
=
(
a
(
1072
),
a
(
1
)),
g
=
a
(
28
),
v
=
a
(
419
),
b
=
a
.
n
(
v
),
y
=
a
(
20
),
_
=
Object
(
y
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}))(
n
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
c
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
getLength
=
function
(){
var
e
=
Object
(
h
.
a
)(
n
);
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/wish_sum"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
r
=
a
.
data
;
200
==
n
&&
e
.
setState
({
sum
:
r
.
sum
})}))},
n
.
fetchBigCourse
=
function
(){
var
e
=
n
.
state
.
bigcourse
;
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/preheat_data"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
r
=
a
.
code
,
s
=
a
.
data
;
200
===
r
&&
n
.
setState
({
bigcourse
:
Object
.
assign
({},
e
,{
isMore
:
!
1
,
course
:
s
,
courseList
:
s
})})}))},
n
.
fetchFreeCourse
=
function
(){
var
e
=
n
.
state
.
freecourse
;
f
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/assistance/detail"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
r
=
a
.
errno
,
s
=
a
.
data
;
200
===
r
&&
n
.
setState
({
freecourse
:
Object
.
assign
({},
e
,{
isMore
:
s
.
course_info
.
length
>
4
,
course
:
s
.
course_info
.
length
>
4
?
s
.
course_info
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
s
.
course_info
,
courseList
:
s
.
course_info
})})}))},
n
.
fetchGroupCourse
=
function
(){
var
e
=
n
.
state
.
groupcourse
;
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/excellent_course"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
r
=
a
.
code
,
s
=
a
.
data
;
200
===
r
&&
n
.
setState
({
groupcourse
:
Object
.
assign
({},
e
,{
isMore
:
s
.
length
>
4
,
course
:
s
.
length
>
4
?
s
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
s
,
courseList
:
s
})})}))},
n
.
fetchAICourse
=
function
(
e
,
t
){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/four_stage/"
).
concat
(
e
)).
then
((
function
(
a
){
var
r
=
a
.
data
,
s
=
r
.
code
,
o
=
r
.
data
;
200
===
s
&&
n
.
getList
(
e
,
o
,
t
)}))},
n
.
getList
=
function
(
e
,
t
,
a
){
var
r
=
n
.
state
,
s
=
r
.
basic
,
o
=
r
.
advanced
,
c
=
r
.
higher
,
i
=
r
.
expand
;
"one"
===
e
&&
n
.
setState
({
basic
:
Object
.
assign
({},
s
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})}),
"two"
===
e
&&
n
.
setState
({
advanced
:
Object
.
assign
({},
o
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})}),
"three"
===
e
&&
n
.
setState
({
higher
:
Object
.
assign
({},
c
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})}),
"four"
===
e
&&
n
.
setState
({
expand
:
Object
.
assign
({},
i
,{
isMore
:
t
.
length
>
4
&&!
a
,
course
:
t
.
length
>
4
&&!
a
?
t
.
filter
((
function
(
e
,
t
){
return
t
<
4
})):
t
,
courseList
:
t
,
addshowMore
:
a
})})},
n
.
toQQque
=
function
(){
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toQQ"
,
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
):
window
.
location
.
href
=
"http://q.url.cn/s/Vbkup6m?_type=wpa"
},
n
.
toCourse
=
function
(
e
){
var
t
=
n
.
props
.
history
;
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toCourse"
,
e
):
t
.
push
(
"/detail?id="
.
concat
(
e
))},
n
.
handleToMore
=
function
(
e
){
var
t
=
{};
n
.
state
[
e
].
isMore
?(
t
[
e
]
=
{
isMore
:
!
n
.
state
[
e
].
isMore
,
course
:
n
.
state
[
e
].
courseList
,
courseList
:
n
.
state
[
e
].
courseList
,
addshowMore
:
!
n
.
state
[
e
].
addshowMore
},
n
.
setState
(
Object
(
d
.
a
)({},
t
))):(
t
[
e
]
=
{
isMore
:
!
n
.
state
[
e
].
isMore
,
course
:
n
.
state
[
e
].
courseList
.
filter
((
function
(
e
,
t
){
return
t
<
4
})),
courseList
:
n
.
state
[
e
].
courseList
,
addshowMore
:
!
n
.
state
[
e
].
addshowMore
},
n
.
setState
(
Object
(
d
.
a
)({},
t
)))},
n
.
toLogin
=
function
(){
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toLogin"
):
n
.
props
.
history
.
push
(
"/passport/login"
)},
n
.
freeStudy
=
function
(){
n
.
setState
({
tofreeStudy
:
!
0
})},
n
.
closePopup
=
function
(){
n
.
setState
({
tofreeStudy
:
!
1
})},
n
.
closePopupWish
=
function
(){
var
e
=
Object
(
h
.
a
)(
n
);
e
.
setState
({
isshowFollow
:
!
1
}),
setTimeout
((
function
(){
e
.
toJoinList
(
e
.
state
.
wish
.
id
,
e
.
state
.
wish
.
key
)}),
200
)},
n
.
getQRcodeUrl
=
function
(){
var
e
=
Object
(
h
.
a
)(
n
);
f
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/wx/user_temporary_qrcode/"
).
concat
(
e
.
props
.
user
.
data
.
uid
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
errno
,
r
=
t
.
data
,
s
=
t
.
msg
;
0
==
a
?(
n
.
setState
({
qrUrl
:
r
.
url
}),
b
.
a
.
toDataURL
(
r
.
url
,(
function
(
e
,
t
){
n
.
setState
({
followBarcode
:
t
})}))):
o
.
a
.
info
(
s
,
2
)}))},
n
.
addWishList
=
function
(
e
,
t
){
var
a
=
Object
(
h
.
a
)(
n
),
r
=!
n
.
props
.
user
.
hasError
;
a
.
setState
({
wish
:{
id
:
e
,
key
:
t
}}),
r
?
a
.
isFollow
(
e
,
t
):
a
.
toLogin
()},
n
.
isFollow
=
function
(
e
,
t
){
var
a
=
Object
(
h
.
a
)(
n
);
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user/isFollowWeChat"
)).
then
((
function
(
n
){
var
r
=
n
.
data
,
s
=
r
.
code
,
c
=
r
.
data
,
i
=
r
.
msg
;
200
===
s
?(
a
.
setState
({
isshowFollow
:
!
c
.
is_follow
}),
a
.
state
.
isshowFollow
?
a
.
getQRcodeUrl
():
a
.
toJoinList
(
e
,
t
)):
o
.
a
.
info
(
i
,
2
)}))},
n
.
toJoinList
=
function
(
e
,
t
){
var
a
=
Object
(
h
.
a
)(
n
);
f
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/activity/join_list"
),{
course_id
:
e
}).
then
((
function
(
e
){
var
n
=
e
.
data
,
r
=
n
.
code
,
s
=
n
.
msg
;
200
==
r
?(
o
.
a
.
success
(
"
\
u5df2
\
u6210
\
u529f
\
u52a0
\
u5165
\
u5fc3
\
u613f
\
u5355"
,
3
),
a
.
getLength
(),
"1"
===
t
&&
a
.
fetchAICourse
(
"one"
,
a
.
state
.
basic
.
addshowMore
),
"2"
===
t
&&
a
.
fetchAICourse
(
"two"
,
a
.
state
.
advanced
.
addshowMore
),
"3"
===
t
&&
a
.
fetchAICourse
(
"three"
,
a
.
state
.
higher
.
addshowMore
),
"4"
===
t
&&
a
.
fetchAICourse
(
"four"
,
a
.
state
.
expand
.
addshowMore
),
"group"
===
t
&&
a
.
fetchGroupCourse
()):
o
.
a
.
info
(
s
,
2
)}))},
n
.
saveImage
=
function
(){
var
e
=
Object
(
f
.
c
)(
"version"
);
e
=
"string"
===
typeof
e
?
e
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
;
var
t
=
n
.
state
.
qrUrl
;
e
&&
parseInt
(
e
)
<
451
?
o
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
f
.
a
)(
"generateQRCode"
,
t
)},
n
.
saveImage2
=
function
(){
var
e
=
Object
(
f
.
c
)(
"version"
);(
e
=
"string"
===
typeof
e
?
e
.
replace
(
"."
,
""
).
replace
(
"."
,
""
).
slice
(
0
,
3
):
""
)
&&
parseInt
(
e
)
<
451
?
o
.
a
.
info
(
"
\
u5f53
\
u524d
\
u4e0d
\
u652f
\
u6301
\
u6b64
\
u529f
\
u80fd
\
uff0c
\
u5347
\
u7ea7
\
u5230
\
u6700
\
u65b0
\
u7248
\
u672capp
\
u53ef
\
u4ee5
\
u70b9
\
u51fb
\
u4fdd
\
u5b58
\
u4e8c
\
u7ef4
\
u7801
\
uff01"
,
3
,
null
,
!
1
):
Object
(
f
.
a
)(
"saveImage"
,
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg"
)},
n
.
getTeamInfo
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/teamInfo"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
,
s
=
t
.
msg
;
if
(
200
===
a
){
var
c
=
r
.
info
,
i
=
r
.
removable_data
;
n
.
setState
({
removable
:
c
.
removable
,
currentId
:
c
.
removable
>
0
?
i
[
0
].
id
:
null
})}
else
o
.
a
.
info
(
s
)}))},
n
.
toBoxList
=
function
(){
var
e
=!
n
.
props
.
user
.
hasError
,
t
=
n
.
state
.
currentId
,
a
=
""
;
t
&&
(
a
=
"?id="
.
concat
(
t
)),
e
?
Object
(
f
.
c
)(
"version"
)?
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
a
,
"?version="
).
concat
(
Object
(
f
.
c
)(
"version"
))):
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
a
)):
n
.
toLogin
()},
n
.
toYearWish
=
function
(){
!
n
.
props
.
user
.
hasError
?
Object
(
f
.
c
)(
"version"
)?
n
.
props
.
history
.
push
(
"/year/yearWish?version="
.
concat
(
Object
(
f
.
c
)(
"version"
))):
n
.
props
.
history
.
push
(
"/year/yearWish"
):
n
.
toLogin
()},
n
.
toInviteFriends
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{},
a
=
n
.
props
.
history
;
if
(
Object
(
f
.
c
)(
"version"
)){
var
r
=
{
title
:
"
\
u3010
\
u4ec5
\
u5269"
.
concat
(
t
.
number
,
"
\
u4e2a
\
u540d
\
u989d
\
u3011
\
u6211"
).
concat
(
t
.
price
,
"
\
u5143
\
u62fc
\
u4e86
\
u300a"
).
concat
(
t
.
course_title
,
"
\
u300b"
),
desc
:
t
.
course_title
,
link
:
""
.
concat
(
API
.
m
,
"/togroup?id="
).
concat
(
e
,
"&is_originator=1"
),
imgUrl
:
t
.
image_name
};
Object
(
f
.
a
)(
"toShare"
,
r
)}
else
a
.
push
(
"/togroup?id="
.
concat
(
e
))},
n
.
isCountDown
=
function
(
e
,
t
){
return
e
?
t
:
""
},
n
.
formatTitleAndKey
=
function
(
e
){
var
t
=
null
;
switch
(
e
){
case
1
:
t
=
{
title
:
"
\
u57fa
\
u7840"
,
key
:
"basic"
};
break
;
case
2
:
t
=
{
title
:
"
\
u8fdb
\
u9636"
,
key
:
"advanced"
};
break
;
case
3
:
t
=
{
title
:
"
\
u9ad8
\
u9636"
,
key
:
"higher"
};
break
;
case
4
:
t
=
{
title
:
"
\
u6269
\
u5c55"
,
key
:
"expand"
};
break
;
default
:
t
=
null
}
return
t
},
n
.
formatCourseData
=
function
(
e
){
var
t
=
n
.
state
,
a
=
t
.
basic
,
r
=
t
.
advanced
,
s
=
t
.
higher
,
o
=
t
.
expand
,
c
=
null
;
switch
(
e
){
case
1
:
c
=
a
;
break
;
case
2
:
c
=
r
;
break
;
case
3
:
c
=
s
;
break
;
case
4
:
c
=
o
;
break
;
default
:
c
=
null
}
return
c
},
n
.
toCart
=
function
(
e
){
var
t
=
n
.
props
.
history
;
f
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/m/cart/add"
),{
course_id
:
e
}).
then
((
function
(
e
){
var
a
=
e
.
data
,
r
=
a
.
code
,
s
=
a
.
msg
;
200
===
r
||
15001
===
r
?
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toShoppingCart"
):
t
.
push
(
"/shopcart"
):
4030
===
r
||
4040
===
r
?
n
.
toLogin
():
o
.
a
.
info
(
s
,
2
)}))},
n
.
toContinueBargain
=
function
(
e
,
t
,
a
,
r
){
var
s
=
n
.
props
.
history
;
if
(
Object
(
f
.
c
)(
"version"
)){
var
o
=
{
title
:
"
\
u6211
\
u53d1
\
u73b0
\
u4e00
\
u95e8
\
u597d
\
u8bfe
\
uff0c
\
u5feb
\
u6765
\
u5e2e
\
u6211
\
u780d
\
u4ef7
\
u5427
\
uff01"
,
desc
:
"
\
u6211
\
u5df2
\
u7ecf
\
u780d
\
u4e86"
.
concat
(
t
,
"
\
u5143
\
uff0c
\
u770b
\
u770b
\
u4f60
\
u80fd
\
u780d
\
u591a
\
u5c11"
),
link
:
""
.
concat
(
API
.
m
,
"/bargain-middle-page?id="
).
concat
(
e
,
"&bargaincode="
).
concat
(
a
,
"&is_originator=1"
),
imgUrl
:
r
};
Object
(
f
.
a
)(
"toShare"
,
o
)}
else
s
.
push
(
"/bargain-middle-page?id="
.
concat
(
e
,
"&bargaincode="
).
concat
(
a
,
"&is_originator=1"
))},
n
.
bargainToOrder
=
function
(
e
){
var
t
=
n
.
props
,
a
=
t
.
history
;
t
.
user
.
hasError
?
n
.
toLogin
():
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toPay"
,
e
):
f
.
f
.
get
(
""
.
concat
(
API
[
"base-api"
],
"/m/cart/addtopreorder/["
).
concat
(
e
,
"]"
)).
then
((
function
(
t
){
var
n
=
t
.
data
,
r
=
n
.
errno
,
s
=
n
.
msg
;
0
===
r
?
a
.
push
(
"/order?id=["
.
concat
(
e
,
"]"
),{
bargain
:
1
}):
o
.
a
.
info
(
s
,
2
)}))},
n
.
state
=
{
tofreeStudy
:
!
1
,
basic
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
advanced
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
higher
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
expand
:{
course
:[],
courseList
:[],
isMore
:
!
1
,
addshowMore
:
!
1
},
bigcourse
:{
course
:[],
courseList
:[],
isMore
:
!
1
},
freecourse
:{
course
:[],
courseList
:[],
isMore
:
!
1
},
groupcourse
:{
course
:[],
courseList
:[],
isMore
:
!
1
},
isshowFollow
:
!
1
,
wish
:{
id
:
""
,
key
:
""
},
followBarcode
:
""
,
qrUrl
:
""
,
sum
:
""
,
removable
:
""
,
currentId
:
""
},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getTeamInfo
(),
this
.
getLength
(),
this
.
fetchBigCourse
(),
this
.
fetchGroupCourse
(),
this
.
fetchAICourse
(
"one"
,
!
1
),
this
.
fetchAICourse
(
"two"
,
!
1
),
this
.
fetchAICourse
(
"three"
,
!
1
),
this
.
fetchAICourse
(
"four"
,
!
1
)}},{
key
:
"shouldComponentUpdate"
,
value
:
function
(
e
,
t
,
a
){
return
this
.
props
.
isAppUpdate
===
e
.
isAppUpdate
||
(
this
.
getTeamInfo
(),
this
.
getLength
(),
this
.
fetchBigCourse
(),
this
.
fetchGroupCourse
(),
this
.
fetchAICourse
(
"one"
),
this
.
fetchAICourse
(
"two"
),
this
.
fetchAICourse
(
"three"
),
this
.
fetchAICourse
(
"four"
),
!
1
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
.
removable
;
return
p
.
a
.
createElement
(
"div"
,{
className
:
"year-index-course"
},
e
>
0
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"nav-right-wish nav-right"
},
p
.
a
.
createElement
(
"span"
,{
onClick
:
this
.
toBoxList
,
className
:
"nav-right__link"
},
"
\
u672a
\
u5f00
\
u5b9d
\
u7bb1"
,
p
.
a
.
createElement
(
"i"
,{
className
:
"nav-right__number"
},
e
))))}}]),
a
}(
m
.
Component
))
||
n
,
j
=
Object
(
g
.
g
)(
_
),
E
=
(
a
(
1073
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
return
Object
(
c
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
props
.
id
;
return
p
.
a
.
createElement
(
"div"
,{
className
:
"common_container"
,
id
:
e
},
p
.
a
.
createElement
(
"div"
,{
className
:
"container_top"
}),
p
.
a
.
createElement
(
"div"
,{
className
:
"container_content"
},
this
.
props
.
title
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"title_container"
},
p
.
a
.
createElement
(
"i"
,
null
),
p
.
a
.
createElement
(
"p"
,
null
,
this
.
props
.
title
),
p
.
a
.
createElement
(
"i"
,
null
)),
p
.
a
.
Children
.
map
(
this
.
props
.
children
,(
function
(
e
){
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
e
)}))),
p
.
a
.
createElement
(
"div"
,{
className
:
"container_bottom"
}))}}]),
a
}(
m
.
Component
)),
k
=
(
a
(
1074
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
c
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
fetchRankInfo
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/ranking"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
;
200
===
a
&&
"{}"
!==
JSON
.
stringify
(
r
)
&&
(
r
.
length
>
5
?
n
.
setState
({
rank
:
r
.
filter
((
function
(
e
,
t
){
return
t
<
5
})),
rankList
:
r
,
isMore
:
!
0
}):
n
.
setState
({
rank
:
r
,
rankList
:
r
,
isMore
:
!
1
}))}))},
n
.
switchMoreRank
=
function
(){
var
e
=
n
.
state
,
t
=
e
.
rankList
;
e
.
isMore
?
n
.
setState
({
rank
:
t
,
isMore
:
!
1
}):
n
.
setState
({
rank
:
t
.
filter
((
function
(
e
,
t
){
return
t
<
5
})),
isMore
:
!
0
})},
n
.
handleToVip
=
function
(
e
){
var
t
=
n
.
props
.
history
;
e
&&
(
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toCourse"
,
e
):
t
.
push
(
"/detail?id="
.
concat
(
e
)))},
n
.
state
=
{
rank
:[],
rankList
:[],
isMore
:
!
1
},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
fetchRankInfo
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
rank
,
n
=
t
.
isMore
;
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
0
!==
a
.
length
&&
p
.
a
.
createElement
(
"div"
,{
"data-skip"
:
"rank"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"rank-title"
},
p
.
a
.
createElement
(
"i"
,{
className
:
"rank-title__decorate"
}),
p
.
a
.
createElement
(
"h2"
,{
className
:
"rank-title__txt"
},
"
\
u5b9d
\
u7bb1
\
u8fbe
\
u4eba
\
u699c"
),
p
.
a
.
createElement
(
"i"
,{
className
:
"rank-title__decorate"
})),
p
.
a
.
createElement
(
"p"
,{
className
:
"rank-desc"
},
"
\
u5b9d
\
u7bb1
\
u6570
\
u91cf
\
u524d50
\
u540d
\
u53ef
\
u989d
\
u5916
\
u83b7
\
u5f97
\
u4e00
\
u4efd
\
u5956
\
u54c1
\
uff0c
\
u6570
\
u91cf
\
u76f8
\
u540c
\
u7684
\
u7528
\
u65f6
\
u77ed
\
u8005
\
u6392
\
u540d
\
u5728
\
u524d"
),
p
.
a
.
createElement
(
"dl"
,{
className
:
"rank-header"
},
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u6392
\
u540d"
),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u7528
\
u6237"
),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u5b9d
\
u7bb1
\
u6570
\
u91cf"
),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
"
\
u5956
\
u54c1"
)),
p
.
a
.
createElement
(
"div"
,{
className
:
"rank-body"
},
a
.
map
((
function
(
t
,
a
){
return
p
.
a
.
createElement
(
"dl"
,{
className
:
"rank-item"
,
key
:
a
},
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
a
<=
2
?
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-column__number"
,
"data-num"
:
a
}):
p
.
a
.
createElement
(
"span"
,
null
,
a
+
1
)),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-column__name"
},
t
.
user_name
)),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
p
.
a
.
createElement
(
"span"
,
null
,
t
.
num
)),
p
.
a
.
createElement
(
"dd"
,{
className
:
"rank-column"
},
t
.
url
?
p
.
a
.
createElement
(
"a"
,{
className
:
"rank-column__txt"
,
onClick
:
function
(){
return
e
.
handleToVip
(
t
.
url
)}},
t
.
prize_name
):
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-column__txt"
},
t
.
prize_name
)))})),
p
.
a
.
createElement
(
"div"
,{
className
:
"rank-more"
,
onClick
:
this
.
switchMoreRank
},
p
.
a
.
createElement
(
"span"
,{
className
:
"rank-more__txt"
},
n
?
"
\
u5c55
\
u5f00"
:
"
\
u6536
\
u8d77"
),
p
.
a
.
createElement
(
"i"
,{
className
:
"rank-more__icon"
,
"data-more"
:
n
})))))}}]),
a
}(
m
.
Component
)),
w
=
(
a
(
1075
),
a
(
24
)),
O
=
a
(
38
),
N
=
a
.
n
(
O
),
I
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
c
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
getTeamInfo
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/teamInfo"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
,
s
=
t
.
msg
;
if
(
200
===
a
){
var
c
=
r
.
prize_info
,
i
=
r
.
is_my_team
,
l
=
r
.
info
,
u
=
r
.
member
,
m
=
r
.
removable_data
,
p
=
r
.
my_team
;
n
.
setState
({
prize_info
:
c
,
is_my_team
:
i
,
info
:
l
,
member
:
n
.
fillTeam
(
u
,
i
),
removable_data
:
m
,
my_team
:
p
});
var
d
=
null
;
l
.
removable
>
0
&&
(
d
=
m
[
0
].
id
),
n
.
props
.
getRemovable
(
l
.
removable
,
d
)}
else
o
.
a
.
info
(
s
)}))},
n
.
toYearTreasure
=
function
(
e
){
if
(
n
.
props
.
user
.
hasError
)
n
.
toLogin
();
else
{
var
t
=
""
;
if
(
e
){
var
a
=
n
.
state
,
r
=
a
.
removable_data
;
if
(
a
.
info
.
removable
>
0
){
var
s
=
r
[
0
];
t
=
"?id="
.
concat
(
s
.
id
)}}
Object
(
f
.
c
)(
"version"
)?
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
t
,
"?version="
).
concat
(
Object
(
f
.
c
)(
"version"
))):
n
.
props
.
history
.
push
(
"/box/yearTreasure"
.
concat
(
t
))}},
n
.
toLogin
=
function
(){
Object
(
f
.
c
)(
"version"
)?
Object
(
f
.
a
)(
"toLogin"
):
n
.
props
.
history
.
push
(
"/passport/login"
)},
n
.
createTeam
=
function
(){
if
(
n
.
props
.
user
.
hasError
)
n
.
toLogin
();
else
{
sessionStorage
.
setItem
(
"showShareTip"
,
"1"
);
var
e
=
n
.
state
,
t
=
e
.
is_my_team
,
a
=
e
.
my_team
.
treasure_code
;
t
?
Object
(
f
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
a
+
"&version="
+
Object
(
f
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
a
):
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
,
r
=
t
.
msg
;
if
(
200
===
a
){
var
s
=
n
.
treasure_code
;
Object
(
f
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
s
+
"&version="
+
Object
(
f
.
c
)(
"version"
)):
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code="
+
s
)}
else
o
.
a
.
info
(
r
)}))}},
n
.
fillTeam
=
function
(
e
,
t
){
var
a
=
e
.
length
;
if
(
n
.
props
.
user
.
hasError
)
for
(
var
r
=
0
;
r
<
5
-
a
;
r
++
)
e
.
push
({
head_img
:
""
,
user_name
:
""
,
nobody
:
!
0
});
else
if
(
0
!==
a
||
t
)
for
(
var
s
=
0
;
s
<
5
-
a
;
s
++
)
e
.
push
({
head_img
:
""
,
user_name
:
""
,
nobody
:
!
0
});
else
{
e
.
push
({
head_img
:
N
.
a
.
get
(
"avatar_file"
),
user_name
:
N
.
a
.
get
(
"user_name"
)});
for
(
var
o
=
0
;
o
<
4
;
o
++
)
e
.
push
({
head_img
:
""
,
user_name
:
""
,
nobody
:
!
0
})}
return
e
},
n
.
state
=
{
is_my_team
:
!
1
,
prize_info
:[],
info
:{
removable
:
0
,
total
:
0
},
member
:[],
removable_data
:[],
my_team
:{}},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getTeamInfo
()}},{
key
:
"shouldComponentUpdate"
,
value
:
function
(
e
,
t
,
a
){
return
this
.
props
.
isAppUpdate
===
e
.
isAppUpdate
||
(
this
.
getTeamInfo
(),
!
1
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
prize_info
,
n
=
t
.
is_my_team
,
r
=
t
.
info
,
s
=
r
.
removable
,
o
=
r
.
total
,
c
=
t
.
member
,
i
=
""
,
l
=
0
;
a
.
length
>
0
&&
(
i
=
a
[
0
].
name
,
l
=
a
[
0
].
stage_no
);
var
u
=
""
;
return
u
=
0
===
o
?
"
\
u6211
\
u7684
\
u5b9d
\
u7bb1"
:
0
===
s
?
"
\
u5171"
.
concat
(
o
,
"
\
u4e2a
\
u5b9d
\
u7bb1"
):
"
\
u5171"
.
concat
(
o
,
"
\
u4e2a
\
u5b9d
\
u7bb1/"
).
concat
(
s
,
"
\
u4e2a
\
u672a
\
u5f00"
),
p
.
a
.
createElement
(
"div"
,{
className
:
"team_info__container"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"team__member"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"member__list"
},
c
&&
c
.
length
>
0
&&
c
.
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
,
className
:
"member__item"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"avatar__container"
},
e
.
nobody
?
p
.
a
.
createElement
(
"img"
,{
className
:
"head__image"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
,
alt
:
""
}):
p
.
a
.
createElement
(
"img"
,{
className
:
"head__image"
,
src
:
e
.
head_img
,
alt
:
""
}),
0
===
t
?
p
.
a
.
createElement
(
"img"
,{
className
:
"caption__flag"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png"
,
alt
:
""
}):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"shadow"
})),
p
.
a
.
createElement
(
"div"
,{
className
:
"member__join "
.
concat
(
e
.
nobody
?
""
:
"join"
)}))}))),
p
.
a
.
createElement
(
"div"
,{
className
:
"box__number"
},
p
.
a
.
createElement
(
"img"
,{
onClick
:
function
(){
return
e
.
toYearTreasure
(
!
0
)},
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png"
,
alt
:
""
}),
p
.
a
.
createElement
(
"p"
,{
onClick
:
function
(){
return
e
.
toYearTreasure
(
!
1
)},
className
:
"box__text"
},
u
),
p
.
a
.
createElement
(
"img"
,{
className
:
"position__arrow"
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png"
,
alt
:
""
}),
s
>
0
&&
p
.
a
.
createElement
(
"div"
,{
className
:
"position__number"
},
s
))),
p
.
a
.
createElement
(
"div"
,{
onClick
:
this
.
createTeam
,
className
:
"invite__btn"
},
n
?
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f"
:
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
),
l
>
0
&&
i
&&
p
.
a
.
createElement
(
"p"
,{
className
:
"stage_prize"
},
"
\
u7b2c"
.
concat
(
l
,
"
\
u4e2a
\
u5b9d
\
u7bb1
\
u5fc5
\
u4e2d"
).
concat
(
i
)))}}]),
a
}(
m
.
Component
),
S
=
Object
(
w
.
d
)(
Object
(
y
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),
null
),
g
.
g
)(
I
),
L
=
(
a
(
1076
),
a
(
25
)),
C
=
a
(
8
),
M
=
Object
(
C
.
a
)((
function
(){
return
a
.
e
(
44
).
then
(
a
.
bind
(
null
,
1135
))})),
x
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
closeIcon
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
e
.
state
=
{
prizes
:[],
notices
:[],
rule
:[],
unfoldList
:
!
1
},
e
.
getPrizes
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/prize_data"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
r
=
a
.
data
,
s
=
a
.
msg
;
200
==
n
?
e
.
setState
({
prizes
:
r
.
prize_data
,
notices
:
r
.
notices
,
rule
:
r
.
rule
}):
o
.
a
.
info
(
s
,
2
,
null
,
!
1
)}))},
e
.
showRules
=
function
(){
Object
(
L
.
h
)({
title
:
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1
\
u6d3b
\
u52a8
\
u89c4
\
u5219"
,
className
:
"landing-treasure-rules"
,
content
:
p
.
a
.
createElement
(
"div"
,{
dangerouslySetInnerHTML
:{
__html
:
e
.
state
.
rule
}}),
closeIcon
:
e
.
closeIcon
})},
e
.
showMore
=
function
(){
e
.
setState
((
function
(
t
){
if
(
e
.
state
.
unfoldList
)
e
.
bg
.
style
=
e
.
innerBox
.
style
=
e
.
prizeBox
.
style
=
""
;
else
{
var
a
=
parseFloat
(
getComputedStyle
(
e
.
prizeBox
,
":before"
).
getPropertyValue
(
"height"
)),
n
=
parseFloat
(
getComputedStyle
(
e
.
prizeBox
,
":after"
).
getPropertyValue
(
"height"
)),
r
=
e
.
prizeList
.
scrollHeight
,
s
=
a
+
r
-
.
12458
*
a
-
.
595
*
n
+
n
;
e
.
prizeBox
.
style
.
height
=
""
.
concat
(
s
+
27
,
"px"
),
e
.
innerBox
.
style
.
height
=
""
.
concat
(
r
,
"px"
),
e
.
bg
.
style
.
height
=
""
.
concat
(
r
-
n
+
.
12458
*
a
+
27
,
"px"
)}
return
{
unfoldList
:
!
t
.
unfoldList
}}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getPrizes
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
.
showSystemNotices
,
a
=
this
.
state
.
notices
;
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
t
&&
a
&&
a
.
length
?
p
.
a
.
createElement
(
M
,{
bullets
:
a
}):
null
,
p
.
a
.
createElement
(
"div"
,{
className
:
"prizes-box"
,
ref
:
function
(
t
){
return
e
.
prizeBox
=
t
}},
p
.
a
.
createElement
(
"a"
,{
href
:
"javascript:;"
,
className
:
"rule-btn"
,
onClick
:
this
.
showRules
},
"
\
u6d3b
\
u52a8
\
u89c4
\
u5219 >"
,
" "
),
p
.
a
.
createElement
(
"div"
,{
className
:
"bg"
,
ref
:
function
(
t
){
return
e
.
bg
=
t
}}),
p
.
a
.
createElement
(
"div"
,{
className
:
"inner-box"
,
ref
:
function
(
t
){
return
e
.
innerBox
=
t
}},
p
.
a
.
createElement
(
"ul"
,{
className
:
"prize-list"
,
ref
:
function
(
t
){
return
e
.
prizeList
=
t
}},
this
.
state
.
prizes
.
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
key
:
t
},
e
.
img_name
?
p
.
a
.
createElement
(
"i"
,{
className
:
"prize-list__image"
,
style
:{
backgroundImage
:
"url("
.
concat
(
e
.
img_name
,
")"
)}}):
p
.
a
.
createElement
(
"i"
,{
className
:
"prize-list__image"
}),
0
!=
e
.
is_captain
&&
p
.
a
.
createElement
(
"span"
,{
className
:
"captain top-tag"
},
"
\
u961f
\
u957f
\
u4e13
\
u5c5e"
),
2
===
e
.
mode
&&
p
.
a
.
createElement
(
"span"
,{
className
:
"stage top-tag"
},
"
\
u7b2c"
,
e
.
stage_no
,
"
\
u4e2a
\
u5fc5
\
u4e2d"
),
e
.
grant_max
?
p
.
a
.
createElement
(
"div"
,{
className
:
"bottom-bar"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"progress-bar"
},
p
.
a
.
createElement
(
"span"
,{
className
:
"progress"
,
style
:{
width
:
""
.
concat
(
e
.
surplus
/
e
.
grant_max
*
100
,
"%"
)}})),
p
.
a
.
createElement
(
"span"
,
null
,
"
\
u9650
\
u91cf"
,
e
.
grant_max
,
"
\
u4efd"
)):
p
.
a
.
createElement
(
"span"
,{
className
:
"no-limit"
},
"
\
u4e0d
\
u9650
\
u91cf"
))})),
p
.
a
.
createElement
(
"li"
,
null
,
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png"
,
alt
:
""
})))),
p
.
a
.
createElement
(
"div"
,{
className
:
"show-more"
,
onClick
:
this
.
showMore
},
this
.
state
.
unfoldList
?
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u6536
\
u8d77"
,
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png"
,
alt
:
""
})):
p
.
a
.
createElement
(
"div"
,
null
,
"
\
u67e5
\
u770b
\
u5168
\
u90e8
\
u5956
\
u54c1"
,
p
.
a
.
createElement
(
"img"
,{
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png"
,
alt
:
""
})))))}}]),
a
}(
m
.
Component
),
A
=
a
(
73
),
P
=
a
(
139
),
z
=
(
a
(
205
),
a
(
1077
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
state
=
{
bulletScreenData
:[]},
e
.
initializeBulletScreen
=
function
(){
var
t
=
Object
(
h
.
a
)(
e
),
a
=
Object
(
A
.
a
)(
Array
(
19
).
keys
()),
n
=!
1
;
e
.
swiper
=
new
P
.
a
(
".swiper-container"
,{
direction
:
"vertical"
,
allowTouchMove
:
!
1
,
autoplay
:
!
0
,
on
:{
transitionEnd
:
function
(){
var
e
=
this
;
this
.
slides
.
length
>
20
&&
(
this
.
removeSlide
(
0
),
this
.
autoplay
.
start
()),
this
.
activeIndex
!==
this
.
slides
.
length
-
1
||
n
||
(
this
.
autoplay
.
stop
(),
t
.
getBulletScreenData
().
then
((
function
(
r
){
n
=!
0
,
e
.
removeSlide
(
a
),
e
.
appendSlide
(
t
.
getSlides
(
r
)),
setTimeout
((
function
(){
e
.
autoplay
.
start
(),
n
=!
1
}))})))}}})},
e
.
getSlides
=
function
(
e
){
return
e
.
map
((
function
(
e
){
return
'
\
n <li class="swiper-slide">
\
n <img class="avatar" src="'
.
concat
(
e
.
avatar_file
,
'" alt="">
\
n <span>'
).
concat
(
e
.
user_name
,
" "
).
concat
(
e
.
msg
,
"</span>
\
n </li>
\
n "
)}))},
e
.
getBulletScreenData
=
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]
&&
arguments
[
0
];
return
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/barrage_data"
)).
then
((
function
(
a
){
var
n
=
a
.
data
,
r
=
n
.
data
;
if
(
200
===
n
.
code
){
if
(
!
t
)
return
r
;
e
.
setState
({
bulletScreenData
:
r
},(
function
(){
e
.
initializeBulletScreen
()}))}}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
getBulletScreenData
(
!
0
)}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
this
.
swiper
&&
this
.
swiper
.
destroy
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
.
bulletScreenData
;
return
p
.
a
.
createElement
(
"div"
,{
id
:
"user-bullet-screen"
,
className
:
"swiper-container"
},
p
.
a
.
createElement
(
"ul"
,{
className
:
"swiper-wrapper"
},
e
.
length
&&
e
.
map
((
function
(
e
,
t
){
return
p
.
a
.
createElement
(
"li"
,{
className
:
"swiper-slide"
,
key
:
t
},
p
.
a
.
createElement
(
"img"
,{
src
:
e
.
avatar_file
,
alt
:
""
,
className
:
"avatar"
}),
p
.
a
.
createElement
(
"span"
,
null
,
e
.
user_name
,
" "
,
e
.
msg
))}))))}}]),
a
}(
m
.
Component
)),
T
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
return
Object
(
c
.
a
)(
this
,
a
),
t
.
apply
(
this
,
arguments
)}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
E
,{
id
:
"year-treasure"
,
title
:
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
},
p
.
a
.
createElement
(
"div"
,{
style
:{
textAlign
:
"center"
,
fontSize
:
"12px"
,
color
:
"#FFDC1E"
,
marginTop
:
"10px"
}},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u7ec4
\
u961f
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
uff0c
\
u6ee15
\
u4eba
\
u540e
\
u5c06
\
u968f
\
u673a
\
u83b7
\
u5f97
\
u4ee5
\
u4e0b
\
u5956
\
u54c1~"
),
p
.
a
.
createElement
(
x
,{
showSystemNotices
:
!
0
}),
p
.
a
.
createElement
(
z
,
null
),
p
.
a
.
createElement
(
S
,{
isAppUpdate
:
this
.
props
.
isAppUpdate
,
getRemovable
:
this
.
props
.
getRemovable
}),
p
.
a
.
createElement
(
k
,{
history
:
this
.
props
.
history
}))}}]),
a
}(
m
.
Component
),
U
=
Object
(
g
.
g
)(
T
),
B
=
(
a
(
1078
),
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
computedStyle
=
function
(){
return
{
top
:
""
.
concat
(
e
.
props
.
top
,
"px"
),
width
:
""
.
concat
(
e
.
props
.
width
,
"px"
)}},
e
.
closePopup
=
function
(){
e
.
props
.
mark
&&
e
.
props
.
closePopup
()},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
return
p
.
a
.
createElement
(
"div"
,{
className
:
"popup__container"
,
onClick
:
this
.
closePopup
},
p
.
a
.
createElement
(
"div"
,{
className
:
"content__container"
,
style
:
this
.
computedStyle
(),
onClick
:
function
(
e
){
e
.
stopPropagation
()}},
p
.
a
.
createElement
(
"img"
,{
className
:
"close__btn"
,
onClick
:
this
.
props
.
closePopup
,
src
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png"
,
alt
:
""
}),
p
.
a
.
Children
.
map
(
this
.
props
.
children
,(
function
(
e
){
return
p
.
a
.
createElement
(
p
.
a
.
Fragment
,
null
,
e
)}))))}}]),
a
}(
m
.
Component
)),
F
=
a
(
23
),
D
=
a
(
404
),
R
=
Object
(
y
.
b
)((
function
(
e
){
return
{
user
:
e
.
user
}}),{
setCurrentUser
:
F
.
i
,
startFetchUser
:
F
.
j
})(
r
=
function
(
e
){
Object
(
l
.
a
)(
a
,
e
);
var
t
=
Object
(
u
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
c
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
r
=
new
Array
(
n
),
s
=
0
;
s
<
n
;
s
++
)
r
[
s
]
=
arguments
[
s
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
r
))).
state
=
{
removable
:
0
,
currentOpenId
:
0
,
treasure_stage
:
0
,
activity_stage
:
0
,
userInfoList
:[],
userInfo
:{},
isAppUpdate
:
!
1
,
showMark
:
!
1
,
banner
:
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"
},
e
.
loginInfo
=
function
(
t
){
e
.
setState
({
userInfoList
:
t
},(
function
(){
e
.
state
.
userInfoList
.
length
&&
(
e
.
props
.
startFetchUser
(),
e
.
appLogin
())}))},
e
.
appLogin
=
function
(){
var
t
=
Object
(
D
.
a
)(
new
Date
,
90
);
e
.
state
.
userInfoList
.
forEach
((
function
(
e
,
a
){
N
.
a
.
set
(
"token"
,
e
.
token
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"plat"
,
e
.
plat
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"uid"
,
e
.
uid
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"uname"
,
e
.
uname
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
}),
N
.
a
.
set
(
"avatar_file"
,
e
.
avatar_file
,{
expires
:
t
,
path
:
"/"
,
domain
:
".julyedu.com"
})})),
N
.
a
.
get
(
"token"
)
&&
N
.
a
.
get
(
"uid"
)
&&
e
.
setState
({
isAppUpdate
:
!
0
}),
e
.
props
.
setCurrentUser
(
e
.
transformUser
(
e
.
state
.
userInfoList
))},
e
.
transformUser
=
function
(
e
){
var
t
;
return
e
.
forEach
((
function
(
e
,
a
){
t
=
{
hasError
:
!
1
,
data
:{
username
:
e
.
uname
,
avatar
:
e
.
avatar_file
,
token
:
e
.
token
,
uid
:
e
.
uid
},
isFetching
:
!
1
}})),
t
},
e
.
closePopup
=
function
(){
e
.
setState
({
showMark
:
!
1
})},
e
.
getRemovable
=
function
(
e
,
t
){},
e
.
getStage
=
function
(){
f
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
n
=
a
.
code
,
r
=
a
.
data
,
s
=
a
.
msg
;
if
(
200
===
n
){
if
(
0
===
Number
(
r
.
treasure_stage
))
return
void
e
.
props
.
history
.
push
(
"/"
);
e
.
setState
({
activity_stage
:
r
.
activity_stage
,
treasure_stage
:
r
.
treasure_stage
}),
r
.
activity_stage
,
e
.
setState
({
banner
:
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"
})}
else
o
.
a
.
info
(
s
,
2
)}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
var
e
=
this
;
window
.
loginInfo
=
function
(
t
){
e
.
loginInfo
(
t
)},
e
.
getStage
(),
document
.
title
=
"
\
u
0041
\
u0049
\
u5145
\
u7535
\
u5b63
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66
\
u6b63
\
u4ef7
\
u8bfe
\
uff0c
\
u0032
\
u0030
\
u0030
\
u672c
\
u7eb8
\
u8d28
\
u4e66
\
u7b49
\
u5305
\
u90ae
\
u9001
\
uff01
\
u002d
\
u4e03
\
u6708
\
u5728
\
u7ebf"
}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
state
,
t
=
e
.
banner
,
a
=
e
.
activity_stage
,
n
=
e
.
treasure_stage
;
return
p
.
a
.
createElement
(
"div"
,{
className
:
"year-index"
},
p
.
a
.
createElement
(
"div"
,{
className
:
"banner-treasure"
},
p
.
a
.
createElement
(
"img"
,{
src
:
t
,
alt
:
""
})),
1
===
n
&&
p
.
a
.
createElement
(
U
,{
isAppUpdate
:
this
.
state
.
isAppUpdate
,
getRemovable
:
this
.
getRemovable
}),
p
.
a
.
createElement
(
j
,{
stage
:
a
,
treasureStage
:
n
,
isAppUpdate
:
this
.
state
.
isAppUpdate
}),
this
.
state
.
showMark
&&
p
.
a
.
createElement
(
B
,{
top
:
50
,
closePopup
:
this
.
closePopup
,
mark
:
!
0
},
p
.
a
.
createElement
(
"div"
,{
className
:
"sub__code_container"
},
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__title"
},
"
\
u63d0
\
u9192
\
u670d
\
u52a1"
),
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__tip"
},
"
\
u6709
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d
\
u540e
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u901a
\
u77e5
\
u6211~"
),
p
.
a
.
createElement
(
"img"
,{
className
:
"sub__qr_code"
,
id
:
"live-qr-code"
,
src
:
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg"
,
alt
:
""
}),
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__tip"
},
"
\
u957f
\
u6309
\
u8bc6
\
u522b/
\
u626b
\
u7801
\
u5173
\
u6ce8
\
u3010
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u3011
\
u670d
\
u52a1
\
u53f7
\
u5373
\
u53ef
\
u9884
\
u7ea6"
))),
this
.
state
.
showMark
&&
p
.
a
.
createElement
(
B
,{
top
:
50
,
closePopup
:
this
.
closePopup
,
mark
:
!
0
},
p
.
a
.
createElement
(
"div"
,{
className
:
"sub__code_container"
},
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__title"
},
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1
\
u6d3b
\
u52a8
\
u89c4
\
u5219"
),
p
.
a
.
createElement
(
"p"
,{
className
:
"sub__rule"
},
"1.
\
u6d3b
\
u52a8
\
u671f
\
u95f4
\
uff083
\
u670826
\
u65e5-3
\
u670831
\
u65e5
\
uff09
\
u53ef
\
u968f
\
u65f6
\
u53c2
\
u4e0e
\
u5f00
\
u5b9d
\
u7bb1
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"2.
\
u5f53
\
u524d
\
u961f
\
u4f0d
\
u6ee1
\
u5458
\
u540e
\
u53ef
\
u7ee7
\
u7eed
\
u521b
\
u5efa
\
u65b0
\
u961f
\
u4f0d
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"3.
\
u6bcf
\
u4eba
\
u6709
\
u4e00
\
u6b21
\
u673a
\
u4f1a
\
u52a0
\
u5165
\
u597d
\
u53cb
\
u7684
\
u961f
\
u4f0d
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"4.
\
u961f
\
u4f0d
\
u6ee1
\
u5458
\
u540e
\
u6240
\
u6709
\
u6210
\
u5458
\
u5747
\
u53ef
\
u968f
\
u673a
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u5185
\
u5956
\
u54c1
\
uff0c
\
u961f
\
u957f
\
u5956
\
u52b1
\
u66f4
\
u4e30
\
u539a
\
u54e6~"
,
p
.
a
.
createElement
(
"br"
,
null
),
"5.
\
u4ee3
\
u91d1
\
u5238
\
u3001
\
u8bfe
\
u7a0b
\
u7b49
\
u865a
\
u62df
\
u5956
\
u54c1
\
u5c06
\
u76f4
\
u63a5
\
u53d1
\
u653e
\
u81f3
\
u8d26
\
u6237
\
uff0c
\
u5b9e
\
u7269
\
u5956
\
u54c1
\
u6d3b
\
u52a8
\
u7ed3
\
u675f
\
u540e
\
u7edf
\
u4e00
\
u90ae
\
u5bc4
\
uff1b"
,
p
.
a
.
createElement
(
"br"
,
null
),
"6.
\
u73b0
\
u91d1
\
u53ef
\
u63d0
\
u73b0
\
uff1a
\
u6211
\
u7684
\
u2192
\
u8d5a
\
u5956
\
u5b66
\
u91d1
\
u2192
\
u63d0
\
u73b0
\
u3002"
))),
p
.
a
.
createElement
(
"div"
,{
className
:
"btm-rule"
},
"*
\
u672c
\
u6d3b
\
u52a8
\
u89e3
\
u91ca
\
u6743
\
u5f52
\
u5317
\
u4eac
\
u4e03
\
u6708
\
u5728
\
u7ebf
\
u79d1
\
u6280
\
u6709
\
u9650
\
u516c
\
u53f8
\
u6240
\
u6709 *"
))}}]),
a
}(
m
.
Component
))
||
r
;
t
.
default
=
R
}}]);
//# sourceMappingURL=treasure-box-home.4ca21867.chunk.js.map
//# sourceMappingURL=treasure-box-home.4ca21867.chunk.js.map
\ No newline at end of file
build/mrstaticjs/treasure-box-mybox.62baa8b8.chunk.js
View file @
b1a57aea
(
this
[
"webpackJsonpmr-julyedu"
]
=
this
[
"webpackJsonpmr-julyedu"
]
||
[]).
push
([[
47
],{
1079
:
function
(
e
,
t
,
a
){},
1080
:
function
(
e
,
t
,
a
){},
1081
:
function
(
e
,
t
,
a
){},
1082
:
function
(
e
,
t
,
a
){},
1083
:
function
(
e
,
t
,
a
){},
1084
:
function
(
e
,
t
,
a
){},
1192
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
var
n
,
s
=
a
(
3
),
i
=
a
(
5
),
r
=
a
(
6
),
o
=
a
(
7
),
c
=
a
(
0
),
l
=
a
.
n
(
c
),
m
=
a
(
20
),
d
=
a
(
25
),
u
=
a
(
584
),
p
=
a
(
586
),
h
=
a
(
588
),
f
=
(
a
(
1079
),
function
(
e
){
console
.
log
(
e
);
var
t
=
e
.
data
,
a
=
t
.
team_num
,
n
=
void
0
===
a
?
1
:
a
,
s
=
t
.
lack_member
,
i
=
void
0
===
s
?
4
:
s
,
r
=
t
.
member
,
o
=
void
0
===
r
?[]:
r
,
c
=
e
.
handleToInvite
,
m
=
new
Array
(
5
).
fill
({});
return
l
.
a
.
createElement
(
"div"
,{
className
:
"team-success"
},
l
.
a
.
createElement
(
"h2"
,{
className
:
"team-success__title"
},
"
\
u521b
\
u5efa
\
u6210
\
u529f"
),
l
.
a
.
createElement
(
"p"
,{
className
:
"team-success__tip"
},
l
.
a
.
createElement
(
"span"
,
null
,
n
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
a
.
createElement
(
"span"
,
null
,
i
),
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6~"
),
l
.
a
.
createElement
(
"i"
,{
className
:
"team-success__icon"
}),
l
.
a
.
createElement
(
"ul"
,{
className
:
"team-success__member members"
},
m
.
map
((
function
(
e
,
t
){
var
a
=
o
[
t
];
return
l
.
a
.
createElement
(
"li"
,{
className
:
"member-item"
,
key
:
t
},
a
&&
a
.
is_captain
&&
l
.
a
.
createElement
(
"sup"
,{
className
:
"member-item__captain"
},
"
\
u961f
\
u957f"
),
l
.
a
.
createElement
(
"img"
,{
className
:
"member-item__avatar"
,
src
:
a
?
a
.
head_img
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png"
,
alt
:
""
}))}))),
l
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"team-success__button"
,
onClick
:
c
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
))}),
_
=
a
(
17
),
b
=
a
.
n
(
_
),
v
=
(
a
(
1080
),
a
(
1
)),
E
=
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
s
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
initMemberInfo
=
function
(){
for
(
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
t
=
n
.
props
,
a
=
t
.
data
,
s
=
t
.
userInfo
,
i
=
"{}"
!==
JSON
.
stringify
(
e
)?
e
:
a
,
r
=
i
.
member
,
o
=
r
.
length
-
5
;
o
<
0
;
o
++
)
r
.
push
({});
n
.
setState
({
team
:
Object
.
assign
({},
i
,{
member
:
r
}),
currentMember
:
s
.
uid
?
r
.
filter
((
function
(
e
){
return
e
.
uid
==
s
.
uid
}))[
0
]:{}})},
n
.
computedClass
=
function
(
e
){
var
t
=
n
.
props
.
data
.
is_open
,
a
=
n
.
state
.
currentMember
;
return
b
()(
"team-member__item"
,{
active
:
e
===
a
.
uid
&&
t
})},
n
.
computedBg
=
function
(
e
){
return
e
?{
backgroundImage
:
"url("
.
concat
(
e
,
")"
)}:{}},
n
.
toCheckPrize
=
function
(
e
){
var
t
=
n
.
state
.
team
,
a
=
t
.
is_open
,
s
=
t
.
member
;
if
(
a
){
var
i
=
(
void
0
===
s
?[]:
s
).
filter
((
function
(
t
){
return
t
.
uid
===
e
}));
n
.
setState
({
currentMember
:
i
[
0
]})}},
n
.
state
=
{
team
:{},
currentMember
:{}},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
initMemberInfo
()}},{
key
:
"componentWillReceiveProps"
,
value
:
function
(
e
){
var
t
=
this
.
props
.
data
,
a
=
e
.
data
;
a
.
is_open
!=
t
.
is_open
&&
this
.
initMemberInfo
(
a
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
team
,
n
=
a
.
is_captain
,
s
=
a
.
status
,
i
=
a
.
team_num
,
r
=
a
.
lack_member
,
o
=
a
.
is_open
,
c
=
a
.
treasure_code
,
m
=
a
.
member
,
d
=
void
0
===
m
?[]:
m
,
u
=
t
.
currentMember
,
p
=
this
.
props
,
h
=
p
.
toSplitTreasure
,
f
=
p
.
userInfo
,
_
=
p
.
children
;
return
l
.
a
.
createElement
(
"div"
,{
className
:
"team-container"
,
"data-skip"
:
"team"
},
!
n
&&
l
.
a
.
createElement
(
"i"
,{
className
:
"team-friend"
},
"
\
u53cb"
),
1
===
s
?
l
.
a
.
createElement
(
"i"
,{
className
:
"team-status"
},
"
\
u7ec4
\
u961f
\
u4e2d.."
):
l
.
a
.
createElement
(
"i"
,{
className
:
"team-decorate"
}),
n
?
l
.
a
.
createElement
(
"h2"
,{
className
:
"team-title"
},
i
,
"
\
u53f7
\
u961f
\
u4f0d"
):
l
.
a
.
createElement
(
"h2"
,{
className
:
"team-title"
},
"
\
u597d
\
u53cb
\
u961f
\
u4f0d"
),
1
===
s
?
l
.
a
.
createElement
(
"p"
,{
className
:
"team-desc"
},
"
\
u8fd8
\
u5dee"
,
r
,
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6
\
uff5e"
):
l
.
a
.
createElement
(
"p"
,{
className
:
"team-desc"
},
"
\
u7ec4
\
u961f
\
u6210
\
u529f"
),
l
.
a
.
createElement
(
"div"
,{
className
:
"team-member"
},
d
.
map
((
function
(
t
,
a
){
return
l
.
a
.
createElement
(
"div"
,{
className
:
e
.
computedClass
(
t
.
uid
),
onClick
:
function
(){
return
e
.
toCheckPrize
(
t
.
uid
)},
key
:
a
,
style
:
e
.
computedBg
(
t
.
head_img
)},
t
.
is_captain
&&
l
.
a
.
createElement
(
"span"
,{
className
:
"team-member__captain"
},
"
\
u961f
\
u957f"
))}))),
l
.
a
.
createElement
(
"div"
,{
className
:
"team-footer"
,
"data-layout"
:
o
?
"column"
:
"row"
},
1
===
s
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
Object
(
v
.
c
)(
"version"
)?
n
?
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=1&version="
).
concat
(
Object
(
v
.
c
)(
"version"
))},
"
\
u7ee7
\
u7eed
\
u9080
\
u8bf7
\
u961f
\
u53cb"
):
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=2&version="
).
concat
(
Object
(
v
.
c
)(
"version"
))},
"
\
u5e2e
\
u597d
\
u53cb
\
u5b8c
\
u6210
\
u7ec4
\
u961f"
):
n
?
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=1"
)},
"
\
u7ee7
\
u7eed
\
u9080
\
u8bf7
\
u961f
\
u53cb"
):
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=2"
)},
"
\
u5e2e
\
u597d
\
u53cb
\
u5b8c
\
u6210
\
u7ec4
\
u961f"
)),
2
===
s
&&!
o
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"span"
,{
className
:
"team-icon"
,
"data-direction"
:
"left"
}),
l
.
a
.
createElement
(
"span"
,{
className
:
"team-button--split"
,
onClick
:
h
}),
l
.
a
.
createElement
(
"span"
,{
className
:
"team-icon"
,
"data-direction"
:
"right"
})),
2
===
s
&&
o
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
u
.
prize_name
?
l
.
a
.
createElement
(
"p"
,{
className
:
"team-prize"
},
u
.
prize_name
):
l
.
a
.
createElement
(
"p"
,{
className
:
"team-prize"
},
"
\
u5c1a
\
u672a
\
u5f00
\
u5b9d
\
u7bb1"
),
u
.
uid
==
f
.
uid
?
_
:
null
)))}}]),
a
}(
c
.
Component
),
y
=
(
a
(
1081
),
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
bind_phone
,
n
=
t
.
bind_address
,
s
=
t
.
prize_type
,
i
=
e
.
handleToBindPhone
,
r
=
e
.
handleToBindAddress
,
o
=
e
.
toComposeCoupon
,
c
=
e
.
toUseCoupon
,
m
=
e
.
toCourseList
,
d
=
e
.
toFecthMoney
;
return
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
a
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
i
},
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7"
)),
!
a
&&
n
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
r
},
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u67e5
\
u770b/
\
u4fee
\
u6539
\
u6536
\
u8d27
\
u4fe1
\
u606f"
)),
!
a
&&!
n
&&
1
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
r
},
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u67e5
\
u770b/
\
u4fee
\
u6539
\
u6536
\
u8d27
\
u4fe1
\
u606f"
)),
!
a
&&!
n
&&
6
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
o
},
"
\
u53ef
\
u5408
\
u6210
\
u4ee3
\
u91d1
\
u5238
\
u5728
\
u8d2d
\
u8bfe
\
u65f6
\
u4f7f
\
u7528
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u5408
\
u6210"
)),
!
a
&&!
n
&&
3
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
c
},
"
\
u5df2
\
u53d1
\
u653e
\
u81f3
\
u60a8
\
u7684
\
u8d26
\
u6237
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u4f7f
\
u7528"
)),
!
a
&&!
n
&&
4
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
m
},
"
\
u5df2
\
u53d1
\
u653e
\
u81f3
\
u60a8
\
u7684
\
u8d26
\
u6237
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u4f7f
\
u7528"
)),
!
a
&&!
n
&&
7
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
d
},
"
\
u5df2
\
u5b58
\
u5165
\
u60a8
\
u7684
\
u8d26
\
u6237
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u63d0
\
u73b0"
)),
!
a
&&!
n
&&
2
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
},
"
\
u5df2
\
u53d1
\
u653e
\
u81f3
\
u60a8
\
u7684
\
u8d26
\
u6237"
),
!
a
&&!
n
&&
5
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
},
"
\
u65e0
\
u6cd5
\
u9886
\
u53d6
\
u8bf7
\
u6dfb
\
u52a0
\
u5fae
\
u4fe1
\
uff1ajulyedukefu10"
))}),
N
=
(
a
(
1082
),
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
s
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
i
=
new
Array
(
n
),
r
=
0
;
r
<
n
;
r
++
)
i
[
r
]
=
arguments
[
r
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
i
))).
computedBg
=
function
(
e
){
return
e
?{
backgroundImage
:
"url("
.
concat
(
e
,
")"
)}:{}},
e
.
continueSplitTreasure
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
ids
,
n
=
t
.
successSplitTreasure
,
s
=
t
.
handleToBindPhone
,
i
=
t
.
handleToBindAddress
,
r
=
a
[
0
];
v
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/split_treasure"
),
r
).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
;
200
===
a
?(
n
(
r
),
r
.
bind_phone
?
setTimeout
((
function
(){
s
(
r
.
id
)}),
500
):
r
.
bind_address
&&
setTimeout
((
function
(){
i
(
r
.
id
,
r
.
prize_name
)}),
500
)):
12
e3
===
a
?
s
():
12001
===
a
&&
i
()}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
,
a
=
t
.
ids
,
n
=
t
.
data
,
s
=
n
.
member
,
i
=
void
0
===
s
?[]:
s
,
r
=
n
.
prize_img
,
o
=
n
.
prize_name
,
c
=
t
.
handleToInvite
,
m
=
t
.
children
;
return
l
.
a
.
createElement
(
"div"
,{
"data-skip"
:
"split"
},
l
.
a
.
createElement
(
"h2"
,{
className
:
"split-success__title"
},
"
\
u606d
\
u559c
\
u4f60
\
u83b7
\
u5f97"
),
l
.
a
.
createElement
(
"div"
,{
className
:
"split-success__image"
},
l
.
a
.
createElement
(
"img"
,{
src
:
r
,
alt
:
""
})),
l
.
a
.
createElement
(
"p"
,{
className
:
"split-success__prize"
},
o
),
m
,
l
.
a
.
createElement
(
"div"
,{
className
:
"split-success__member"
},
i
.
map
((
function
(
t
,
a
){
return
l
.
a
.
createElement
(
"div"
,{
className
:
"member-item"
,
key
:
a
},
l
.
a
.
createElement
(
"span"
,{
className
:
"member-item__avatar"
,
style
:
e
.
computedBg
(
t
.
avatar
)},
t
.
is_captain
&&
l
.
a
.
createElement
(
"i"
,{
className
:
"member-item__captain"
},
"
\
u961f
\
u957f"
)),
t
.
prize
?
l
.
a
.
createElement
(
"span"
,{
className
:
"member-item__prize"
},
t
.
prize
):
l
.
a
.
createElement
(
"span"
,{
className
:
"member-item__prize"
},
"
\
u5c1a
\
u672a
\
u5f00
\
u5b9d
\
u7bb1"
))}))),
a
.
length
>
0
?
l
.
a
.
createElement
(
"button"
,{
className
:
"split-success__jump"
,
onClick
:
this
.
continueSplitTreasure
},
"
\
u7ee7
\
u7eed
\
u5f00
\
u5b9d
\
u7bb1"
):
l
.
a
.
createElement
(
"button"
,{
className
:
"split-success__jump"
,
onClick
:
c
},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
))}}]),
a
}(
c
.
Component
)),
g
=
a
(
22
),
T
=
a
.
n
(
g
),
C
=
(
a
(
1083
),
document
.
querySelector
(
"body"
)),
I
=
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
s
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
el
||
(
n
.
el
=
document
.
createElement
(
"div"
)),
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
C
.
appendChild
(
this
.
el
)}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
C
.
removeChild
(
this
.
el
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
visible
,
a
=
e
.
handleToHide
,
n
=
e
.
className
;
return
t
?
T
.
a
.
createPortal
(
l
.
a
.
createElement
(
"div"
,{
className
:
"mask"
},
l
.
a
.
createElement
(
"div"
,{
className
:
b
()(
"mask-content"
,
n
)},
this
.
props
.
children
),
l
.
a
.
createElement
(
"div"
,{
className
:
"mask-footer"
},
l
.
a
.
createElement
(
"i"
,{
className
:
"mask-button__close"
,
onClick
:
a
}))),
this
.
el
):
null
}}]),
a
}(
c
.
Component
),
j
=
(
a
(
1084
),
Object
(
m
.
b
)((
function
(
e
){
return
{
country
:
e
.
country
,
userInfo
:
e
.
user
.
data
}}))(
n
=
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
s
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
popupInstance
=
null
,
n
.
initPrizeName
=
function
(
e
){
var
t
=
n
.
fetchCurrentTeamId
(
e
),
a
=
e
.
filter
((
function
(
e
){
return
e
.
id
==
t
}));
a
.
length
>
0
&&
n
.
setState
({
prizeName
:
a
[
0
].
prize_name
})},
n
.
judgeIsHaveId
=
function
(
e
){
var
t
=
Object
(
v
.
c
)(
"id"
);
if
(
t
){
var
a
=
e
.
filter
((
function
(
e
){
return
e
.
id
==
t
}));
if
(
a
.
length
>
0
){
var
s
=
{
team_num
:
a
[
0
].
team_num
,
owner_uid
:
a
[
0
].
captain_uid
};
n
.
toSplitTreasure
(
s
)}}},
n
.
fetchCurrentTeamId
=
function
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:[],
t
=
e
.
filter
((
function
(
e
){
return
e
.
is_open
&&
(
e
.
bind_phone
||
e
.
bind_address
)}));
return
t
.
length
>
0
?
t
[
0
].
id
:
""
},
n
.
isShowBindPhone
=
function
(
e
){
if
(
n
.
props
.
country
.
from
){
var
t
=
n
.
fetchCurrentTeamId
(
e
);
n
.
handleToBindPhone
(
t
)}},
n
.
handleToBindPhone
=
function
(
e
){
n
.
setState
({
isPhone
:
!
0
})},
n
.
handleToConfirmPhone
=
function
(
e
,
t
){
n
.
handleToHideWindow
(
"isPhone"
),
n
.
setState
({
confirmInfo
:{
params
:
e
,
bindInfo
:
t
},
isConfirm
:
!
0
})},
n
.
successBindPhone
=
function
(){
n
.
setState
({
isPhone
:
!
1
,
isConfirm
:
!
1
});
var
e
=
n
.
state
,
t
=
e
.
teams
,
a
=
e
.
splitInfo
,
s
=
n
.
fetchCurrentTeamId
(
t
),
i
=
t
.
map
((
function
(
e
){
return
e
.
id
==
s
?(
e
.
bind_address
&&
n
.
handleToBindAddress
(),
Object
.
assign
({},
e
,{
bind_phone
:
!
1
})):
e
}));
n
.
setState
({
teams
:
i
,
splitInfo
:
Object
.
assign
({},
a
,{
bind_phone
:
!
1
})})},
n
.
toSplitTreasure
=
function
(
e
){
v
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/split_treasure"
),
e
).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
200
===
a
?(
n
.
showSuccessSplit
(
s
),
n
.
successSplitTreasure
(
s
),
s
.
bind_phone
?
setTimeout
((
function
(){
n
.
handleToBindPhone
(
s
.
id
)}),
500
):
s
.
bind_address
&&
setTimeout
((
function
(){
n
.
handleToBindAddress
(
s
.
id
,
s
.
prize_name
)}),
500
)):
12
e3
===
a
?
n
.
handleToBindPhone
():
12001
===
a
&&
n
.
handleToBindAddress
()}))},
n
.
successSplitTreasure
=
function
(
e
){
var
t
=
n
.
props
.
userInfo
,
a
=
n
.
state
.
teams
.
map
((
function
(
a
){
return
a
.
id
==
e
.
id
?
Object
.
assign
({},
a
,{
bind_phone
:
e
.
bind_phone
,
bind_address
:
e
.
bind_address
,
is_open
:
!
0
,
prize_type
:
e
.
prize_type
,
prize_data
:
e
.
prize_data
,
member
:
a
.
member
.
map
((
function
(
a
){
return
a
.
uid
==
t
.
uid
?
Object
.
assign
({},
a
,{
is_open
:
!
0
,
prize_name
:
e
.
prize_name
}):
a
}))}):
a
}));
n
.
initNoSplitInfo
(
a
),
n
.
setState
({
teams
:
a
,
splitInfo
:
e
,
prizeName
:
e
.
prize_name
})},
n
.
showSuccessSplit
=
function
(
e
){
n
.
setState
({
isSplit
:
!
0
,
splitInfo
:
e
})},
n
.
handleToBindAddress
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:
""
;
if
(
e
)
if
(
t
)
n
.
setState
({
prizeName
:
t
});
else
{
var
a
=
n
.
state
.
teams
,
s
=
a
.
filter
((
function
(
t
){
return
t
.
id
==
e
}));
s
.
length
>
0
&&
n
.
setState
({
prizeName
:
s
[
0
].
prize_name
})}
n
.
setState
({
isAddress
:
!
0
})},
n
.
successBindAddress
=
function
(){
n
.
setState
({
isAddress
:
!
1
});
var
e
=
n
.
state
,
t
=
e
.
teams
,
a
=
e
.
splitInfo
,
s
=
n
.
fetchCurrentTeamId
(
t
),
i
=
t
.
map
((
function
(
e
){
return
e
.
id
==
s
?
Object
.
assign
({},
e
,{
bind_address
:
!
1
}):
e
}));
n
.
setState
({
teams
:
i
,
splitInfo
:
Object
.
assign
({},
a
,{
bind_address
:
!
1
})})},
n
.
fetchMyTreasure
=
function
(){
v
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/my"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
200
===
a
&&
(
n
.
setState
({
rule
:
s
.
rule
}),
Array
.
isArray
(
s
.
team
)
&&
s
.
team
.
length
>
0
?(
n
.
initNoSplitInfo
(
s
.
team
),
n
.
judgeIsHaveId
(
s
.
team
),
n
.
isShowBindPhone
(
s
.
team
),
n
.
initPrizeName
(
s
.
team
),
n
.
setState
({
isEmpty
:
!
1
,
teams
:
s
.
team
})):
n
.
setState
({
isEmpty
:
!
0
}))}))},
n
.
initNoSplitInfo
=
function
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:[];
e
.
length
>
0
&&
n
.
setState
({
ids
:
e
.
filter
((
function
(
e
){
return
!
e
.
is_open
&&
2
===
e
.
status
})).
map
((
function
(
e
){
return
{
team_num
:
e
.
team_num
,
owner_uid
:
e
.
captain_uid
}}))})},
n
.
fetchActivityStatus
=
function
(){
v
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
if
(
200
===
a
){
if
(
0
===
Number
(
s
.
treasure_stage
))
return
void
n
.
props
.
history
.
push
(
"/"
);
0
===
s
.
treasure_stage
&&
n
.
startCountDown
(),
n
.
setState
({
isEnd
:
0
===
s
.
treasure_stage
,
treasureTime
:
s
.
treasure_stop_date
})}}))},
n
.
startCountDown
=
function
(){
var
e
=
n
.
props
.
history
,
t
=
n
.
state
.
seconds
;
n
.
timer
&&
clearInterval
(
n
.
timer
),
n
.
setState
({
seconds
:
t
--
}),
n
.
timer
=
setInterval
((
function
(){
n
.
setState
({
seconds
:
t
--
}),
0
===
t
&&
(
n
.
setState
({
seconds
:
0
}),
clearInterval
(
n
.
timer
),
Object
(
v
.
c
)(
"version"
)?
e
.
push
(
"/year/yearIndex?version="
.
concat
(
Object
(
v
.
c
)(
"version"
))):
e
.
push
(
"/year/yearIndex"
))}),
1
e3
)},
n
.
handleToInvite
=
function
(
e
){
Object
(
v
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
e
,
"&origin=1&version="
).
concat
(
Object
(
v
.
c
)(
"version"
))):
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
e
,
"&origin=1"
))},
n
.
toOrganizeTeam
=
function
(){
var
e
=
n
.
props
,
t
=
e
.
history
,
a
=
e
.
userInfo
.
uid
;
""
===
(
void
0
===
a
?
""
:
a
)?
t
.
push
(
"/passport"
):
v
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
if
(
200
===
a
){
var
i
=
[];
i
[
0
]
=
s
,
n
.
setState
({
isEmpty
:
!
1
,
teams
:
i
,
isCreate
:
!
0
,
createInfo
:
s
})}}))},
n
.
toComposeCoupon
=
function
(){
var
e
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toCoupon"
):
e
.
push
(
"/coupons/my-patch"
)},
n
.
toUseCoupon
=
function
(
e
){
var
t
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toCourse"
,
e
):
t
.
push
(
"/detail?id="
.
concat
(
e
))},
n
.
toCourseList
=
function
(){
var
e
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toQualityCourse"
):
e
.
push
(
"/classify"
)},
n
.
toFecthMoney
=
function
(){
var
e
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toAccount"
):
e
.
push
(
"/scholarship"
)},
n
.
handleToHideWindow
=
function
(
e
){
var
t
=
{};
t
[
e
]
=!
1
,
n
.
setState
(
t
)},
n
.
state
=
{
isEnd
:
!
1
,
isEmpty
:
!
1
,
seconds
:
3
,
teams
:[],
ids
:[],
bindInfo
:{},
isPhone
:
!
1
,
isAddress
:
!
1
,
isConfirm
:
!
1
,
confirmInfo
:{},
isSplit
:
!
1
,
isCreate
:
!
1
,
createInfo
:{},
prizeName
:
""
,
treasureTime
:
""
},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
fetchMyTreasure
(),
this
.
fetchActivityStatus
(),
document
.
title
=
"
\
u
7cbd
\
u5b50
\
u8282
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66AI
\
u8bfe
\
u7a0b
\
uff0c
\
u73b0
\
u91d1
\
u7ea2
\
u5305
\
uff0c
\
u4eac
\
u4e1c
\
u8d2d
\
u7269
\
u5361
\
u9001
\
u4e0d
\
u505c
\
uff01-
\
u4e03
\
u6708
\
u5728
\
u7ebf"
}},{
key
:
"componentWillReceiveProps"
,
value
:
function
(
e
){
var
t
=
this
.
props
.
history
;
e
.
userInfo
.
uid
?
this
.
fetchMyTreasure
():
t
.
push
(
"/passport"
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
,
a
=
t
.
history
,
n
=
t
.
userInfo
,
s
=
t
.
country
,
i
=
this
.
state
,
r
=
i
.
isEnd
,
o
=
i
.
isEmpty
,
c
=
i
.
seconds
,
m
=
i
.
teams
,
_
=
i
.
ids
,
b
=
i
.
isPhone
,
g
=
i
.
isAddress
,
T
=
i
.
isConfirm
,
C
=
i
.
isSplit
,
j
=
i
.
splitInfo
,
O
=
void
0
===
j
?{}:
j
,
S
=
i
.
confirmInfo
,
k
=
S
.
params
,
P
=
void
0
===
k
?{}:
k
,
B
=
S
.
bindInfo
,
A
=
void
0
===
B
?{}:
B
,
z
=
i
.
isCreate
,
w
=
i
.
createInfo
,
M
=
i
.
prizeName
,
F
=
i
.
rule
,
H
=
i
.
treasureTime
;
return
l
.
a
.
createElement
(
"div"
,{
"data-skip"
:
"treasure"
},
!
v
.
b
.
isAndroidApp
&&!
v
.
b
.
isIOSApp
&&
l
.
a
.
createElement
(
d
.
e
,{
title
:
"
\
u6211
\
u7684
\
u5b9d
\
u7bb1"
,
arrow
:
!
0
}),
r
&&
l
.
a
.
createElement
(
"div"
,{
className
:
"team-empty"
},
l
.
a
.
createElement
(
"p"
,{
className
:
"activity-end__desc"
},
"
\
u6d3b
\
u52a8
\
u5df2
\
u7ed3
\
u675f"
,
l
.
a
.
createElement
(
"br"
,
null
),
c
,
"s
\
u540e
\
u5c06
\
u81ea
\
u52a8
\
u8fd4
\
u56de
\
u9996
\
u9875"
)),
!
r
&&
o
&&
l
.
a
.
createElement
(
"div"
,{
className
:
"team-empty"
},
l
.
a
.
createElement
(
"i"
,{
className
:
"team-empty__icon"
}),
l
.
a
.
createElement
(
"p"
,{
className
:
"team-empty__desc"
},
"
\
u60a8
\
u5f53
\
u524d
\
u8fd8
\
u6ca1
\
u6709
\
u5b9d
\
u7bb1
\
u54e6~"
),
l
.
a
.
createElement
(
"p"
,{
className
:
"team-empty__desc"
},
"
\
u5feb
\
u53bb
\
u7ec4
\
u961f
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
u5427
\
uff01"
),
l
.
a
.
createElement
(
"button"
,{
className
:
"team-empty__button"
,
onClick
:
this
.
toOrganizeTeam
},
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
)),
!
r
&&!
o
&&
n
.
uid
&&
l
.
a
.
createElement
(
"div"
,{
className
:
"treasure-content"
},
m
.
map
((
function
(
t
,
s
){
return
l
.
a
.
createElement
(
E
,{
data
:
t
,
key
:
s
,
userInfo
:
n
,
history
:
a
,
splitInstance
:
e
.
splitInstance
,
toSplitTreasure
:
function
(){
return
e
.
toSplitTreasure
({
team_num
:
t
.
team_num
,
owner_uid
:
t
.
captain_uid
})}},
l
.
a
.
createElement
(
y
,{
data
:{
bind_phone
:
t
.
bind_phone
,
bind_address
:
t
.
bind_address
,
prize_type
:
t
.
prize_type
},
handleToBindPhone
:
e
.
handleToBindPhone
,
handleToBindAddress
:
function
(){
return
e
.
handleToBindAddress
(
t
.
id
)},
toComposeCoupon
:
e
.
toComposeCoupon
,
toUseCoupon
:
function
(){
return
e
.
toUseCoupon
(
t
.
prize_data
)},
toCourseList
:
e
.
toCourseList
,
toFecthMoney
:
e
.
toFecthMoney
}))})),
l
.
a
.
createElement
(
I
,{
visible
:
C
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isSplit"
)}},
l
.
a
.
createElement
(
N
,{
ids
:
_
,
data
:
O
,
handleToInvite
:
function
(){
return
e
.
handleToInvite
(
O
.
treasure_code
)},
handleToBindPhone
:
this
.
handleToBindPhone
,
handleToBindAddress
:
this
.
handleToBindAddress
,
successSplitTreasure
:
this
.
successSplitTreasure
},
l
.
a
.
createElement
(
y
,{
data
:
O
,
handleToBindPhone
:
this
.
handleToBindPhone
,
handleToBindAddress
:
this
.
handleToBindAddress
,
toComposeCoupon
:
this
.
toComposeCoupon
,
toUseCoupon
:
function
(){
return
e
.
toUseCoupon
(
O
.
prize_data
)},
toCourseList
:
this
.
toCourseList
,
toFecthMoney
:
this
.
toFecthMoney
}))),
l
.
a
.
createElement
(
I
,{
visible
:
b
,
className
:
"popup-bind-phone"
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isPhone"
)}},
l
.
a
.
createElement
(
p
.
a
,{
history
:
a
,
country
:
s
,
hideBindPhone
:
function
(){
return
e
.
handleToHideWindow
(
"isPhone"
)},
handleToConfirmPhone
:
this
.
handleToConfirmPhone
,
successBindPhone
:
this
.
successBindPhone
,
desc
:
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"p"
,{
className
:
"phone-treasure__desc"
},
"
\
u606d
\
u559c
\
u60a8
\
u83b7
\
u5f97 "
,
M
),
l
.
a
.
createElement
(
"p"
,{
className
:
"phone-treasure__notice"
},
"
\
u4e3a
\
u4e86
\
u60a8
\
u7684
\
u8d26
\
u6237
\
u5b89
\
u5168
\
uff0c
\
u8bf7
\
u4e8e"
,
H
,
"
\
u524d
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7
\
uff0c
\
u8fc7
\
u671f
\
u5c06
\
u5931
\
u6548"
))})),
l
.
a
.
createElement
(
I
,{
visible
:
T
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isConfirm"
)}},
l
.
a
.
createElement
(
h
.
a
,{
data
:
P
,
bindInfo
:
A
,
handleToCancle
:
function
(){
return
e
.
handleToHideWindow
(
"isConfirm"
)},
successBindPhone
:
this
.
successBindPhone
})),
l
.
a
.
createElement
(
I
,{
visible
:
g
,
className
:
"popup-bind-address"
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isAddress"
)}},
l
.
a
.
createElement
(
u
.
a
,{
skip
:
"year"
,
tip
:
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"p"
,{
className
:
"address-treasure__desc"
},
"
\
u606d
\
u559c
\
u60a8
\
u83b7
\
u5f97 "
,
M
),
l
.
a
.
createElement
(
"p"
,{
className
:
"address-treasure__notice"
},
"
\
u8bf7
\
u53ca
\
u65f6
\
u586b
\
u5199/
\
u786e
\
u8ba4
\
u6536
\
u8d27
\
u4fe1
\
u606f
\
uff0c
\
u6d3b
\
u52a8
\
u7ed3
\
u675f
\
u540e
\
u7edf
\
u4e00
\
u90ae
\
u5bc4"
)),
successBindAddress
:
this
.
successBindAddress
})),
l
.
a
.
createElement
(
I
,{
visible
:
z
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isCreate"
)}},
l
.
a
.
createElement
(
f
,{
data
:
w
,
handleToInvite
:
function
(){
e
.
handleToInvite
(
w
.
treasure_code
),
e
.
handleToHideWindow
(
"isCreate"
)}}))),
F
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"div"
,{
className
:
"activity-rule__header"
},
l
.
a
.
createElement
(
"i"
,{
className
:
"activity-rule__decorate"
}),
l
.
a
.
createElement
(
"h2"
,{
className
:
"activity-rule__title"
},
"
\
u6d3b
\
u52a8
\
u89c4
\
u5219"
),
l
.
a
.
createElement
(
"i"
,{
className
:
"activity-rule__decorate"
})),
l
.
a
.
createElement
(
"div"
,{
className
:
"activity-rule__body"
,
dangerouslySetInnerHTML
:{
__html
:
F
}})))}}]),
a
}(
c
.
Component
))
||
n
);
t
.
default
=
j
},
584
:
function
(
e
,
t
,
a
){
"use strict"
;
a
(
36
);
var
n
=
a
(
10
),
s
=
a
.
n
(
n
),
i
=
a
(
4
),
r
=
a
(
3
),
o
=
a
(
5
),
c
=
a
(
6
),
l
=
a
(
7
),
m
=
a
(
0
),
d
=
a
.
n
(
m
),
u
=
a
(
1
),
p
=
a
(
16
),
h
=
(
a
(
585
),
function
(
e
){
Object
(
c
.
a
)(
a
,
e
);
var
t
=
Object
(
l
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
r
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
fetchUserAddress
=
function
(){
var
e
=
n
.
state
.
addressInfo
;
u
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user_address_info"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
s
=
a
.
code
,
i
=
a
.
data
;
200
===
s
&&
n
.
setState
({
addressInfo
:
Object
.
assign
({},
e
,{
name
:
i
.
name
,
phone
:
i
.
phone
,
address
:
i
.
address
}),
isLoading
:
!
0
})}))},
n
.
handleToSubmit
=
function
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
t
=
n
.
props
.
successBindAddress
;
u
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/update_address"
),
Object
(
i
.
a
)({
act_type
:
"treasure"
},
e
)).
then
((
function
(
e
){
var
a
=
e
.
data
,
n
=
a
.
code
,
i
=
a
.
msg
;
200
===
n
?
t
():
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
n
.
state
=
{
isLoading
:
!
1
,
addressInfo
:{
name
:
""
,
phone
:
""
,
address
:
""
}},
n
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
fetchUserAddress
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
isLoading
,
n
=
t
.
addressInfo
,
s
=
this
.
props
,
r
=
s
.
tip
,
o
=
s
.
prize
,
c
=
s
.
skip
,
l
=
void
0
===
c
?
"default"
:
c
;
return
d
.
a
.
createElement
(
d
.
a
.
Fragment
,
null
,
a
&&
d
.
a
.
createElement
(
p
.
d
,{
initialValues
:
Object
(
i
.
a
)({},
n
),
validate
:
function
(
e
){
var
t
=
e
.
name
,
a
=
e
.
phone
,
n
=
e
.
address
,
s
=
{};
return
t
||
(
s
.
name
=
"
\
u8bf7
\
u8f93
\
u5165
\
u6536
\
u4ef6
\
u4eba"
),
/^1
[
3-9
]\d{9}
$/
.
test
(
a
)
||
(
s
.
phone
=
"
\
u8bf7
\
u586b
\
u5199
\
u6b63
\
u786e
\
u683c
\
u5f0f
\
u7684
\
u624b
\
u673a
\
u53f7"
),
n
||
(
s
.
address
=
"
\
u8bf7
\
u8f93
\
u5165
\
u6536
\
u8d27
\
u5730
\
u5740"
),
s
},
validateOnBlur
:
!
1
,
validateOnChange
:
!
1
,
onSubmit
:
function
(
t
){
e
.
handleToSubmit
(
t
)}},(
function
(
e
){
var
t
=
e
.
errors
;
return
d
.
a
.
createElement
(
p
.
c
,{
className
:
"address-form"
,
"data-skip"
:
l
},
d
.
a
.
createElement
(
"h2"
,{
className
:
"address-form__title"
},
"
\
u6536
\
u8d27
\
u4fe1
\
u606f"
),
o
?
d
.
a
.
createElement
(
"p"
,{
className
:
"address__prize"
},
"
\
u60a8
\
u62bd
\
u4e2d
\
u4e86"
,
d
.
a
.
createElement
(
"span"
,{
style
:{
color
:
"#FF4000"
}},
o
)):
null
,
r
?
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__subtitle"
},
r
):
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__desc"
},
"
\
u8bf7
\
u53ca
\
u65f6
\
u586b
\
u5199
\
u6536
\
u8d27
\
u4fe1
\
u606f
\
uff0c
\
u83b7
\
u5f97
\
u5b9e
\
u7269
\
u5956
\
u54c1
\
u540e
\
u5c06
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u4e3a
\
u60a8
\
u90ae
\
u5bc4"
),
d
.
a
.
createElement
(
p
.
b
,{
name
:
"name"
,
render
:
function
(
e
){
var
a
=
e
.
field
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__item"
},
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
a
,{
className
:
"address-form__ipt"
,
type
:
"text"
,
placeholder
:
"
\
u6536
\
u4ef6
\
u4eba"
})),
t
.
name
&&
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__tip"
},
t
.
name
))}}),
d
.
a
.
createElement
(
p
.
b
,{
name
:
"phone"
,
render
:
function
(
e
){
var
a
=
e
.
field
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__item"
},
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
a
,{
className
:
"address-form__ipt"
,
type
:
"text"
,
placeholder
:
"
\
u8054
\
u7cfb
\
u65b9
\
u5f0f"
})),
t
.
phone
&&
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__tip"
},
t
.
phone
))}}),
d
.
a
.
createElement
(
p
.
b
,{
name
:
"address"
,
render
:
function
(
e
){
var
a
=
e
.
field
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__item"
},
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
a
,{
className
:
"address-form__ipt"
,
type
:
"text"
,
placeholder
:
"
\
u6536
\
u8d27
\
u5730
\
u5740"
})),
t
.
address
&&
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__tip"
},
t
.
address
))}}),
d
.
a
.
createElement
(
"button"
,{
className
:
"address-form__submit"
,
"data-status"
:
"do"
,
type
:
"submit"
},
"
\
u63d0
\
u4ea4"
))})))}}]),
a
}(
m
.
Component
));
t
.
a
=
h
},
585
:
function
(
e
,
t
,
a
){},
586
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
4
),
s
=
(
a
(
36
),
a
(
10
)),
i
=
a
.
n
(
s
),
r
=
a
(
3
),
o
=
a
(
5
),
c
=
a
(
6
),
l
=
a
(
7
),
m
=
a
(
0
),
d
=
a
.
n
(
m
),
u
=
a
(
16
),
p
=
a
(
37
),
h
=
a
(
141
),
f
=
a
(
1
),
_
=
(
a
(
587
),
function
(
e
){
Object
(
c
.
a
)(
a
,
e
);
var
t
=
Object
(
l
.
a
)(
a
);
function
a
(
e
){
var
s
;
return
Object
(
r
.
a
)(
this
,
a
),(
s
=
t
.
call
(
this
,
e
)).
captchaInstance
=
null
,
s
.
initCountryInfo
=
function
(){
var
e
=
s
.
props
.
country
;
s
.
setState
({
country
:
e
})},
s
.
toFetchCountryNum
=
function
(){
var
e
=
s
.
props
,
t
=
e
.
history
;(
0
,
e
.
hideBindPhone
)(),
t
.
push
(
"/country?from=bind"
)},
s
.
getCaptchaInstance
=
function
(
e
){
s
.
captchaInstance
=
e
},
s
.
onVerify
=
function
(
e
){
s
.
setState
({
validate
:
!
0
,
validationData
:
e
})},
s
.
handleToSend
=
function
(
e
){
var
t
=
e
.
tel
,
a
=
(
e
.
code
,
s
.
state
),
r
=
a
.
validate
,
o
=
a
.
seconds
,
c
=
a
.
validationData
,
l
=
a
.
isFirst
,
m
=
a
.
isTimer
,
d
=
a
.
country
.
num
,
u
=
void
0
===
d
?
"86"
:
d
;
if
(
r
){
if
(
!
l
)
return
i
.
a
.
info
(
"
\
u8bf7
\
u91cd
\
u65b0
\
u8fdb
\
u884c
\
u6ed1
\
u5757
\
u9a8c
\
u8bc1"
,
2
,
null
,
!
1
),
s
.
captchaInstance
.
reset
(),
void
s
.
setState
({
isFirst
:
!
0
});
m
||
(
t
?
/^
\d
+$/
.
test
(
t
)?
f
.
f
.
post
(
""
.
concat
(
API
[
"passport-api"
],
"/m/personal/bindPhoneSendCode"
),
Object
(
n
.
a
)({
area_code
:
"00"
.
concat
(
u
),
phone_num
:
t
},
c
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
errno
,
n
=
t
.
msg
;
200
===
a
?(
i
.
a
.
info
(
"
\
u9a8c
\
u8bc1
\
u7801
\
u53d1
\
u9001
\
u6210
\
u529f"
,
2
,
null
,
!
1
),
s
.
timer
=
window
.
setInterval
((
function
(){
o
<=
0
?(
window
.
clearInterval
(
s
.
timer
),
s
.
setState
({
isTimer
:
!
1
,
seconds
:
60
})):
s
.
setState
({
isTimer
:
!
0
,
seconds
:
--
o
})}),
1
e3
),
s
.
setState
({
isFirst
:
!
1
})):
i
.
a
.
info
(
n
,
2
,
null
,
!
1
)})):
i
.
a
.
info
(
"
\
u8bf7
\
u8f93
\
u5165
\
u6b63
\
u786e
\
u683c
\
u5f0f
\
u7684
\
u624b
\
u673a
\
u53f7
\
u7801"
,
2
,
null
,
!
1
):
i
.
a
.
info
(
"
\
u624b
\
u673a
\
u53f7
\
u7801
\
u4e0d
\
u80fd
\
u4e3a
\
u7a7a"
,
2
,
null
,
!
1
))}
return
!
1
},
s
.
toBindPhone
=
function
(){
var
e
=
s
.
state
,
t
=
e
.
accountInfo
,
a
=
t
.
tel
,
r
=
t
.
code
,
o
=
e
.
country
.
num
,
c
=
void
0
===
o
?
"86"
:
o
,
l
=
s
.
props
,
m
=
l
.
handleToConfirmPhone
,
d
=
l
.
successBindPhone
,
u
=
{
area_code
:
"00"
.
concat
(
c
),
mobile
:
a
,
code
:
r
,
act_type
:
"treasure"
};
f
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/v2/user/bindMobile"
),
Object
(
n
.
a
)(
Object
(
n
.
a
)({},
u
),{},{
type
:
1
,
is_valid
:
1
})).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
,
s
=
t
.
msg
;
200
===
a
?
n
.
tip_info
?
m
(
u
,
n
.
tip_info
):
d
():
i
.
a
.
info
(
s
,
2
,
null
,
!
1
)}))},
s
.
state
=
{
validate
:
""
,
seconds
:
60
,
isFirst
:
!
0
,
timer
:
null
,
isTimer
:
!
1
,
accountInfo
:{},
bindInfo
:{},
country
:{
num
:
"86"
},
validationData
:
null
},
s
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
initCountryInfo
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
,
a
=
t
.
desc
,
s
=
t
.
skip
,
i
=
void
0
===
s
?
"year"
:
s
,
r
=
this
.
state
,
o
=
r
.
country
,
c
=
r
.
validate
,
l
=
r
.
isTimer
,
m
=
r
.
seconds
;
return
d
.
a
.
createElement
(
u
.
d
,{
initialValues
:{
tel
:
""
,
code
:
""
},
validate
:
function
(
e
){
var
t
=
e
.
tel
,
a
=
e
.
code
,
n
=
{};
return
/^
\d
+$/
.
test
(
t
)
||
(
n
.
tel
=
"
\
u8bf7
\
u586b
\
u5199
\
u6b63
\
u786e
\
u683c
\
u5f0f
\
u7684
\
u624b
\
u673a
\
u53f7"
),
/
[
0-9
]{6}
/
.
test
(
a
)
||
(
n
.
code
=
"
\
u8bf7
\
u8f93
\
u5165
\
u9a8c
\
u8bc1
\
u7801"
),
n
},
onSubmit
:
function
(
t
,
a
){
a
.
setStatus
,
a
.
setSubmitting
;
e
.
setState
({
accountInfo
:
Object
(
n
.
a
)({},
t
)}),
e
.
toBindPhone
()}},(
function
(
t
){
var
n
=
t
.
values
,
s
=
n
.
tel
,
r
=
n
.
code
,
f
=
t
.
errors
;
return
d
.
a
.
createElement
(
u
.
c
,{
className
:
"popup-form"
,
"data-skip"
:
i
},
d
.
a
.
createElement
(
"h2"
,{
className
:
"popup-form__title"
},
"
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7"
),
a
&&
d
.
a
.
createElement
(
"div"
,{
className
:
"poup-form__desc"
},
a
),
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-form__item"
},
d
.
a
.
createElement
(
"a"
,{
className
:
"popup-form__button--num"
,
onClick
:
e
.
toFetchCountryNum
},
"+"
,
o
.
num
,
d
.
a
.
createElement
(
"i"
,{
className
:
"iconfont iconiconfront-69"
})),
d
.
a
.
createElement
(
u
.
b
,{
name
:
"tel"
,
render
:
function
(
e
){
var
t
=
e
.
field
;
return
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
t
,{
className
:
"popup-form__ipt"
,
"data-type"
:
"tel"
,
type
:
"text"
,
placeholder
:
"
\
u8bf7
\
u586b
\
u5199
\
u624b
\
u673a
\
u53f7"
}))}})),
d
.
a
.
createElement
(
h
.
a
,{
getInstance
:
e
.
getCaptchaInstance
,
onVerify
:
e
.
onVerify
,
mb
:
15
}),
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-form__item"
},
d
.
a
.
createElement
(
u
.
b
,{
name
:
"code"
,
render
:
function
(
e
){
var
t
=
e
.
field
;
return
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
t
,{
className
:
"popup-form__ipt popup-form__ipt--left"
,
type
:
"text"
,
placeholder
:
"
\
u8f93
\
u5165
\
u9a8c
\
u8bc1
\
u7801"
}))}}),
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-form__button--code"
,
"data-status"
:
c
&&!
l
?
"do"
:
""
,
type
:
"button"
,
onClick
:
function
(){
return
e
.
handleToSend
({
tel
:
s
,
code
:
r
})}},
l
?
"
\
u91cd
\
u65b0
\
u53d1
\
u9001"
.
concat
(
m
,
"s"
):
"
\
u53d1
\
u9001
\
u9a8c
\
u8bc1
\
u7801"
)),
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-form__button--bundle"
,
"data-status"
:
s
&&
r
&&
Object
(
p
.
isEmpty
)(
f
)?
"do"
:
"done"
,
type
:
"submit"
},
"
\
u5b8c
\
u6210
\
u7ed1
\
u5b9a"
))}))}}]),
a
}(
m
.
Component
));
t
.
a
=
_
},
587
:
function
(
e
,
t
,
a
){},
588
:
function
(
e
,
t
,
a
){
"use strict"
;
a
(
36
);
var
n
=
a
(
10
),
s
=
a
.
n
(
n
),
i
=
a
(
4
),
r
=
a
(
3
),
o
=
a
(
5
),
c
=
a
(
6
),
l
=
a
(
7
),
m
=
a
(
0
),
d
=
a
.
n
(
m
),
u
=
a
(
1
),
p
=
(
a
(
589
),
function
(
e
){
Object
(
c
.
a
)(
a
,
e
);
var
t
=
Object
(
l
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
r
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
o
=
new
Array
(
n
),
c
=
0
;
c
<
n
;
c
++
)
o
[
c
]
=
arguments
[
c
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
o
))).
continueBindPhone
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
data
,
n
=
t
.
successBindPhone
;
u
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/v2/user/bindMobile"
),
Object
(
i
.
a
)(
Object
(
i
.
a
)({},
a
),{},{
type
:
1
,
is_valid
:
0
})).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
i
=
t
.
msg
;
200
===
a
?
n
():
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
bindInfo
,
a
=
void
0
===
t
?{}:
t
,
n
=
e
.
desc
,
s
=
e
.
skip
,
i
=
void
0
===
s
?
"year"
:
s
,
r
=
e
.
handleToCancle
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-bind"
,
"data-skip"
:
i
},
d
.
a
.
createElement
(
"h2"
,{
className
:
"popup-bind__title"
},
"
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7"
),
n
?
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-bind__desc"
},
n
):
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__desc"
},
"
\
u8be5
\
u624b
\
u673a
\
u53f7
\
u5df2
\
u7ed1
\
u5b9a
\
u5230
\
u4ee5
\
u4e0b
\
u8d26
\
u53f7
\
uff0c
\
u7ee7
\
u7eed
\
u7ed1
\
u5b9a
\
u5c06
\
u89e3
\
u9664
\
u4ee5
\
u4e0b
\
u7ed1
\
u5b9a
\
u72b6
\
u6001"
),
d
.
a
.
createElement
(
"ul"
,{
className
:
"popup-bind__list"
},
a
.
email
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"mail"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
email
)),
a
.
wechat_nickname
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"wachat"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
wechat_nickname
)),
a
.
qq_nickname
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"qq"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
qq_nickname
)),
a
.
sina_nickname
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"sina"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
sina_nickname
))),
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-bind__footer"
},
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-bind__button popup-bind__button--cancle"
,
onClick
:
r
},
"
\
u53d6
\
u6d88"
),
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-bind__button popup-bind__button--confirm"
,
onClick
:
this
.
continueBindPhone
},
"
\
u7ee7
\
u7eed
\
u7ed1
\
u5b9a"
)))}}]),
a
}(
m
.
Component
));
t
.
a
=
p
},
589
:
function
(
e
,
t
,
a
){}}]);
(
this
[
"webpackJsonpmr-julyedu"
]
=
this
[
"webpackJsonpmr-julyedu"
]
||
[]).
push
([[
47
],{
1079
:
function
(
e
,
t
,
a
){},
1080
:
function
(
e
,
t
,
a
){},
1081
:
function
(
e
,
t
,
a
){},
1082
:
function
(
e
,
t
,
a
){},
1083
:
function
(
e
,
t
,
a
){},
1084
:
function
(
e
,
t
,
a
){},
1192
:
function
(
e
,
t
,
a
){
"use strict"
;
a
.
r
(
t
);
var
n
,
s
=
a
(
3
),
i
=
a
(
5
),
r
=
a
(
6
),
o
=
a
(
7
),
c
=
a
(
0
),
l
=
a
.
n
(
c
),
m
=
a
(
20
),
d
=
a
(
25
),
u
=
a
(
584
),
p
=
a
(
586
),
h
=
a
(
588
),
f
=
(
a
(
1079
),
function
(
e
){
console
.
log
(
e
);
var
t
=
e
.
data
,
a
=
t
.
team_num
,
n
=
void
0
===
a
?
1
:
a
,
s
=
t
.
lack_member
,
i
=
void
0
===
s
?
4
:
s
,
r
=
t
.
member
,
o
=
void
0
===
r
?[]:
r
,
c
=
e
.
handleToInvite
,
m
=
new
Array
(
5
).
fill
({});
return
l
.
a
.
createElement
(
"div"
,{
className
:
"team-success"
},
l
.
a
.
createElement
(
"h2"
,{
className
:
"team-success__title"
},
"
\
u521b
\
u5efa
\
u6210
\
u529f"
),
l
.
a
.
createElement
(
"p"
,{
className
:
"team-success__tip"
},
l
.
a
.
createElement
(
"span"
,
null
,
n
),
"
\
u53f7
\
u961f
\
u4f0d
\
u8fd8
\
u5dee"
,
l
.
a
.
createElement
(
"span"
,
null
,
i
),
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6~"
),
l
.
a
.
createElement
(
"i"
,{
className
:
"team-success__icon"
}),
l
.
a
.
createElement
(
"ul"
,{
className
:
"team-success__member members"
},
m
.
map
((
function
(
e
,
t
){
var
a
=
o
[
t
];
return
l
.
a
.
createElement
(
"li"
,{
className
:
"member-item"
,
key
:
t
},
a
&&
a
.
is_captain
&&
l
.
a
.
createElement
(
"sup"
,{
className
:
"member-item__captain"
},
"
\
u961f
\
u957f"
),
l
.
a
.
createElement
(
"img"
,{
className
:
"member-item__avatar"
,
src
:
a
?
a
.
head_img
:
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png"
,
alt
:
""
}))}))),
l
.
a
.
createElement
(
"button"
,{
type
:
"button"
,
className
:
"team-success__button"
,
onClick
:
c
},
"
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u52a0
\
u5165
\
u961f
\
u4f0d"
))}),
_
=
a
(
17
),
b
=
a
.
n
(
_
),
v
=
(
a
(
1080
),
a
(
1
)),
E
=
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
s
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
initMemberInfo
=
function
(){
for
(
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
t
=
n
.
props
,
a
=
t
.
data
,
s
=
t
.
userInfo
,
i
=
"{}"
!==
JSON
.
stringify
(
e
)?
e
:
a
,
r
=
i
.
member
,
o
=
r
.
length
-
5
;
o
<
0
;
o
++
)
r
.
push
({});
n
.
setState
({
team
:
Object
.
assign
({},
i
,{
member
:
r
}),
currentMember
:
s
.
uid
?
r
.
filter
((
function
(
e
){
return
e
.
uid
==
s
.
uid
}))[
0
]:{}})},
n
.
computedClass
=
function
(
e
){
var
t
=
n
.
props
.
data
.
is_open
,
a
=
n
.
state
.
currentMember
;
return
b
()(
"team-member__item"
,{
active
:
e
===
a
.
uid
&&
t
})},
n
.
computedBg
=
function
(
e
){
return
e
?{
backgroundImage
:
"url("
.
concat
(
e
,
")"
)}:{}},
n
.
toCheckPrize
=
function
(
e
){
var
t
=
n
.
state
.
team
,
a
=
t
.
is_open
,
s
=
t
.
member
;
if
(
a
){
var
i
=
(
void
0
===
s
?[]:
s
).
filter
((
function
(
t
){
return
t
.
uid
===
e
}));
n
.
setState
({
currentMember
:
i
[
0
]})}},
n
.
state
=
{
team
:{},
currentMember
:{}},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
initMemberInfo
()}},{
key
:
"componentWillReceiveProps"
,
value
:
function
(
e
){
var
t
=
this
.
props
.
data
,
a
=
e
.
data
;
a
.
is_open
!=
t
.
is_open
&&
this
.
initMemberInfo
(
a
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
team
,
n
=
a
.
is_captain
,
s
=
a
.
status
,
i
=
a
.
team_num
,
r
=
a
.
lack_member
,
o
=
a
.
is_open
,
c
=
a
.
treasure_code
,
m
=
a
.
member
,
d
=
void
0
===
m
?[]:
m
,
u
=
t
.
currentMember
,
p
=
this
.
props
,
h
=
p
.
toSplitTreasure
,
f
=
p
.
userInfo
,
_
=
p
.
children
;
return
l
.
a
.
createElement
(
"div"
,{
className
:
"team-container"
,
"data-skip"
:
"team"
},
!
n
&&
l
.
a
.
createElement
(
"i"
,{
className
:
"team-friend"
},
"
\
u53cb"
),
1
===
s
?
l
.
a
.
createElement
(
"i"
,{
className
:
"team-status"
},
"
\
u7ec4
\
u961f
\
u4e2d.."
):
l
.
a
.
createElement
(
"i"
,{
className
:
"team-decorate"
}),
n
?
l
.
a
.
createElement
(
"h2"
,{
className
:
"team-title"
},
i
,
"
\
u53f7
\
u961f
\
u4f0d"
):
l
.
a
.
createElement
(
"h2"
,{
className
:
"team-title"
},
"
\
u597d
\
u53cb
\
u961f
\
u4f0d"
),
1
===
s
?
l
.
a
.
createElement
(
"p"
,{
className
:
"team-desc"
},
"
\
u8fd8
\
u5dee"
,
r
,
"
\
u540d
\
u961f
\
u5458
\
u5373
\
u53ef
\
u83b7
\
u5f97
\
u5b9d
\
u7bb1
\
u54e6
\
uff5e"
):
l
.
a
.
createElement
(
"p"
,{
className
:
"team-desc"
},
"
\
u7ec4
\
u961f
\
u6210
\
u529f"
),
l
.
a
.
createElement
(
"div"
,{
className
:
"team-member"
},
d
.
map
((
function
(
t
,
a
){
return
l
.
a
.
createElement
(
"div"
,{
className
:
e
.
computedClass
(
t
.
uid
),
onClick
:
function
(){
return
e
.
toCheckPrize
(
t
.
uid
)},
key
:
a
,
style
:
e
.
computedBg
(
t
.
head_img
)},
t
.
is_captain
&&
l
.
a
.
createElement
(
"span"
,{
className
:
"team-member__captain"
},
"
\
u961f
\
u957f"
))}))),
l
.
a
.
createElement
(
"div"
,{
className
:
"team-footer"
,
"data-layout"
:
o
?
"column"
:
"row"
},
1
===
s
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
Object
(
v
.
c
)(
"version"
)?
n
?
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=1&version="
).
concat
(
Object
(
v
.
c
)(
"version"
))},
"
\
u7ee7
\
u7eed
\
u9080
\
u8bf7
\
u961f
\
u53cb"
):
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=2&version="
).
concat
(
Object
(
v
.
c
)(
"version"
))},
"
\
u5e2e
\
u597d
\
u53cb
\
u5b8c
\
u6210
\
u7ec4
\
u961f"
):
n
?
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=1"
)},
"
\
u7ee7
\
u7eed
\
u9080
\
u8bf7
\
u961f
\
u53cb"
):
l
.
a
.
createElement
(
"a"
,{
className
:
"team-button"
,
href
:
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
c
,
"&origin=2"
)},
"
\
u5e2e
\
u597d
\
u53cb
\
u5b8c
\
u6210
\
u7ec4
\
u961f"
)),
2
===
s
&&!
o
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"span"
,{
className
:
"team-icon"
,
"data-direction"
:
"left"
}),
l
.
a
.
createElement
(
"span"
,{
className
:
"team-button--split"
,
onClick
:
h
}),
l
.
a
.
createElement
(
"span"
,{
className
:
"team-icon"
,
"data-direction"
:
"right"
})),
2
===
s
&&
o
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
u
.
prize_name
?
l
.
a
.
createElement
(
"p"
,{
className
:
"team-prize"
},
u
.
prize_name
):
l
.
a
.
createElement
(
"p"
,{
className
:
"team-prize"
},
"
\
u5c1a
\
u672a
\
u5f00
\
u5b9d
\
u7bb1"
),
u
.
uid
==
f
.
uid
?
_
:
null
)))}}]),
a
}(
c
.
Component
),
y
=
(
a
(
1081
),
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
bind_phone
,
n
=
t
.
bind_address
,
s
=
t
.
prize_type
,
i
=
e
.
handleToBindPhone
,
r
=
e
.
handleToBindAddress
,
o
=
e
.
toComposeCoupon
,
c
=
e
.
toUseCoupon
,
m
=
e
.
toCourseList
,
d
=
e
.
toFecthMoney
;
return
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
a
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
i
},
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7"
)),
!
a
&&
n
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
r
},
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u67e5
\
u770b/
\
u4fee
\
u6539
\
u6536
\
u8d27
\
u4fe1
\
u606f"
)),
!
a
&&!
n
&&
1
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
r
},
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u67e5
\
u770b/
\
u4fee
\
u6539
\
u6536
\
u8d27
\
u4fe1
\
u606f"
)),
!
a
&&!
n
&&
6
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
o
},
"
\
u53ef
\
u5408
\
u6210
\
u4ee3
\
u91d1
\
u5238
\
u5728
\
u8d2d
\
u8bfe
\
u65f6
\
u4f7f
\
u7528
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u5408
\
u6210"
)),
!
a
&&!
n
&&
3
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
c
},
"
\
u5df2
\
u53d1
\
u653e
\
u81f3
\
u60a8
\
u7684
\
u8d26
\
u6237
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u4f7f
\
u7528"
)),
!
a
&&!
n
&&
4
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
m
},
"
\
u5df2
\
u53d1
\
u653e
\
u81f3
\
u60a8
\
u7684
\
u8d26
\
u6237
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u4f7f
\
u7528"
)),
!
a
&&!
n
&&
7
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
,
onClick
:
d
},
"
\
u5df2
\
u5b58
\
u5165
\
u60a8
\
u7684
\
u8d26
\
u6237
\
uff0c"
,
l
.
a
.
createElement
(
"span"
,
null
,
"
\
u53bb
\
u63d0
\
u73b0"
)),
!
a
&&!
n
&&
2
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
},
"
\
u5df2
\
u53d1
\
u653e
\
u81f3
\
u60a8
\
u7684
\
u8d26
\
u6237"
),
!
a
&&!
n
&&
5
===
s
&&
l
.
a
.
createElement
(
"a"
,{
className
:
"team-result"
},
"
\
u65e0
\
u6cd5
\
u9886
\
u53d6
\
u8bf7
\
u6dfb
\
u52a0
\
u5fae
\
u4fe1
\
uff1ajulyedukefu10"
))}),
N
=
(
a
(
1082
),
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
s
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
i
=
new
Array
(
n
),
r
=
0
;
r
<
n
;
r
++
)
i
[
r
]
=
arguments
[
r
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
i
))).
computedBg
=
function
(
e
){
return
e
?{
backgroundImage
:
"url("
.
concat
(
e
,
")"
)}:{}},
e
.
continueSplitTreasure
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
ids
,
n
=
t
.
successSplitTreasure
,
s
=
t
.
handleToBindPhone
,
i
=
t
.
handleToBindAddress
,
r
=
a
[
0
];
v
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/split_treasure"
),
r
).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
r
=
t
.
data
;
200
===
a
?(
n
(
r
),
r
.
bind_phone
?
setTimeout
((
function
(){
s
(
r
.
id
)}),
500
):
r
.
bind_address
&&
setTimeout
((
function
(){
i
(
r
.
id
,
r
.
prize_name
)}),
500
)):
12
e3
===
a
?
s
():
12001
===
a
&&
i
()}))},
e
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
,
a
=
t
.
ids
,
n
=
t
.
data
,
s
=
n
.
member
,
i
=
void
0
===
s
?[]:
s
,
r
=
n
.
prize_img
,
o
=
n
.
prize_name
,
c
=
t
.
handleToInvite
,
m
=
t
.
children
;
return
l
.
a
.
createElement
(
"div"
,{
"data-skip"
:
"split"
},
l
.
a
.
createElement
(
"h2"
,{
className
:
"split-success__title"
},
"
\
u606d
\
u559c
\
u4f60
\
u83b7
\
u5f97"
),
l
.
a
.
createElement
(
"div"
,{
className
:
"split-success__image"
},
l
.
a
.
createElement
(
"img"
,{
src
:
r
,
alt
:
""
})),
l
.
a
.
createElement
(
"p"
,{
className
:
"split-success__prize"
},
o
),
m
,
l
.
a
.
createElement
(
"div"
,{
className
:
"split-success__member"
},
i
.
map
((
function
(
t
,
a
){
return
l
.
a
.
createElement
(
"div"
,{
className
:
"member-item"
,
key
:
a
},
l
.
a
.
createElement
(
"span"
,{
className
:
"member-item__avatar"
,
style
:
e
.
computedBg
(
t
.
avatar
)},
t
.
is_captain
&&
l
.
a
.
createElement
(
"i"
,{
className
:
"member-item__captain"
},
"
\
u961f
\
u957f"
)),
t
.
prize
?
l
.
a
.
createElement
(
"span"
,{
className
:
"member-item__prize"
},
t
.
prize
):
l
.
a
.
createElement
(
"span"
,{
className
:
"member-item__prize"
},
"
\
u5c1a
\
u672a
\
u5f00
\
u5b9d
\
u7bb1"
))}))),
a
.
length
>
0
?
l
.
a
.
createElement
(
"button"
,{
className
:
"split-success__jump"
,
onClick
:
this
.
continueSplitTreasure
},
"
\
u7ee7
\
u7eed
\
u5f00
\
u5b9d
\
u7bb1"
):
l
.
a
.
createElement
(
"button"
,{
className
:
"split-success__jump"
,
onClick
:
c
},
"
\
u7ee7
\
u7eed
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
))}}]),
a
}(
c
.
Component
)),
g
=
a
(
22
),
T
=
a
.
n
(
g
),
C
=
(
a
(
1083
),
document
.
querySelector
(
"body"
)),
I
=
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
s
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
el
||
(
n
.
el
=
document
.
createElement
(
"div"
)),
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
C
.
appendChild
(
this
.
el
)}},{
key
:
"componentWillUnmount"
,
value
:
function
(){
C
.
removeChild
(
this
.
el
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
visible
,
a
=
e
.
handleToHide
,
n
=
e
.
className
;
return
t
?
T
.
a
.
createPortal
(
l
.
a
.
createElement
(
"div"
,{
className
:
"mask"
},
l
.
a
.
createElement
(
"div"
,{
className
:
b
()(
"mask-content"
,
n
)},
this
.
props
.
children
),
l
.
a
.
createElement
(
"div"
,{
className
:
"mask-footer"
},
l
.
a
.
createElement
(
"i"
,{
className
:
"mask-button__close"
,
onClick
:
a
}))),
this
.
el
):
null
}}]),
a
}(
c
.
Component
),
j
=
(
a
(
1084
),
Object
(
m
.
b
)((
function
(
e
){
return
{
country
:
e
.
country
,
userInfo
:
e
.
user
.
data
}}))(
n
=
function
(
e
){
Object
(
r
.
a
)(
a
,
e
);
var
t
=
Object
(
o
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
s
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
popupInstance
=
null
,
n
.
initPrizeName
=
function
(
e
){
var
t
=
n
.
fetchCurrentTeamId
(
e
),
a
=
e
.
filter
((
function
(
e
){
return
e
.
id
==
t
}));
a
.
length
>
0
&&
n
.
setState
({
prizeName
:
a
[
0
].
prize_name
})},
n
.
judgeIsHaveId
=
function
(
e
){
var
t
=
Object
(
v
.
c
)(
"id"
);
if
(
t
){
var
a
=
e
.
filter
((
function
(
e
){
return
e
.
id
==
t
}));
if
(
a
.
length
>
0
){
var
s
=
{
team_num
:
a
[
0
].
team_num
,
owner_uid
:
a
[
0
].
captain_uid
};
n
.
toSplitTreasure
(
s
)}}},
n
.
fetchCurrentTeamId
=
function
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:[],
t
=
e
.
filter
((
function
(
e
){
return
e
.
is_open
&&
(
e
.
bind_phone
||
e
.
bind_address
)}));
return
t
.
length
>
0
?
t
[
0
].
id
:
""
},
n
.
isShowBindPhone
=
function
(
e
){
if
(
n
.
props
.
country
.
from
){
var
t
=
n
.
fetchCurrentTeamId
(
e
);
n
.
handleToBindPhone
(
t
)}},
n
.
handleToBindPhone
=
function
(
e
){
n
.
setState
({
isPhone
:
!
0
})},
n
.
handleToConfirmPhone
=
function
(
e
,
t
){
n
.
handleToHideWindow
(
"isPhone"
),
n
.
setState
({
confirmInfo
:{
params
:
e
,
bindInfo
:
t
},
isConfirm
:
!
0
})},
n
.
successBindPhone
=
function
(){
n
.
setState
({
isPhone
:
!
1
,
isConfirm
:
!
1
});
var
e
=
n
.
state
,
t
=
e
.
teams
,
a
=
e
.
splitInfo
,
s
=
n
.
fetchCurrentTeamId
(
t
),
i
=
t
.
map
((
function
(
e
){
return
e
.
id
==
s
?(
e
.
bind_address
&&
n
.
handleToBindAddress
(),
Object
.
assign
({},
e
,{
bind_phone
:
!
1
})):
e
}));
n
.
setState
({
teams
:
i
,
splitInfo
:
Object
.
assign
({},
a
,{
bind_phone
:
!
1
})})},
n
.
toSplitTreasure
=
function
(
e
){
v
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/split_treasure"
),
e
).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
200
===
a
?(
n
.
showSuccessSplit
(
s
),
n
.
successSplitTreasure
(
s
),
s
.
bind_phone
?
setTimeout
((
function
(){
n
.
handleToBindPhone
(
s
.
id
)}),
500
):
s
.
bind_address
&&
setTimeout
((
function
(){
n
.
handleToBindAddress
(
s
.
id
,
s
.
prize_name
)}),
500
)):
12
e3
===
a
?
n
.
handleToBindPhone
():
12001
===
a
&&
n
.
handleToBindAddress
()}))},
n
.
successSplitTreasure
=
function
(
e
){
var
t
=
n
.
props
.
userInfo
,
a
=
n
.
state
.
teams
.
map
((
function
(
a
){
return
a
.
id
==
e
.
id
?
Object
.
assign
({},
a
,{
bind_phone
:
e
.
bind_phone
,
bind_address
:
e
.
bind_address
,
is_open
:
!
0
,
prize_type
:
e
.
prize_type
,
prize_data
:
e
.
prize_data
,
member
:
a
.
member
.
map
((
function
(
a
){
return
a
.
uid
==
t
.
uid
?
Object
.
assign
({},
a
,{
is_open
:
!
0
,
prize_name
:
e
.
prize_name
}):
a
}))}):
a
}));
n
.
initNoSplitInfo
(
a
),
n
.
setState
({
teams
:
a
,
splitInfo
:
e
,
prizeName
:
e
.
prize_name
})},
n
.
showSuccessSplit
=
function
(
e
){
n
.
setState
({
isSplit
:
!
0
,
splitInfo
:
e
})},
n
.
handleToBindAddress
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:
""
;
if
(
e
)
if
(
t
)
n
.
setState
({
prizeName
:
t
});
else
{
var
a
=
n
.
state
.
teams
,
s
=
a
.
filter
((
function
(
t
){
return
t
.
id
==
e
}));
s
.
length
>
0
&&
n
.
setState
({
prizeName
:
s
[
0
].
prize_name
})}
n
.
setState
({
isAddress
:
!
0
})},
n
.
successBindAddress
=
function
(){
n
.
setState
({
isAddress
:
!
1
});
var
e
=
n
.
state
,
t
=
e
.
teams
,
a
=
e
.
splitInfo
,
s
=
n
.
fetchCurrentTeamId
(
t
),
i
=
t
.
map
((
function
(
e
){
return
e
.
id
==
s
?
Object
.
assign
({},
e
,{
bind_address
:
!
1
}):
e
}));
n
.
setState
({
teams
:
i
,
splitInfo
:
Object
.
assign
({},
a
,{
bind_address
:
!
1
})})},
n
.
fetchMyTreasure
=
function
(){
v
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/my"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
200
===
a
&&
(
n
.
setState
({
rule
:
s
.
rule
}),
Array
.
isArray
(
s
.
team
)
&&
s
.
team
.
length
>
0
?(
n
.
initNoSplitInfo
(
s
.
team
),
n
.
judgeIsHaveId
(
s
.
team
),
n
.
isShowBindPhone
(
s
.
team
),
n
.
initPrizeName
(
s
.
team
),
n
.
setState
({
isEmpty
:
!
1
,
teams
:
s
.
team
})):
n
.
setState
({
isEmpty
:
!
0
}))}))},
n
.
initNoSplitInfo
=
function
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:[];
e
.
length
>
0
&&
n
.
setState
({
ids
:
e
.
filter
((
function
(
e
){
return
!
e
.
is_open
&&
2
===
e
.
status
})).
map
((
function
(
e
){
return
{
team_num
:
e
.
team_num
,
owner_uid
:
e
.
captain_uid
}}))})},
n
.
fetchActivityStatus
=
function
(){
v
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/activity/stage"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
if
(
200
===
a
){
if
(
0
===
Number
(
s
.
treasure_stage
))
return
void
n
.
props
.
history
.
push
(
"/"
);
0
===
s
.
treasure_stage
&&
n
.
startCountDown
(),
n
.
setState
({
isEnd
:
0
===
s
.
treasure_stage
,
treasureTime
:
s
.
treasure_stop_date
})}}))},
n
.
startCountDown
=
function
(){
var
e
=
n
.
props
.
history
,
t
=
n
.
state
.
seconds
;
n
.
timer
&&
clearInterval
(
n
.
timer
),
n
.
setState
({
seconds
:
t
--
}),
n
.
timer
=
setInterval
((
function
(){
n
.
setState
({
seconds
:
t
--
}),
0
===
t
&&
(
n
.
setState
({
seconds
:
0
}),
clearInterval
(
n
.
timer
),
Object
(
v
.
c
)(
"version"
)?
e
.
push
(
"/year/yearIndex?version="
.
concat
(
Object
(
v
.
c
)(
"version"
))):
e
.
push
(
"/year/yearIndex"
))}),
1
e3
)},
n
.
handleToInvite
=
function
(
e
){
Object
(
v
.
c
)(
"version"
)?
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
e
,
"&origin=1&version="
).
concat
(
Object
(
v
.
c
)(
"version"
))):
window
.
location
.
assign
(
"https://h5.julyedu.com/box/landing?treasure_code="
.
concat
(
e
,
"&origin=1"
))},
n
.
toOrganizeTeam
=
function
(){
var
e
=
n
.
props
,
t
=
e
.
history
,
a
=
e
.
userInfo
.
uid
;
""
===
(
void
0
===
a
?
""
:
a
)?
t
.
push
(
"/passport"
):
v
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/treasure/createMyTeam"
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
s
=
t
.
data
;
if
(
200
===
a
){
var
i
=
[];
i
[
0
]
=
s
,
n
.
setState
({
isEmpty
:
!
1
,
teams
:
i
,
isCreate
:
!
0
,
createInfo
:
s
})}}))},
n
.
toComposeCoupon
=
function
(){
var
e
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toCoupon"
):
e
.
push
(
"/coupons/my-patch"
)},
n
.
toUseCoupon
=
function
(
e
){
var
t
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toCourse"
,
e
):
t
.
push
(
"/detail?id="
.
concat
(
e
))},
n
.
toCourseList
=
function
(){
var
e
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toQualityCourse"
):
e
.
push
(
"/classify"
)},
n
.
toFecthMoney
=
function
(){
var
e
=
n
.
props
.
history
;
Object
(
v
.
c
)(
"version"
)?
Object
(
v
.
a
)(
"toAccount"
):
e
.
push
(
"/scholarship"
)},
n
.
handleToHideWindow
=
function
(
e
){
var
t
=
{};
t
[
e
]
=!
1
,
n
.
setState
(
t
)},
n
.
state
=
{
isEnd
:
!
1
,
isEmpty
:
!
1
,
seconds
:
3
,
teams
:[],
ids
:[],
bindInfo
:{},
isPhone
:
!
1
,
isAddress
:
!
1
,
isConfirm
:
!
1
,
confirmInfo
:{},
isSplit
:
!
1
,
isCreate
:
!
1
,
createInfo
:{},
prizeName
:
""
,
treasureTime
:
""
},
n
}
return
Object
(
i
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
fetchMyTreasure
(),
this
.
fetchActivityStatus
(),
document
.
title
=
"
\
u
0041
\
u0049
\
u5145
\
u7535
\
u5b63
\
uff0c
\
u5f00
\
u5b9d
\
u7bb1
\
u514d
\
u8d39
\
u5b66
\
u6b63
\
u4ef7
\
u8bfe
\
uff0c
\
u0032
\
u0030
\
u0030
\
u672c
\
u7eb8
\
u8d28
\
u4e66
\
u7b49
\
u5305
\
u90ae
\
u9001
\
uff01
\
u002d
\
u4e03
\
u6708
\
u5728
\
u7ebf"
}},{
key
:
"componentWillReceiveProps"
,
value
:
function
(
e
){
var
t
=
this
.
props
.
history
;
e
.
userInfo
.
uid
?
this
.
fetchMyTreasure
():
t
.
push
(
"/passport"
)}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
,
a
=
t
.
history
,
n
=
t
.
userInfo
,
s
=
t
.
country
,
i
=
this
.
state
,
r
=
i
.
isEnd
,
o
=
i
.
isEmpty
,
c
=
i
.
seconds
,
m
=
i
.
teams
,
_
=
i
.
ids
,
b
=
i
.
isPhone
,
g
=
i
.
isAddress
,
T
=
i
.
isConfirm
,
C
=
i
.
isSplit
,
j
=
i
.
splitInfo
,
O
=
void
0
===
j
?{}:
j
,
S
=
i
.
confirmInfo
,
k
=
S
.
params
,
P
=
void
0
===
k
?{}:
k
,
B
=
S
.
bindInfo
,
A
=
void
0
===
B
?{}:
B
,
z
=
i
.
isCreate
,
w
=
i
.
createInfo
,
M
=
i
.
prizeName
,
F
=
i
.
rule
,
H
=
i
.
treasureTime
;
return
l
.
a
.
createElement
(
"div"
,{
"data-skip"
:
"treasure"
},
!
v
.
b
.
isAndroidApp
&&!
v
.
b
.
isIOSApp
&&
l
.
a
.
createElement
(
d
.
e
,{
title
:
"
\
u6211
\
u7684
\
u5b9d
\
u7bb1"
,
arrow
:
!
0
}),
r
&&
l
.
a
.
createElement
(
"div"
,{
className
:
"team-empty"
},
l
.
a
.
createElement
(
"p"
,{
className
:
"activity-end__desc"
},
"
\
u6d3b
\
u52a8
\
u5df2
\
u7ed3
\
u675f"
,
l
.
a
.
createElement
(
"br"
,
null
),
c
,
"s
\
u540e
\
u5c06
\
u81ea
\
u52a8
\
u8fd4
\
u56de
\
u9996
\
u9875"
)),
!
r
&&
o
&&
l
.
a
.
createElement
(
"div"
,{
className
:
"team-empty"
},
l
.
a
.
createElement
(
"i"
,{
className
:
"team-empty__icon"
}),
l
.
a
.
createElement
(
"p"
,{
className
:
"team-empty__desc"
},
"
\
u60a8
\
u5f53
\
u524d
\
u8fd8
\
u6ca1
\
u6709
\
u5b9d
\
u7bb1
\
u54e6~"
),
l
.
a
.
createElement
(
"p"
,{
className
:
"team-empty__desc"
},
"
\
u5feb
\
u53bb
\
u7ec4
\
u961f
\
u9080
\
u8bf7
\
u597d
\
u53cb
\
u4e00
\
u8d77
\
u5f00
\
u5b9d
\
u7bb1
\
u5427
\
uff01"
),
l
.
a
.
createElement
(
"button"
,{
className
:
"team-empty__button"
,
onClick
:
this
.
toOrganizeTeam
},
"
\
u7ec4
\
u961f
\
u5f00
\
u5b9d
\
u7bb1"
)),
!
r
&&!
o
&&
n
.
uid
&&
l
.
a
.
createElement
(
"div"
,{
className
:
"treasure-content"
},
m
.
map
((
function
(
t
,
s
){
return
l
.
a
.
createElement
(
E
,{
data
:
t
,
key
:
s
,
userInfo
:
n
,
history
:
a
,
splitInstance
:
e
.
splitInstance
,
toSplitTreasure
:
function
(){
return
e
.
toSplitTreasure
({
team_num
:
t
.
team_num
,
owner_uid
:
t
.
captain_uid
})}},
l
.
a
.
createElement
(
y
,{
data
:{
bind_phone
:
t
.
bind_phone
,
bind_address
:
t
.
bind_address
,
prize_type
:
t
.
prize_type
},
handleToBindPhone
:
e
.
handleToBindPhone
,
handleToBindAddress
:
function
(){
return
e
.
handleToBindAddress
(
t
.
id
)},
toComposeCoupon
:
e
.
toComposeCoupon
,
toUseCoupon
:
function
(){
return
e
.
toUseCoupon
(
t
.
prize_data
)},
toCourseList
:
e
.
toCourseList
,
toFecthMoney
:
e
.
toFecthMoney
}))})),
l
.
a
.
createElement
(
I
,{
visible
:
C
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isSplit"
)}},
l
.
a
.
createElement
(
N
,{
ids
:
_
,
data
:
O
,
handleToInvite
:
function
(){
return
e
.
handleToInvite
(
O
.
treasure_code
)},
handleToBindPhone
:
this
.
handleToBindPhone
,
handleToBindAddress
:
this
.
handleToBindAddress
,
successSplitTreasure
:
this
.
successSplitTreasure
},
l
.
a
.
createElement
(
y
,{
data
:
O
,
handleToBindPhone
:
this
.
handleToBindPhone
,
handleToBindAddress
:
this
.
handleToBindAddress
,
toComposeCoupon
:
this
.
toComposeCoupon
,
toUseCoupon
:
function
(){
return
e
.
toUseCoupon
(
O
.
prize_data
)},
toCourseList
:
this
.
toCourseList
,
toFecthMoney
:
this
.
toFecthMoney
}))),
l
.
a
.
createElement
(
I
,{
visible
:
b
,
className
:
"popup-bind-phone"
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isPhone"
)}},
l
.
a
.
createElement
(
p
.
a
,{
history
:
a
,
country
:
s
,
hideBindPhone
:
function
(){
return
e
.
handleToHideWindow
(
"isPhone"
)},
handleToConfirmPhone
:
this
.
handleToConfirmPhone
,
successBindPhone
:
this
.
successBindPhone
,
desc
:
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"p"
,{
className
:
"phone-treasure__desc"
},
"
\
u606d
\
u559c
\
u60a8
\
u83b7
\
u5f97 "
,
M
),
l
.
a
.
createElement
(
"p"
,{
className
:
"phone-treasure__notice"
},
"
\
u4e3a
\
u4e86
\
u60a8
\
u7684
\
u8d26
\
u6237
\
u5b89
\
u5168
\
uff0c
\
u8bf7
\
u4e8e"
,
H
,
"
\
u524d
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7
\
uff0c
\
u8fc7
\
u671f
\
u5c06
\
u5931
\
u6548"
))})),
l
.
a
.
createElement
(
I
,{
visible
:
T
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isConfirm"
)}},
l
.
a
.
createElement
(
h
.
a
,{
data
:
P
,
bindInfo
:
A
,
handleToCancle
:
function
(){
return
e
.
handleToHideWindow
(
"isConfirm"
)},
successBindPhone
:
this
.
successBindPhone
})),
l
.
a
.
createElement
(
I
,{
visible
:
g
,
className
:
"popup-bind-address"
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isAddress"
)}},
l
.
a
.
createElement
(
u
.
a
,{
skip
:
"year"
,
tip
:
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"p"
,{
className
:
"address-treasure__desc"
},
"
\
u606d
\
u559c
\
u60a8
\
u83b7
\
u5f97 "
,
M
),
l
.
a
.
createElement
(
"p"
,{
className
:
"address-treasure__notice"
},
"
\
u8bf7
\
u53ca
\
u65f6
\
u586b
\
u5199/
\
u786e
\
u8ba4
\
u6536
\
u8d27
\
u4fe1
\
u606f
\
uff0c
\
u6d3b
\
u52a8
\
u7ed3
\
u675f
\
u540e
\
u7edf
\
u4e00
\
u90ae
\
u5bc4"
)),
successBindAddress
:
this
.
successBindAddress
})),
l
.
a
.
createElement
(
I
,{
visible
:
z
,
handleToHide
:
function
(){
return
e
.
handleToHideWindow
(
"isCreate"
)}},
l
.
a
.
createElement
(
f
,{
data
:
w
,
handleToInvite
:
function
(){
e
.
handleToInvite
(
w
.
treasure_code
),
e
.
handleToHideWindow
(
"isCreate"
)}}))),
F
&&
l
.
a
.
createElement
(
l
.
a
.
Fragment
,
null
,
l
.
a
.
createElement
(
"div"
,{
className
:
"activity-rule__header"
},
l
.
a
.
createElement
(
"i"
,{
className
:
"activity-rule__decorate"
}),
l
.
a
.
createElement
(
"h2"
,{
className
:
"activity-rule__title"
},
"
\
u6d3b
\
u52a8
\
u89c4
\
u5219"
),
l
.
a
.
createElement
(
"i"
,{
className
:
"activity-rule__decorate"
})),
l
.
a
.
createElement
(
"div"
,{
className
:
"activity-rule__body"
,
dangerouslySetInnerHTML
:{
__html
:
F
}})))}}]),
a
}(
c
.
Component
))
||
n
);
t
.
default
=
j
},
584
:
function
(
e
,
t
,
a
){
"use strict"
;
a
(
36
);
var
n
=
a
(
10
),
s
=
a
.
n
(
n
),
i
=
a
(
4
),
r
=
a
(
3
),
o
=
a
(
5
),
c
=
a
(
6
),
l
=
a
(
7
),
m
=
a
(
0
),
d
=
a
.
n
(
m
),
u
=
a
(
1
),
p
=
a
(
16
),
h
=
(
a
(
585
),
function
(
e
){
Object
(
c
.
a
)(
a
,
e
);
var
t
=
Object
(
l
.
a
)(
a
);
function
a
(
e
){
var
n
;
return
Object
(
r
.
a
)(
this
,
a
),(
n
=
t
.
call
(
this
,
e
)).
fetchUserAddress
=
function
(){
var
e
=
n
.
state
.
addressInfo
;
u
.
f
.
get
(
""
.
concat
(
API
.
home
,
"/sys/user_address_info"
)).
then
((
function
(
t
){
var
a
=
t
.
data
,
s
=
a
.
code
,
i
=
a
.
data
;
200
===
s
&&
n
.
setState
({
addressInfo
:
Object
.
assign
({},
e
,{
name
:
i
.
name
,
phone
:
i
.
phone
,
address
:
i
.
address
}),
isLoading
:
!
0
})}))},
n
.
handleToSubmit
=
function
(){
var
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
t
=
n
.
props
.
successBindAddress
;
u
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/update_address"
),
Object
(
i
.
a
)({
act_type
:
"treasure"
},
e
)).
then
((
function
(
e
){
var
a
=
e
.
data
,
n
=
a
.
code
,
i
=
a
.
msg
;
200
===
n
?
t
():
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
n
.
state
=
{
isLoading
:
!
1
,
addressInfo
:{
name
:
""
,
phone
:
""
,
address
:
""
}},
n
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
fetchUserAddress
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
state
,
a
=
t
.
isLoading
,
n
=
t
.
addressInfo
,
s
=
this
.
props
,
r
=
s
.
tip
,
o
=
s
.
prize
,
c
=
s
.
skip
,
l
=
void
0
===
c
?
"default"
:
c
;
return
d
.
a
.
createElement
(
d
.
a
.
Fragment
,
null
,
a
&&
d
.
a
.
createElement
(
p
.
d
,{
initialValues
:
Object
(
i
.
a
)({},
n
),
validate
:
function
(
e
){
var
t
=
e
.
name
,
a
=
e
.
phone
,
n
=
e
.
address
,
s
=
{};
return
t
||
(
s
.
name
=
"
\
u8bf7
\
u8f93
\
u5165
\
u6536
\
u4ef6
\
u4eba"
),
/^1
[
3-9
]\d{9}
$/
.
test
(
a
)
||
(
s
.
phone
=
"
\
u8bf7
\
u586b
\
u5199
\
u6b63
\
u786e
\
u683c
\
u5f0f
\
u7684
\
u624b
\
u673a
\
u53f7"
),
n
||
(
s
.
address
=
"
\
u8bf7
\
u8f93
\
u5165
\
u6536
\
u8d27
\
u5730
\
u5740"
),
s
},
validateOnBlur
:
!
1
,
validateOnChange
:
!
1
,
onSubmit
:
function
(
t
){
e
.
handleToSubmit
(
t
)}},(
function
(
e
){
var
t
=
e
.
errors
;
return
d
.
a
.
createElement
(
p
.
c
,{
className
:
"address-form"
,
"data-skip"
:
l
},
d
.
a
.
createElement
(
"h2"
,{
className
:
"address-form__title"
},
"
\
u6536
\
u8d27
\
u4fe1
\
u606f"
),
o
?
d
.
a
.
createElement
(
"p"
,{
className
:
"address__prize"
},
"
\
u60a8
\
u62bd
\
u4e2d
\
u4e86"
,
d
.
a
.
createElement
(
"span"
,{
style
:{
color
:
"#FF4000"
}},
o
)):
null
,
r
?
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__subtitle"
},
r
):
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__desc"
},
"
\
u8bf7
\
u53ca
\
u65f6
\
u586b
\
u5199
\
u6536
\
u8d27
\
u4fe1
\
u606f
\
uff0c
\
u83b7
\
u5f97
\
u5b9e
\
u7269
\
u5956
\
u54c1
\
u540e
\
u5c06
\
u7b2c
\
u4e00
\
u65f6
\
u95f4
\
u4e3a
\
u60a8
\
u90ae
\
u5bc4"
),
d
.
a
.
createElement
(
p
.
b
,{
name
:
"name"
,
render
:
function
(
e
){
var
a
=
e
.
field
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__item"
},
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
a
,{
className
:
"address-form__ipt"
,
type
:
"text"
,
placeholder
:
"
\
u6536
\
u4ef6
\
u4eba"
})),
t
.
name
&&
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__tip"
},
t
.
name
))}}),
d
.
a
.
createElement
(
p
.
b
,{
name
:
"phone"
,
render
:
function
(
e
){
var
a
=
e
.
field
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__item"
},
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
a
,{
className
:
"address-form__ipt"
,
type
:
"text"
,
placeholder
:
"
\
u8054
\
u7cfb
\
u65b9
\
u5f0f"
})),
t
.
phone
&&
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__tip"
},
t
.
phone
))}}),
d
.
a
.
createElement
(
p
.
b
,{
name
:
"address"
,
render
:
function
(
e
){
var
a
=
e
.
field
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"address-form__item"
},
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
a
,{
className
:
"address-form__ipt"
,
type
:
"text"
,
placeholder
:
"
\
u6536
\
u8d27
\
u5730
\
u5740"
})),
t
.
address
&&
d
.
a
.
createElement
(
"p"
,{
className
:
"address-form__tip"
},
t
.
address
))}}),
d
.
a
.
createElement
(
"button"
,{
className
:
"address-form__submit"
,
"data-status"
:
"do"
,
type
:
"submit"
},
"
\
u63d0
\
u4ea4"
))})))}}]),
a
}(
m
.
Component
));
t
.
a
=
h
},
585
:
function
(
e
,
t
,
a
){},
586
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
4
),
s
=
(
a
(
36
),
a
(
10
)),
i
=
a
.
n
(
s
),
r
=
a
(
3
),
o
=
a
(
5
),
c
=
a
(
6
),
l
=
a
(
7
),
m
=
a
(
0
),
d
=
a
.
n
(
m
),
u
=
a
(
16
),
p
=
a
(
37
),
h
=
a
(
141
),
f
=
a
(
1
),
_
=
(
a
(
587
),
function
(
e
){
Object
(
c
.
a
)(
a
,
e
);
var
t
=
Object
(
l
.
a
)(
a
);
function
a
(
e
){
var
s
;
return
Object
(
r
.
a
)(
this
,
a
),(
s
=
t
.
call
(
this
,
e
)).
captchaInstance
=
null
,
s
.
initCountryInfo
=
function
(){
var
e
=
s
.
props
.
country
;
s
.
setState
({
country
:
e
})},
s
.
toFetchCountryNum
=
function
(){
var
e
=
s
.
props
,
t
=
e
.
history
;(
0
,
e
.
hideBindPhone
)(),
t
.
push
(
"/country?from=bind"
)},
s
.
getCaptchaInstance
=
function
(
e
){
s
.
captchaInstance
=
e
},
s
.
onVerify
=
function
(
e
){
s
.
setState
({
validate
:
!
0
,
validationData
:
e
})},
s
.
handleToSend
=
function
(
e
){
var
t
=
e
.
tel
,
a
=
(
e
.
code
,
s
.
state
),
r
=
a
.
validate
,
o
=
a
.
seconds
,
c
=
a
.
validationData
,
l
=
a
.
isFirst
,
m
=
a
.
isTimer
,
d
=
a
.
country
.
num
,
u
=
void
0
===
d
?
"86"
:
d
;
if
(
r
){
if
(
!
l
)
return
i
.
a
.
info
(
"
\
u8bf7
\
u91cd
\
u65b0
\
u8fdb
\
u884c
\
u6ed1
\
u5757
\
u9a8c
\
u8bc1"
,
2
,
null
,
!
1
),
s
.
captchaInstance
.
reset
(),
void
s
.
setState
({
isFirst
:
!
0
});
m
||
(
t
?
/^
\d
+$/
.
test
(
t
)?
f
.
f
.
post
(
""
.
concat
(
API
[
"passport-api"
],
"/m/personal/bindPhoneSendCode"
),
Object
(
n
.
a
)({
area_code
:
"00"
.
concat
(
u
),
phone_num
:
t
},
c
)).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
errno
,
n
=
t
.
msg
;
200
===
a
?(
i
.
a
.
info
(
"
\
u9a8c
\
u8bc1
\
u7801
\
u53d1
\
u9001
\
u6210
\
u529f"
,
2
,
null
,
!
1
),
s
.
timer
=
window
.
setInterval
((
function
(){
o
<=
0
?(
window
.
clearInterval
(
s
.
timer
),
s
.
setState
({
isTimer
:
!
1
,
seconds
:
60
})):
s
.
setState
({
isTimer
:
!
0
,
seconds
:
--
o
})}),
1
e3
),
s
.
setState
({
isFirst
:
!
1
})):
i
.
a
.
info
(
n
,
2
,
null
,
!
1
)})):
i
.
a
.
info
(
"
\
u8bf7
\
u8f93
\
u5165
\
u6b63
\
u786e
\
u683c
\
u5f0f
\
u7684
\
u624b
\
u673a
\
u53f7
\
u7801"
,
2
,
null
,
!
1
):
i
.
a
.
info
(
"
\
u624b
\
u673a
\
u53f7
\
u7801
\
u4e0d
\
u80fd
\
u4e3a
\
u7a7a"
,
2
,
null
,
!
1
))}
return
!
1
},
s
.
toBindPhone
=
function
(){
var
e
=
s
.
state
,
t
=
e
.
accountInfo
,
a
=
t
.
tel
,
r
=
t
.
code
,
o
=
e
.
country
.
num
,
c
=
void
0
===
o
?
"86"
:
o
,
l
=
s
.
props
,
m
=
l
.
handleToConfirmPhone
,
d
=
l
.
successBindPhone
,
u
=
{
area_code
:
"00"
.
concat
(
c
),
mobile
:
a
,
code
:
r
,
act_type
:
"treasure"
};
f
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/v2/user/bindMobile"
),
Object
(
n
.
a
)(
Object
(
n
.
a
)({},
u
),{},{
type
:
1
,
is_valid
:
1
})).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
n
=
t
.
data
,
s
=
t
.
msg
;
200
===
a
?
n
.
tip_info
?
m
(
u
,
n
.
tip_info
):
d
():
i
.
a
.
info
(
s
,
2
,
null
,
!
1
)}))},
s
.
state
=
{
validate
:
""
,
seconds
:
60
,
isFirst
:
!
0
,
timer
:
null
,
isTimer
:
!
1
,
accountInfo
:{},
bindInfo
:{},
country
:{
num
:
"86"
},
validationData
:
null
},
s
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"componentDidMount"
,
value
:
function
(){
this
.
initCountryInfo
()}},{
key
:
"render"
,
value
:
function
(){
var
e
=
this
,
t
=
this
.
props
,
a
=
t
.
desc
,
s
=
t
.
skip
,
i
=
void
0
===
s
?
"year"
:
s
,
r
=
this
.
state
,
o
=
r
.
country
,
c
=
r
.
validate
,
l
=
r
.
isTimer
,
m
=
r
.
seconds
;
return
d
.
a
.
createElement
(
u
.
d
,{
initialValues
:{
tel
:
""
,
code
:
""
},
validate
:
function
(
e
){
var
t
=
e
.
tel
,
a
=
e
.
code
,
n
=
{};
return
/^
\d
+$/
.
test
(
t
)
||
(
n
.
tel
=
"
\
u8bf7
\
u586b
\
u5199
\
u6b63
\
u786e
\
u683c
\
u5f0f
\
u7684
\
u624b
\
u673a
\
u53f7"
),
/
[
0-9
]{6}
/
.
test
(
a
)
||
(
n
.
code
=
"
\
u8bf7
\
u8f93
\
u5165
\
u9a8c
\
u8bc1
\
u7801"
),
n
},
onSubmit
:
function
(
t
,
a
){
a
.
setStatus
,
a
.
setSubmitting
;
e
.
setState
({
accountInfo
:
Object
(
n
.
a
)({},
t
)}),
e
.
toBindPhone
()}},(
function
(
t
){
var
n
=
t
.
values
,
s
=
n
.
tel
,
r
=
n
.
code
,
f
=
t
.
errors
;
return
d
.
a
.
createElement
(
u
.
c
,{
className
:
"popup-form"
,
"data-skip"
:
i
},
d
.
a
.
createElement
(
"h2"
,{
className
:
"popup-form__title"
},
"
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7"
),
a
&&
d
.
a
.
createElement
(
"div"
,{
className
:
"poup-form__desc"
},
a
),
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-form__item"
},
d
.
a
.
createElement
(
"a"
,{
className
:
"popup-form__button--num"
,
onClick
:
e
.
toFetchCountryNum
},
"+"
,
o
.
num
,
d
.
a
.
createElement
(
"i"
,{
className
:
"iconfont iconiconfront-69"
})),
d
.
a
.
createElement
(
u
.
b
,{
name
:
"tel"
,
render
:
function
(
e
){
var
t
=
e
.
field
;
return
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
t
,{
className
:
"popup-form__ipt"
,
"data-type"
:
"tel"
,
type
:
"text"
,
placeholder
:
"
\
u8bf7
\
u586b
\
u5199
\
u624b
\
u673a
\
u53f7"
}))}})),
d
.
a
.
createElement
(
h
.
a
,{
getInstance
:
e
.
getCaptchaInstance
,
onVerify
:
e
.
onVerify
,
mb
:
15
}),
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-form__item"
},
d
.
a
.
createElement
(
u
.
b
,{
name
:
"code"
,
render
:
function
(
e
){
var
t
=
e
.
field
;
return
d
.
a
.
createElement
(
"input"
,
Object
.
assign
({},
t
,{
className
:
"popup-form__ipt popup-form__ipt--left"
,
type
:
"text"
,
placeholder
:
"
\
u8f93
\
u5165
\
u9a8c
\
u8bc1
\
u7801"
}))}}),
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-form__button--code"
,
"data-status"
:
c
&&!
l
?
"do"
:
""
,
type
:
"button"
,
onClick
:
function
(){
return
e
.
handleToSend
({
tel
:
s
,
code
:
r
})}},
l
?
"
\
u91cd
\
u65b0
\
u53d1
\
u9001"
.
concat
(
m
,
"s"
):
"
\
u53d1
\
u9001
\
u9a8c
\
u8bc1
\
u7801"
)),
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-form__button--bundle"
,
"data-status"
:
s
&&
r
&&
Object
(
p
.
isEmpty
)(
f
)?
"do"
:
"done"
,
type
:
"submit"
},
"
\
u5b8c
\
u6210
\
u7ed1
\
u5b9a"
))}))}}]),
a
}(
m
.
Component
));
t
.
a
=
_
},
587
:
function
(
e
,
t
,
a
){},
588
:
function
(
e
,
t
,
a
){
"use strict"
;
a
(
36
);
var
n
=
a
(
10
),
s
=
a
.
n
(
n
),
i
=
a
(
4
),
r
=
a
(
3
),
o
=
a
(
5
),
c
=
a
(
6
),
l
=
a
(
7
),
m
=
a
(
0
),
d
=
a
.
n
(
m
),
u
=
a
(
1
),
p
=
(
a
(
589
),
function
(
e
){
Object
(
c
.
a
)(
a
,
e
);
var
t
=
Object
(
l
.
a
)(
a
);
function
a
(){
var
e
;
Object
(
r
.
a
)(
this
,
a
);
for
(
var
n
=
arguments
.
length
,
o
=
new
Array
(
n
),
c
=
0
;
c
<
n
;
c
++
)
o
[
c
]
=
arguments
[
c
];
return
(
e
=
t
.
call
.
apply
(
t
,[
this
].
concat
(
o
))).
continueBindPhone
=
function
(){
var
t
=
e
.
props
,
a
=
t
.
data
,
n
=
t
.
successBindPhone
;
u
.
f
.
post
(
""
.
concat
(
API
.
home
,
"/sys/v2/user/bindMobile"
),
Object
(
i
.
a
)(
Object
(
i
.
a
)({},
a
),{},{
type
:
1
,
is_valid
:
0
})).
then
((
function
(
e
){
var
t
=
e
.
data
,
a
=
t
.
code
,
i
=
t
.
msg
;
200
===
a
?
n
():
s
.
a
.
info
(
i
,
2
,
null
,
!
1
)}))},
e
}
return
Object
(
o
.
a
)(
a
,[{
key
:
"render"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
bindInfo
,
a
=
void
0
===
t
?{}:
t
,
n
=
e
.
desc
,
s
=
e
.
skip
,
i
=
void
0
===
s
?
"year"
:
s
,
r
=
e
.
handleToCancle
;
return
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-bind"
,
"data-skip"
:
i
},
d
.
a
.
createElement
(
"h2"
,{
className
:
"popup-bind__title"
},
"
\
u7ed1
\
u5b9a
\
u624b
\
u673a
\
u53f7"
),
n
?
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-bind__desc"
},
n
):
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__desc"
},
"
\
u8be5
\
u624b
\
u673a
\
u53f7
\
u5df2
\
u7ed1
\
u5b9a
\
u5230
\
u4ee5
\
u4e0b
\
u8d26
\
u53f7
\
uff0c
\
u7ee7
\
u7eed
\
u7ed1
\
u5b9a
\
u5c06
\
u89e3
\
u9664
\
u4ee5
\
u4e0b
\
u7ed1
\
u5b9a
\
u72b6
\
u6001"
),
d
.
a
.
createElement
(
"ul"
,{
className
:
"popup-bind__list"
},
a
.
email
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"mail"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
email
)),
a
.
wechat_nickname
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"wachat"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
wechat_nickname
)),
a
.
qq_nickname
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"qq"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
qq_nickname
)),
a
.
sina_nickname
&&
d
.
a
.
createElement
(
"li"
,{
className
:
"popup-bind__account"
},
d
.
a
.
createElement
(
"i"
,{
className
:
"popup-bind__icon"
,
"data-plat"
:
"sina"
}),
d
.
a
.
createElement
(
"p"
,{
className
:
"popup-bind__account--name"
},
a
.
sina_nickname
))),
d
.
a
.
createElement
(
"div"
,{
className
:
"popup-bind__footer"
},
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-bind__button popup-bind__button--cancle"
,
onClick
:
r
},
"
\
u53d6
\
u6d88"
),
d
.
a
.
createElement
(
"button"
,{
className
:
"popup-bind__button popup-bind__button--confirm"
,
onClick
:
this
.
continueBindPhone
},
"
\
u7ee7
\
u7eed
\
u7ed1
\
u5b9a"
)))}}]),
a
}(
m
.
Component
));
t
.
a
=
p
},
589
:
function
(
e
,
t
,
a
){}}]);
//# sourceMappingURL=treasure-box-mybox.62baa8b8.chunk.js.map
//# sourceMappingURL=treasure-box-mybox.62baa8b8.chunk.js.map
\ No newline at end of file
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