Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
leyi cen
Wangmarket
Commits
b91d34db
Commit
b91d34db
authored
6 years ago
by
xnx3
Browse files
Options
Download
Email Patches
Plain Diff
优化模版列表,若模版无预览的网站时,弹出友好提示
parent
70474473
master
v5.4
v5.2
v5.1
v5.0
v4.11
v4.10
v4.8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/WEB-INF/view/template.jsp
+10
-1
src/main/webapp/WEB-INF/view/template.jsp
with
10 additions
and
1 deletion
+10
-1
src/main/webapp/WEB-INF/view/template.jsp
+
10
-
1
View file @
b91d34db
...
...
@@ -121,7 +121,7 @@ function typeClick(type){
var
xiabiao
=
i
%
4
;
//取余,得数组下表
var
to
=
obj
.
list
[
i
];
var
temp
=
'
<div>
'
+
'
<img src="
'
+
((
to
.
previewPic
!=
null
&&
to
.
previewPic
.
length
>
8
)?
to
.
previewPic
:
'
${AttachmentFileUrl}websiteTemplate/
'
+
to
.
name
+
'
/preview.jpg
'
)
+
'
" class="previewImg" onclick="
window.open
(
\'
'
+
to
.
previewUrl
+
'
\'
);" />
'
+
'
<img src="
'
+
((
to
.
previewPic
!=
null
&&
to
.
previewPic
.
length
>
8
)?
to
.
previewPic
:
'
${AttachmentFileUrl}websiteTemplate/
'
+
to
.
name
+
'
/preview.jpg
'
)
+
'
" class="previewImg" onclick="
previewUrl
(
\'
'
+
to
.
previewUrl
+
'
\'
);" />
'
+
((
to
.
previewUrl
!=
null
&&
to
.
previewUrl
.
length
>
8
)?
'
<div class="previewButton"><a href="javascript:window.open(
\'
'
+
to
.
previewUrl
+
'
\'
);" target="_black">点此预览</a></div>
'
:
''
)
+
'
<div class="templateName" onclick="useCloudTemplate(
\'
'
+
to
.
name
+
'
\'
);">模版编码:
'
+
to
.
name
+
'
</div>
'
+
'
<div class="terminal">访问支持:
'
+
...
...
@@ -156,6 +156,15 @@ function typeClick(type){
initType
();
typeClick
(
-
1
);
//默认加载中所有模版
//预览网站示例。 url 要预览的网站
function
previewUrl
(
url
){
if
(
url
!=
null
&&
url
.
length
>
8
){
window
.
open
(
url
);
}
else
{
iw
.
msgFailure
(
'
抱歉,该模版暂无预览体验的网站示例
'
);
}
}
</script>
</body>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help