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
d6d9b4ef
Commit
d6d9b4ef
authored
Dec 24, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f05b612c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
13 deletions
+46
-13
index.html
project/public/index.html
+41
-8
main3.jsx
project/src/pages/main3/main3.jsx
+5
-5
No files found.
project/public/index.html
View file @
d6d9b4ef
...
...
@@ -12,6 +12,11 @@
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script
src=
"http://yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js"
></script>
<script
src=
"https://www.icbc.com.cn/ICBC/html/card/elife/js/2017/0703/icbc_client_core.js"
></script>
<script
src=
"https://assets.geilicdn.com/v-components/jsbridge/1.0.1/index.min.js"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/hybrid_app2.js"
></script>
<script>
function
getApp
()
{
return
{
...
...
@@ -37,8 +42,36 @@
}
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://activity.m-1.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
=
'//yun.duiba.com.cn/spark/assets/e7bec756134eaca143ea54e9f6856b6a6e10d33f.png'
;
window
.
sharetitle
=
'欢趣专区全新升级,快来看看吧'
;
window
.
sharedesc
=
'养鸡养牛还能兑换更多好礼'
;
function
icbcshare
()
{
console
.
log
(
'icbcshare'
)
/******************** demo ********************
调用分享交互需要传入的参数如下
******************** demoend ******************/
//pngUrl:分享后链接显示的图片地址
var
pngUrl
=
window
.
shareimg
;
//shareUrl:分享后点击链接需要跳转的地址
var
shareUrl
=
window
.
shareUrl
;
//title:分享后链接显示的标题
var
title
=
window
.
sharetitle
;
//content:分享后链接显示的内容
var
content
=
window
.
sharedesc
;
//封装需要分享的对象
var
shareInfo
=
{
PNGUrl
:
pngUrl
,
ShareUrl
:
shareUrl
,
Title
:
title
,
Content
:
content
};
// 将对象转为字符串
shareInfo
=
JSON
.
stringify
(
shareInfo
);
hybrid_app
.
share
(
shareInfo
);
}
</script>
</head>
...
...
project/src/pages/main3/main3.jsx
View file @
d6d9b4ef
...
...
@@ -10,6 +10,7 @@ import { Guideact } from '@spark/guideact';//'./bundle';//
import
{
getStepData
,
widgetConfig
}
from
'./widgetConfig'
;
import
{
GDispatcher
}
from
"spark-wrapper-fyge"
import
dataCenter
,
{
Store
}
from
'../../dataCenter'
;
import
{
getSVGA
}
from
'../../svga'
;
let
_widget
;
class
Main3
extends
Component
{
...
...
@@ -49,6 +50,7 @@ class Main3 extends Component {
onClick_shareBtn
=
()
=>
{
console
.
log
(
'onClick_shareBtn'
)
window
.
icbcshare
()
API
.
doshare
().
then
(
res
=>
{
console
.
log
(
'doshare'
,
res
)
})
...
...
@@ -67,6 +69,8 @@ class Main3 extends Component {
this
.
freshHomeInfo
();
this
.
initEvent
();
getSVGA
(
'//yun.duiba.com.cn/spark/assets/37b62d421a7d224b291960c898bdc9fd1824f561.svga'
,
'.main3_role'
)
if
(
this
.
props
.
data
&&!
this
.
props
.
data
.
isnewUser
)
{
//不是新用户
API
.
signInfo
().
then
((
res
)
=>
{
const
{
needPopup
}
=
res
.
data
;
...
...
@@ -267,11 +271,7 @@ class Main3 extends Component {
uuid=
"58323460-dc19-4377-b25c-fb1cabf8a29b"
src=
{
this
.
state
.
resList
[
'd86e633a-b211-4d24-b56b-90da3da4a4e5'
].
url
}
/>
<
img
className=
"main3_role "
uuid=
"9aec4461-b6d4-47fb-a08d-99453aff3567"
src=
{
this
.
state
.
resList
[
'6a414fa5-00f2-4c42-b444-f95dc9d774f2'
].
url
}
/>
<
div
className=
"main3_role "
/>
{
rolepop
&&
<
img
className=
"main3_rolepop "
uuid=
"c27fef65-4506-42f8-85df-207999e11de1"
...
...
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