Commit 8e7afb8b authored by wildfirecode13's avatar wildfirecode13

1

parent 52af2663
......@@ -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: {},
......
......@@ -11,7 +11,7 @@ class App extends Component {
render() {
return (
<Share>请在app.jsx中指定首页</Share>
<Share></Share>
);
}
}
......
......@@ -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}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment