Commit dd7f4ebf authored by wildfirecode13's avatar wildfirecode13

1

parent 565c9099
No preview for this file type
...@@ -80,9 +80,9 @@ ...@@ -80,9 +80,9 @@
"viewType": "Panel", "viewType": "Panel",
"children": [ "children": [
{ {
"name": "rulePanelInner", "name": "Image",
"uuid": "3efdd94c-51b8-4423-b361-d5424523b8d0", "uuid": "de9588ea-da5f-4f33-a686-6db277050c5d",
"componentName": "Div", "componentName": "Image",
"viewType": "Element", "viewType": "Element",
"properties": { "properties": {
"style": { "style": {
...@@ -93,10 +93,11 @@ ...@@ -93,10 +93,11 @@
"left": 0, "left": 0,
"top": 0, "top": 0,
"position": "absolute", "position": "absolute",
"transformOrigin": "0px 0px 0px", "transformOrigin": "0px 0px 0px"
"backgroundColor": "blue" },
"attrs": {
"source": "asset://eb602b5e-fd36-4968-bed0-ec786cd8e1c0"
}, },
"attrs": {},
"className": "" "className": ""
}, },
"rect": { "rect": {
...@@ -110,7 +111,14 @@ ...@@ -110,7 +111,14 @@
} }
] ]
}, },
"assets": [], "assets": [
{
"name": "资源",
"ext": ".png",
"url": "//yun.duiba.com.cn/spark-prod/assets/资源.7ec4dc0a776a20da7e58e0cee4fab560dea0ec76.png",
"uuid": "eb602b5e-fd36-4968-bed0-ec786cd8e1c0"
}
],
"dependencies": { "dependencies": {
"duiba-api": "0.0.1", "duiba-api": "0.0.1",
"log": "0.0.1" "log": "0.0.1"
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
"main": "", "main": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@tbminiapp/lottie-miniapp": "0.0.3" "@tbmp/mp-cloud-sdk": "^1.3.8"
} }
} }
...@@ -13,7 +13,7 @@ class Comrulepanel extends Component { ...@@ -13,7 +13,7 @@ class Comrulepanel extends Component {
render() { render() {
return ( return (
<div className="rulepanel"> <div className="rulepanel">
<div className="rulepanelinner" /> <img className="image" src={this.state.resList['eb602b5e-fd36-4968-bed0-ec786cd8e1c0'].url} />
</div> </div>
); );
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
height: 1624px; height: 1624px;
display: block; display: block;
position: absolute; position: absolute;
.rulepanelinner { .image {
width: 300px; width: 300px;
height: 300px; height: 300px;
opacity: 1; opacity: 1;
...@@ -14,6 +14,5 @@ ...@@ -14,6 +14,5 @@
top: 0px; top: 0px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; transform-origin: 0px 0px 0px;
background-color: blue;
} }
} }
\ No newline at end of file
...@@ -7,16 +7,17 @@ import resList from '../../resconfig/resList'; ...@@ -7,16 +7,17 @@ import resList from '../../resconfig/resList';
import './pagefrontpage.less'; import './pagefrontpage.less';
class Pagefrontpage extends Component { class Pagefrontpage extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = this.state || { resList: resList }; this.state = this.state || { resList: resList };
} }
render() { render() {
return ( return (
<div className="frontpage"> <div className="frontpage">
<div className="div" /> <div className="div" />
</div> <img className="image" src={this.state.resList['eb602b5e-fd36-4968-bed0-ec786cd8e1c0'].url} />
); </div>
} );
}
} }
export default Pagefrontpage; export default Pagefrontpage;
\ No newline at end of file
.frontpage { .frontpage {
top: 0px; width: 750px;
left: 0px; height: 1624px;
width: 750px; display: block;
height: 1624px; position: absolute;
display: block; transform-origin: 0px 0px 0px;
position: absolute; left: 228px;
.div { top: 146px;
width: 300px; .div {
height: 300px; width: 300px;
opacity: 1; height: 300px;
display: block; opacity: 1;
left: 0px; display: block;
top: 0px; position: absolute;
position: absolute; background-color: #ff6600;
background-color: #ff6600; transform-origin: 0px 0px 0px;
} top: 278px;
} left: -142;
}
.image {
width: 276px;
height: 275px;
opacity: 1;
display: block;
position: absolute;
transform-origin: 0px 0px 0px;
left: -184;
top: -134;
}
}
\ No newline at end of file
const resList = {}; const resList = {
export default resList; 'eb602b5e-fd36-4968-bed0-ec786cd8e1c0': {
name: '资源',
ext: '.png',
url: '//yun.duiba.com.cn/spark-prod/assets/资源.7ec4dc0a776a20da7e58e0cee4fab560dea0ec76.png',
uuid: 'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
}
};
export default resList;
\ No newline at end of file
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