mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
6-16更新 新增更多上传功能
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#数据库账号picturebed
|
||||
spring.datasource.username=root
|
||||
spring.datasource.username=picturebed
|
||||
#数据库密码
|
||||
spring.datasource.password=root
|
||||
spring.datasource.password=Aa923453645
|
||||
#数据库链接地址
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/picturebed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
spring.datasource.url=jdbc:mysql://hellohao.cn:3306/picturebed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
#端口
|
||||
server.port=8088
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
<!-- 根据图片名字标记非法提示 -->
|
||||
<update id="setabnormal" parameterType="string">
|
||||
UPDATE imgdata set abnormal=1 where imgname=#{imgname}
|
||||
UPDATE imgdata set abnormal=1 where imgname=#{imgname}
|
||||
</update>
|
||||
<!-- 非法图片删除他 根据名称-->
|
||||
<delete id="deleimgname" parameterType="string">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -28,6 +28,7 @@
|
||||
<script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.js" type="text/javascript"></script>
|
||||
|
||||
<script th:src="@{/layui/layui/layui.js}"></script>
|
||||
<script type="text/javascript" th:src="@{/static/js/mustache.min.js}"></script>
|
||||
<!-- 样式 -->
|
||||
<style type="text/css">
|
||||
.kv-main {
|
||||
@@ -319,7 +320,7 @@
|
||||
function copy(data) {
|
||||
var copy = new ClipboardJS('.btn', {
|
||||
text: function (trigger) {
|
||||
return "https://" + data;
|
||||
return data;
|
||||
}
|
||||
});
|
||||
copy.on('success', function (e) {
|
||||
@@ -334,13 +335,11 @@
|
||||
|
||||
function lookimgs(urls) {
|
||||
layer.load(1);
|
||||
|
||||
var url = "http://" + urls;
|
||||
var w = 0;
|
||||
var h = 0;
|
||||
var dw = document.body.clientWidth;
|
||||
var dh = document.body.clientHeight;
|
||||
$("#linshi").attr('src', url);
|
||||
$("#linshi").attr('src', urls);
|
||||
$("#linshi").off("load");
|
||||
$("#linshi").on("load", function () {
|
||||
w = $(this).width();
|
||||
@@ -354,7 +353,7 @@
|
||||
area: 'auto',
|
||||
skin: 'layui-layer-nobg', //没有背景色
|
||||
shadeClose: true,
|
||||
content: '<img style="height: auto;width: auto;max-width:' + dw * 0.7 + 'px;max-height: ' + dh * 0.7 + 'px" src="' + url + '">'
|
||||
content: '<img style="height: auto;width: auto;max-width:' + dw * 0.7 + 'px;max-height: ' + dh * 0.7 + 'px" src="' + urls + '">'
|
||||
});
|
||||
});
|
||||
|
||||
@@ -419,7 +418,13 @@
|
||||
{
|
||||
title: '链接',
|
||||
formatter: function (value, rows, index) {
|
||||
return "<a style=\"cursor:pointer;\" onclick='lookimgs(\"" + rows.imgurl + "\");'>" + rows.imgurl + "</a>";
|
||||
var view = {
|
||||
imgurl: rows.imgurl
|
||||
};
|
||||
//var output = Mustache.render('<div class="pin" onclick="win(\'{{&url}}\', \'{{name}}\')"><img class="img" src="{{&imgurl}}" lay-src="{{&imgurl}}"/><p class="description" align="center">{{name}}</p></div>', view);
|
||||
var output = Mustache.render('<a style="cursor:pointer;" onclick="lookimgs(\'{{&imgurl}}\')">{{imgurl}}</a>', view);
|
||||
return output;
|
||||
//return "<a style=\"cursor:pointer;\" onclick='lookimgs(\"" + rows.imgurl + "\");'>" + rows.imgurl + "</a>";
|
||||
},
|
||||
align: 'center'
|
||||
},
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="hidden-sm hidden-md ">
|
||||
<!-- <a onclick="guanyu();" target="_blank" style="cursor:pointer;">说明</a>-->
|
||||
<!-- <a href="http://www.hellohao.cn" target="_blank">作者博客</a>-->
|
||||
<a href="http://www.hellohao.cn" target="_blank">作者博客</a>
|
||||
</li>
|
||||
<li>
|
||||
<!-- <a href="https://github.com/Hello-hao/Tbed" target="_blank">Github开源</a>-->
|
||||
<a href="https://github.com/Hello-hao/Tbed" target="_blank">Github开源</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul id="usersrc" class="nav navbar-nav navbar-right hidden-sm">
|
||||
|
||||
Reference in New Issue
Block a user