Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
icbcRPG
Commits
3c49ee8d
Commit
3c49ee8d
authored
Dec 31, 2021
by
金理想
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页修改发布
parent
c32b93b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
index.html
project/public/index.html
+1
-0
main3.jsx
project/src/pages/main3/main3.jsx
+25
-1
No files found.
project/public/index.html
View file @
3c49ee8d
...
...
@@ -46,6 +46,7 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
CFG
.
endTime
=
new
Date
(
"2022/01/01 00:00:00"
).
getTime
();
window
.
shareUrl
=
location
.
origin
+
'/customShare/share?id=4609'
...
...
project/src/pages/main3/main3.jsx
View file @
3c49ee8d
...
...
@@ -50,8 +50,12 @@ class Main3 extends Component {
}
gotoURL
=
(
type
)
=>
{
console
.
log
(
"==========跳转======"
)
if
(
type
===
'renwudating'
)
{
//Toast('暂未开放,敬请期待')
// TODO 活动结束后不可点击
if
(
this
.
checkActivityEnd
())
return
;
ViewCtrl
.
showWin
(
Enum
.
Com
.
Task
);
return
;
}
...
...
@@ -61,9 +65,14 @@ class Main3 extends Component {
// getActivityInfo('HD046012GoVX3K3Crj')
// location.href="weixin://dl/business/?t=a2cQGEsrkda"
// getActivityInfo('HD046012Jbdn6NidNP')
// TODO 活动结束后不可点击
if
(
this
.
checkActivityEnd
())
return
;
getActivityInfo
(
'HD046012JWN7ocK5tb'
)
return
;
}
if
(
type
===
"wodeejia"
){
if
(
this
.
checkActivityEnd
())
return
;
}
const
urlmap
=
{
xiaomaibu
:
'https://gonghang.activity-1.m.duiba.com.cn/projectx/pa14d7c75/index.html?appID=66480'
,
equnongchang
:
'https://gonghang.activity-1.m.duiba.com.cn/projectx/pb3bde510/index.html?appID=66480'
,
...
...
@@ -80,6 +89,8 @@ class Main3 extends Component {
}
onClick_signBtn
=
()
=>
{
// TODO 校验活动结束
if
(
this
.
checkActivityEnd
())
return
;
API
.
signInfo
().
then
((
res
)
=>
{
ViewCtrl
.
showWin
(
Enum
.
Com
.
Sign
,
res
.
data
);
})
...
...
@@ -87,7 +98,9 @@ class Main3 extends Component {
onClick_shareBtn
=
()
=>
{
console
.
log
(
'onClick_shareBtn'
)
window
.
icbcshare
()
// TODO 校验活动结束
if
(
this
.
checkActivityEnd
())
return
;
window
.
icbcshare
();
API
.
doshare
().
then
(
res
=>
{
console
.
log
(
'doshare'
,
res
)
})
...
...
@@ -135,6 +148,17 @@ class Main3 extends Component {
removeEvent
()
{
}
checkActivityEnd
=
()
=>
{
let
now
=
new
Date
().
getTime
();
console
.
log
(
now
,
CFG
.
endTime
)
console
.
log
(
"======点击了======"
,
now
>
CFG
.
endTime
)
if
(
now
>
CFG
.
endTime
){
return
true
;
}
else
{
return
false
;
}
}
//首页信息显示更新
freshHomeInfo
()
{
let
homeinfo
=
dataCenter
.
getData
(
Store
.
homeinfo
);
...
...
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