Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f6cee916
authored
Jun 13, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tem
parent
ead5f953
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
178 additions
and
4 deletions
+178
-4
public/template.html
+178
-4
No files found.
public/template.html
View file @
f6cee916
...
...
@@ -8,6 +8,10 @@
<script
src=
"https://cdn.jsdelivr.net/npm/vue"
></script>
<title>
测试模板
</title>
<style>
html
,
body
{
margin
:
0
;
padding
:
0
;
}
@keyframes
border
{
0
%
{
opacity
:
1
;
...
...
@@ -43,6 +47,11 @@
}
.container
{
padding
:
0
20px
;
background
:
linear-gradient
(
to
right
,
#32295E
,
#5277AB
);
height
:
450px
;
width
:
800px
;
color
:
white
;
box-sizing
:
border-box
;
}
.title
{
height
:
50px
;
...
...
@@ -54,10 +63,55 @@
padding
:
0
20px
;
border-bottom
:
#eeeeee
2px
solid
;
padding-bottom
:
20px
;
color
:
white
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.bottom
{
display
:
flex
;
justify-content
:
space-between
;
padding-top
:
50px
;
}
.bottom
img
{
height
:
200px
;
width
:
250px
;
}
.bottom-left
{
}
.bottom-right
{
}
.bottom-right
.bottom-right-item
{
height
:
30px
;
line-height
:
30px
;
margin-bottom
:
10px
;
}
.bottom-right
.item-name
{
display
:
inline-block
;
height
:
30px
;
line-height
:
30px
;
padding
:
0
5px
;
width
:
100px
;
}
.bottom-right
.item-des
{
display
:
inline-block
;
height
:
30px
;
line-height
:
30px
;
padding
:
0
5px
;
width
:
200px
;
/* overflow: hidden; */
}
.h2-right
{
display
:
flex
;
align-items
:
center
;
}
.right-icon
{
margin-left
:
10px
;
height
:
32px
;
}
</style>
</head>
...
...
@@ -66,28 +120,64 @@
<div
class=
"title "
>
<span
class=
""
>
{{date}}
</span>
</div>
<h2
class=
"name"
>
<span
class=
"isEdit"
:class=
"isEditMode && currentIndex === 0 ? 'isEdited': ''"
@
click=
"edit(list[0], 0)"
>
{{list[0].value}}
</span></h2>
<h2
class=
"name"
class=
"h2"
>
<span
class=
"isEdit"
:class=
"isEdited(0)"
@
click=
"edit(0)"
>
{{getValue(0)}}
</span>
<div
class=
"h2-right"
>
<span
class=
"isEdit"
:class=
"isEdited(1)"
@
click=
"edit(1)"
>
{{getValue(1)}}
</span>
<img
:src=
"img"
class=
"isEdit right-icon"
></img>
</div>
<!-- <img src="" alt=""> -->
</h2>
<div
class=
"bottom"
>
<img
class=
"isEdit"
@
click=
"edit(list[1], 1)"
:class=
"isEditMode && currentIndex === 1 ? 'isEdited': ''"
:src=
"list[1].value"
alt=
""
>
<img
class=
"isEdit bottom-left"
@
click=
"edit(2)"
:class=
"isEdited(2)"
:src=
"getValue(2)"
alt=
""
>
<div
class=
"bottom-right"
>
<div
class=
"bottom-right-item"
>
<span
class=
"isEdit item-name"
:class=
"isEdited(3)"
@
click=
"edit(3)"
>
{{getValue(3)}}
</span>
<span
class=
"isEdit item-des"
:class=
"isEdited(4)"
@
click=
"edit(4)"
>
{{getValue(4)}}
</span>
</div>
<div
class=
"bottom-right-item"
>
<span
class=
"isEdit item-name"
:class=
"isEdited(5)"
@
click=
"edit(5)"
>
{{getValue(5)}}
</span>
<span
class=
"isEdit item-des"
:class=
"isEdited(6)"
@
click=
"edit(6)"
>
{{getValue(6)}}
</span>
</div>
<div
class=
"bottom-right-item"
>
<span
class=
"isEdit item-name"
:class=
"isEdited(7)"
@
click=
"edit(7)"
>
{{getValue(7)}}
</span>
<span
class=
"isEdit item-des"
:class=
"isEdited(8)"
@
click=
"edit(8)"
>
{{getValue(8)}}
</span>
</div>
<div
class=
"bottom-right-item"
>
<span
class=
"isEdit item-name"
:class=
"isEdited(9)"
@
click=
"edit(9)"
>
{{getValue(9)}}
</span>
<span
class=
"isEdit item-des"
:class=
"isEdited(10)"
@
click=
"edit(10)"
>
{{getValue(10)}}
</span>
</div>
</div>
</div>
</div>
</body>
<script>
var
myApp
=
new
Vue
({
el
:
"#myApp"
,
computed
()
{
},
methods
:
{
getDefaulted
()
{
this
.
list
=
this
.
list
.
map
(
function
(
item
){
return
item
=
Object
.
assign
(
item
,
item
.
default
)
})
},
edit
(
i
tem
,
i
ndex
)
{
edit
(
index
)
{
this
.
currentIndex
=
index
;
var
item
=
this
.
list
[
index
]
console
.
log
(
this
.
currentIndex
)
window
.
parent
.
postMessage
({
type
:
'edit'
,
item
,
index
},
'*'
)
},
getValue
(
index
)
{
return
this
.
list
[
index
]?
this
.
list
[
index
][
'value'
]
:
''
},
isEdited
(
index
)
{
return
this
.
isEditMode
&&
this
.
currentIndex
===
index
?
'isEdited'
:
''
}
},
created
()
{
...
...
@@ -95,23 +185,107 @@
},
data
:
{
date
:
new
Date
().
toLocaleString
(),
img
:
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAATjklEQVR4Xu1dfbRdRXXfe05OXkygCUnfe2dmiFAgAnUBVoVaJVKIFcE2WPkQKboUWCClxfIpVD4sH2Gx8KP4ReVTIpRKKAoKVgqCLihSVMBARQJRiGfOffeZQCQf5r17z+7a8Vx8PMk7M+fj3nPfvbPWW++Pu2dm731+Z2bOnv2B0G89rQHsaen7wkMfAD0Ogj4A+gDocQ30uPj9FaAPgB7XQI+L318B+gDocQ30uPj9FaAPgB7XQI+L318B+gCY/hpYt27d3LGxsT3jOFaIGMRxHPB/IpKIOAAAG/iPiLb+R8R1iPisEGLV2NjYMwsXLtw8XbU0rVYAIvLr9fq+zWbznQCwJxG9AQAWIeKCPA+QiEIA+JkQ4kEiul9K+QgibskzZlX6dj0Aoijal4iWAMCBALA/AMwuW7lE9FtEfBgA/puIbtJaryl7zrLG70oArF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HhRDvllKyPG1tHQFAAgLfGMNeuqcUJDF/Ml47e/bsu8oqGL1+/fr5GzduPIKI/prz9loUdbQR7ZtCiGM7ZQbvGABamomiiBXKlrG08CcbZW7FFmfTIKIHEPE+IcTjWW/P2KSNiLvGcfwOIjoMADg/ovPevo23/reIeFqWgE5bRdjQdRwAzGTiWMoZMGx84WzkmkzDcQErEfGnRMT1hSc2gYh/REQcxTwXAOYTEVc627mgN/y1+H0OEQ+TUj6VRZgi+1QCAK1zQa1WOyeO43Md7w+K1EfZY3Wk5MxUQlUGAC0mOeaw0Wjw2YAPVtOpdTTNzLYUWTkAtBit1WpL4ji+EgDe2OUo4M+6s5VSt1dRjsoCINkW+AbtiDiOL7Iol1Ip/fKtphBiWRAEy8uoIFKUsJUGQEvIJNzr8KR23p8WJXwZ4xDRM0KIS4MguKkb3N67AgATgRBFEZdJ/zAAcBbS7ct4iBnGZFe224louVLqe93w4FsydhUAJj4YTp9Sq9WWEhGDgUvYFGVHsHr+fEGFiJwm5+Zms3nbwoUL+cKq61rXAmASGGbU6/V9m80mA4H/OIdhoYAgIjbcPIyID7CRSUr5Q0Tk2kBd3aYFACY/AU6uXK/Xd2o2m4uIaBEiLgKA3QFghyTD6XZExJlO+Y91sIH/EHHrfwBYx4c4RFzFf57nrRocHFxd5cNcVhROSwBkVUYv9usDoBef+gSZ+wDoA6DHNdDj4vdXgD4AelwDPS5+fwXoA6DHNdDj4vdXgD4AelwDPS5+fwXoA6DHNdDj4v8/Efpa+RSs7JoAAAAASUVORK5CYII='
,
list
:
[
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'3F'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'SOHO 3Q'
}
},
{
type
:
'image'
,
name
:
'图片'
,
description
:
''
,
value
:
''
,
default
:
{
value
:
'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1560341197372&di=742752578d361795717808c0f2861855&imgtype=0&src=http%3A%2F%2Fk.zol-img.com.cn%2Fsjbbs%2F7692%2Fa7691515_s.jpg'
}
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'0201'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'北京迈动互联科技有限公司'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'0202'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'北京数字理想科技有限公司'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'0203'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'北京妹纸互动科技有限公司'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'0204'
}
},
{
type
:
'text'
,
name
:
'楼层'
,
value
:
''
,
description
:
''
,
default
:
{
value
:
'北京妹纸互动科技有限公司'
}
},
],
currentIndex
:
''
,
isEditMode
:
true
...
...
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