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
04ce7ab8
Commit
04ce7ab8
authored
Jun 30, 2021
by
实打实的
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新版
parent
e637ffbb
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
79 deletions
+97
-79
index.js
project/mock/e-family/index.js
+1
-1
index.html
project/public/index.html
+6
-2
task.jsx
project/src/components/task/task.jsx
+14
-1
main3.jsx
project/src/pages/main3/main3.jsx
+76
-75
No files found.
project/mock/e-family/index.js
View file @
04ce7ab8
...
@@ -121,7 +121,7 @@ export const dosign = {
...
@@ -121,7 +121,7 @@ export const dosign = {
export
const
judgeAuthority
=
{
export
const
judgeAuthority
=
{
"code"
:
10012
,
"code"
:
10012
,
"data"
:
{
"data"
:
{
"authority"
:
"
no
"
"authority"
:
"
yes
"
},
},
"message"
:
null
,
"message"
:
null
,
"success"
:
true
"success"
:
true
...
...
project/public/index.html
View file @
04ce7ab8
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
<script
src=
"https://yun.duiba.com.cn/db_games/hybrid_app2.js"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/hybrid_app2.js"
></script>
<script>
<script>
// new VConsole();
function
getApp
()
{
function
getApp
()
{
return
{
return
{
cloud
:
{},
cloud
:
{},
...
@@ -25,9 +27,10 @@
...
@@ -25,9 +27,10 @@
requestType
:
"mock"
requestType
:
"mock"
}
}
}
}
var
CFG
=
CFG
||
{};
var
CFG
=
CFG
||
{};
CFG
.
projectId
=
location
.
pathname
.
split
(
'/'
)[
2
]
||
'1'
;
CFG
.
projectId
=
location
.
pathname
.
split
(
'/'
)[
2
]
||
'1'
;
function
getUrlParam
(
name
)
{
function
getUrlParam
(
name
)
{
var
search
=
window
.
location
.
search
;
var
search
=
window
.
location
.
search
;
var
matched
=
search
var
matched
=
search
...
@@ -43,7 +46,8 @@
...
@@ -43,7 +46,8 @@
}
}
window
.
shareUrl
=
'https://duiba'
+
CFG
.
appID
+
CFG
.
projectId
+
Math
.
floor
(
Math
.
random
()
*
90000
)
+
'.activity-1.m.duiba.com.cn/customShare/share?id=4609'
window
.
shareUrl
=
'https://duiba'
+
CFG
.
appID
+
CFG
.
projectId
+
Math
.
floor
(
Math
.
random
()
*
90000
)
+
'.activity-1.m.duiba.com.cn/customShare/share?id=4609'
window
.
shareimg
=
'https://yun.duiba.com.cn/spark/assets/e7bec756134eaca143ea54e9f6856b6a6e10d33f.png'
;
window
.
shareimg
=
'https://yun.duiba.com.cn/spark/assets/e7bec756134eaca143ea54e9f6856b6a6e10d33f.png'
;
window
.
sharetitle
=
'欢趣专区全新升级,快来看看吧'
;
window
.
sharetitle
=
'欢趣专区全新升级,快来看看吧'
;
...
...
project/src/components/task/task.jsx
View file @
04ce7ab8
...
@@ -18,6 +18,7 @@ class Task extends Component {
...
@@ -18,6 +18,7 @@ class Task extends Component {
this
.
judgeAuthority
();
this
.
judgeAuthority
();
}
}
judgeAuthority
=
async
()
=>
{
judgeAuthority
=
async
()
=>
{
let
result
=
await
API
.
judgeAuthority
();
let
result
=
await
API
.
judgeAuthority
();
if
(
result
&&
result
.
success
)
{
if
(
result
&&
result
.
success
)
{
...
@@ -41,12 +42,24 @@ class Task extends Component {
...
@@ -41,12 +42,24 @@ class Task extends Component {
Loading
.
hide
();
Loading
.
hide
();
}
}
getActivityInfo
=
(
actId
)
=>
{
console
.
log
(
'getActivityInfo'
)
if
(
ICBCUtilTools
.
isAndroid
())
{
// 如果是安卓
window
.
Myutils
.
getActivityInfo
(
actId
);
return
;
}
if
(
ICBCUtilTools
.
isiPhone
())
{
window
.
WebViewJavascriptBridge
.
callHandler
(
"Myutils.getActivityInfo"
,
actId
)
}
}
toApplyCard
=
()
=>
{
toApplyCard
=
()
=>
{
window
.
location
.
href
=
"https://elife.icbc.com.cn/OFSTCARD/creditCard/apply.do?channel=105BKRK0001000000000000000&coreCode=HZDW000174463¶PromoCode=EW0004600000000EL01"
;
window
.
location
.
href
=
"https://elife.icbc.com.cn/OFSTCARD/creditCard/apply.do?channel=105BKRK0001000000000000000&coreCode=HZDW000174463¶PromoCode=EW0004600000000EL01"
;
}
}
toPurchase
=
()
=>
{
toPurchase
=
()
=>
{
window
.
location
.
href
=
"https://ghjf.g-town.com.cn/activity/wsd.html?type=wsd"
;
// window.location.href = "https://ghjf.g-town.com.cn/activity/wsd.html?type=wsd";
this
.
getActivityInfo
(
'HD046012MadrYFGPcb'
);
}
}
...
...
project/src/pages/main3/main3.jsx
View file @
04ce7ab8
This diff is collapsed.
Click to expand it.
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