Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcrpgshare
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
icbcrpgshare
Commits
8e7afb8b
Commit
8e7afb8b
authored
Dec 19, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
52af2663
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
index.html
project/public/index.html
+1
-0
app.jsx
project/src/app.jsx
+1
-1
share.jsx
project/src/pages/share/share.jsx
+6
-1
No files found.
project/public/index.html
View file @
8e7afb8b
...
...
@@ -11,6 +11,7 @@
<script
src=
"//yun.duiba.com.cn/js-libs/rem/1.1.0/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script>
window
.
url
=
'https://baidu.com'
function
getApp
()
{
return
{
cloud
:
{},
...
...
project/src/app.jsx
View file @
8e7afb8b
...
...
@@ -11,7 +11,7 @@ class App extends Component {
render
()
{
return
(
<
Share
>
请在app.jsx中指定首页
</
Share
>
<
Share
></
Share
>
);
}
}
...
...
project/src/pages/share/share.jsx
View file @
8e7afb8b
...
...
@@ -10,6 +10,11 @@ class Share extends Component {
super
(
props
);
this
.
state
=
{
resList
:
resList
};
}
clickHandler
=
()
=>
{
location
.
href
=
window
.
url
;
}
render
()
{
return
(
<
div
className=
"share "
uuid=
"56b8468a-451e-423d-bc93-843f74e35170"
>
...
...
@@ -19,7 +24,7 @@ class Share extends Component {
src=
{
this
.
state
.
resList
[
'64bd0c7b-cf6a-45da-847a-846866120f06'
].
url
}
/>
<
img
className=
"share_btn "
className=
"share_btn "
onClick=
{
this
.
clickHandler
}
uuid=
"566aad1b-c581-4e3c-87c6-c3a051656ec8"
src=
{
this
.
state
.
resList
[
'53ff7051-7b71-49ad-ac7f-d35df1e135f0'
].
url
}
/>
...
...
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