Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_taobao
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
hello_taobao
Commits
565c9099
Commit
565c9099
authored
Sep 04, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
f0fd0cbd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
150 additions
and
36 deletions
+150
-36
hello_taobao.json
hello_taobao.json
+59
-1
MD.js
project/MD.js
+24
-0
app.jsx
project/src/app.jsx
+0
-8
comrulepanel.jsx
project/src/components/comrulepanel/comrulepanel.jsx
+21
-0
comrulepanel.less
project/src/components/comrulepanel/comrulepanel.less
+19
-0
pagefrontpage.jsx
project/src/pages/pagefrontpage/pagefrontpage.jsx
+11
-11
pagefrontpage.less
project/src/pages/pagefrontpage/pagefrontpage.less
+16
-16
No files found.
hello_taobao.json
View file @
565c9099
...
...
@@ -53,8 +53,66 @@
}
}
]
},
{
"name"
:
"rulePanel"
,
"properties"
:
{
"style"
:
{
"top"
:
0
,
"left"
:
0
,
"width"
:
750
,
"height"
:
1624
,
"display"
:
"block"
,
"position"
:
"absolute"
},
"attrs"
:
{},
"className"
:
""
,
"name"
:
"空视图"
},
"uuid"
:
"5b0e5310-cca9-4b9a-87e8-1fec149a951f"
,
"rect"
:
{
"x"
:
0
,
"y"
:
0
,
"width"
:
300
,
"height"
:
300
},
"componentName"
:
"Div"
,
"viewType"
:
"Panel"
,
"children"
:
[
{
"name"
:
"rulePanelInner"
,
"uuid"
:
"3efdd94c-51b8-4423-b361-d5424523b8d0"
,
"componentName"
:
"Div"
,
"viewType"
:
"Element"
,
"properties"
:
{
"style"
:
{
"width"
:
300
,
"height"
:
300
,
"opacity"
:
1
,
"display"
:
"block"
,
"left"
:
0
,
"top"
:
0
,
"position"
:
"absolute"
,
"transformOrigin"
:
"0px 0px 0px"
,
"backgroundColor"
:
"blue"
},
"attrs"
:
{},
"className"
:
""
},
"rect"
:
{
"x"
:
0
,
"y"
:
0
,
"width"
:
300
,
"height"
:
300
}
}
]
}
]
},
"assets"
:
[]
"assets"
:
[],
"dependencies"
:
{
"duiba-api"
:
"0.0.1"
,
"log"
:
"0.0.1"
}
}
\ No newline at end of file
project/MD.js
0 → 100644
View file @
565c9099
import
MD
from
'spark-utils/out/md/index.js'
;
let
appId
=
CFG
.
appID
;
const
dcm
=
'202.'
+
CFG
.
projectId
+
'.0.0'
;
const
domain
=
'//embedlog.duiba.com.cn'
;
let
MDList
=
[
{
ele
:
`.test-md1`
,
data
:
{
dpm
:
`
${
appId
}
.110.5.1`
,
dcm
,
domain
,
appId
},
once
:
false
}
];
export
default
()
=>
MD
({
show
:
MDList
,
// 曝光
click
:
MDList
// 点击
});
project/src/app.jsx
View file @
565c9099
...
...
@@ -7,17 +7,9 @@ import MD from './MD';
MD
();
//此处为spark-cli动态生成
import
Pagefrontpage
from
"./pages/pagefrontpage/pagefrontpage.jsx"
;
import
API
from
"./api"
;
class
App
extends
Component
{
render
()
{
console
.
log
(
'API.getRule('
)
API
.
getRule
({
orderId
:
1
}).
then
((
data
)
=>
{
console
.
log
(
'getRule'
,
data
)
})
return
(
<
Pagefrontpage
></
Pagefrontpage
>
);
...
...
project/src/components/comrulepanel/comrulepanel.jsx
0 → 100644
View file @
565c9099
'use strict'
;
import
React
,
{
Component
}
from
'react'
;
import
resList
from
'../../resconfig/resList'
;
import
'./comrulepanel.less'
;
class
Comrulepanel
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"rulepanel"
>
<
div
className=
"rulepanelinner"
/>
</
div
>
);
}
}
export
default
Comrulepanel
;
project/src/components/comrulepanel/comrulepanel.less
0 → 100644
View file @
565c9099
.rulepanel {
top: 0px;
left: 0px;
width: 750px;
height: 1624px;
display: block;
position: absolute;
.rulepanelinner {
width: 300px;
height: 300px;
opacity: 1;
display: block;
left: 0px;
top: 0px;
position: absolute;
transform-origin: 0px 0px 0px;
background-color: blue;
}
}
project/src/pages/pagefrontpage/pagefrontpage.jsx
View file @
565c9099
...
...
@@ -7,16 +7,16 @@ import resList from '../../resconfig/resList';
import
'./pagefrontpage.less'
;
class
Pagefrontpage
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"frontpage"
>
<
div
className=
"div"
/>
</
div
>
);
}
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"frontpage"
>
<
div
className=
"div"
/>
</
div
>
);
}
}
export
default
Pagefrontpage
;
project/src/pages/pagefrontpage/pagefrontpage.less
View file @
565c9099
.frontpage {
top: 0px;
left: 0px;
width: 750px;
height: 1624px;
display: block;
position: absolute;
.div {
width: 300px;
height: 300px;
opacity: 1;
display: block;
left: 0px;
top: 0px;
position: absolute;
background-color: #ff6600;
}
top: 0px;
left: 0px;
width: 750px;
height: 1624px;
display: block;
position: absolute;
.div {
width: 300px;
height: 300px;
opacity: 1;
display: block;
left: 0px;
top: 0px;
position: absolute;
background-color: #ff6600;
}
}
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