commit
e779a9bdd3
|
|
@ -0,0 +1,274 @@
|
||||||
|
/*!
|
||||||
|
* Cropper v0.9.1
|
||||||
|
* https://github.com/fengyuanchen/cropper
|
||||||
|
*
|
||||||
|
* Copyright (c) 2014-2015 Fengyuan Chen and contributors
|
||||||
|
* Released under the MIT license
|
||||||
|
*
|
||||||
|
* Date: 2015-03-21T04:58:27.265Z
|
||||||
|
*/
|
||||||
|
|
||||||
|
.cropper-container {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
-webkit-touch-callout: none
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-container img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: none !important;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0 !important;
|
||||||
|
max-height: none !important;
|
||||||
|
image-orientation: 0deg !important
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-canvas, .cropper-crop-box, .cropper-drag-box, .cropper-modal {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-drag-box {
|
||||||
|
background-color: #fff;
|
||||||
|
filter: alpha(opacity=0);
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-modal {
|
||||||
|
background-color: #000;
|
||||||
|
filter: alpha(opacity=50);
|
||||||
|
opacity: .5
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-view-box {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
outline: #69f solid 1px;
|
||||||
|
outline-color: rgba(102,153,255,.75)
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-dashed {
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
filter: alpha(opacity=50);
|
||||||
|
border: 0 dashed #fff;
|
||||||
|
opacity: .5
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-dashed.dashed-h {
|
||||||
|
top: 33.33333333%;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 33.33333333%;
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-bottom-width: 1px
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-dashed.dashed-v {
|
||||||
|
top: 0;
|
||||||
|
left: 33.33333333%;
|
||||||
|
width: 33.33333333%;
|
||||||
|
height: 100%;
|
||||||
|
border-right-width: 1px;
|
||||||
|
border-left-width: 1px
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-face, .cropper-line, .cropper-point {
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
filter: alpha(opacity=10);
|
||||||
|
opacity: .1
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-face {
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
cursor: move;
|
||||||
|
background-color: #fff
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-line {
|
||||||
|
background-color: #69f
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-line.line-e {
|
||||||
|
top: 0;
|
||||||
|
right: -3px;
|
||||||
|
width: 5px;
|
||||||
|
cursor: e-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-line.line-n {
|
||||||
|
top: -3px;
|
||||||
|
left: 0;
|
||||||
|
height: 5px;
|
||||||
|
cursor: n-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-line.line-w {
|
||||||
|
top: 0;
|
||||||
|
left: -3px;
|
||||||
|
width: 5px;
|
||||||
|
cursor: w-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-line.line-s {
|
||||||
|
bottom: -3px;
|
||||||
|
left: 0;
|
||||||
|
height: 5px;
|
||||||
|
cursor: s-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #69f;
|
||||||
|
filter: alpha(opacity=75);
|
||||||
|
opacity: .75
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-e {
|
||||||
|
top: 50%;
|
||||||
|
right: -3px;
|
||||||
|
margin-top: -3px;
|
||||||
|
cursor: e-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-n {
|
||||||
|
top: -3px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -3px;
|
||||||
|
cursor: n-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-w {
|
||||||
|
top: 50%;
|
||||||
|
left: -3px;
|
||||||
|
margin-top: -3px;
|
||||||
|
cursor: w-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-s {
|
||||||
|
bottom: -3px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -3px;
|
||||||
|
cursor: s-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-ne {
|
||||||
|
top: -3px;
|
||||||
|
right: -3px;
|
||||||
|
cursor: ne-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-nw {
|
||||||
|
top: -3px;
|
||||||
|
left: -3px;
|
||||||
|
cursor: nw-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-sw {
|
||||||
|
bottom: -3px;
|
||||||
|
left: -3px;
|
||||||
|
cursor: sw-resize
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-se {
|
||||||
|
right: -3px;
|
||||||
|
bottom: -3px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
cursor: se-resize;
|
||||||
|
filter: alpha(opacity=100);
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-point.point-se:before {
|
||||||
|
position: absolute;
|
||||||
|
right: -50%;
|
||||||
|
bottom: -50%;
|
||||||
|
display: block;
|
||||||
|
width: 200%;
|
||||||
|
height: 200%;
|
||||||
|
content: " ";
|
||||||
|
background-color: #69f;
|
||||||
|
filter: alpha(opacity=0);
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:768px) {
|
||||||
|
.cropper-point.point-se {
|
||||||
|
width: 15px;
|
||||||
|
height: 15px
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:992px) {
|
||||||
|
.cropper-point.point-se {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:1200px) {
|
||||||
|
.cropper-point.point-se {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
filter: alpha(opacity=75);
|
||||||
|
opacity: .75
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-bg {
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-invisible {
|
||||||
|
filter: alpha(opacity=0);
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-hide {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
width: auto !important;
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: none !important;
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 0 !important;
|
||||||
|
max-height: none !important;
|
||||||
|
filter: alpha(opacity=0);
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-hidden {
|
||||||
|
display: none !important
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-move {
|
||||||
|
cursor: move
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-crop {
|
||||||
|
cursor: crosshair
|
||||||
|
}
|
||||||
|
|
||||||
|
.cropper-disabled .cropper-canvas, .cropper-disabled .cropper-face, .cropper-disabled .cropper-line, .cropper-disabled .cropper-point {
|
||||||
|
cursor: not-allowed
|
||||||
|
}
|
||||||
|
|
@ -36,7 +36,7 @@ layui.define(['jquery', 'element','table'], function(exports) {
|
||||||
* @param table 刷新父级表
|
* @param table 刷新父级表
|
||||||
*
|
*
|
||||||
* */
|
* */
|
||||||
this.submit(data,href,table,callback){
|
this.submit = function(data,href,table,callback){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url:href,
|
url:href,
|
||||||
data:JSON.stringify(data),
|
data:JSON.stringify(data),
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -37,5 +37,6 @@ layui.config({
|
||||||
design: "design", // 布局设计器
|
design: "design", // 布局设计器
|
||||||
dropdown: "dropdown", // 通用下拉组件
|
dropdown: "dropdown", // 通用下拉组件
|
||||||
card: "card", // 卡片组件
|
card: "card", // 卡片组件
|
||||||
loading: "loading" // 加载组件
|
loading: "loading", // 加载组件,
|
||||||
|
cropper:"cropper"//裁剪组件
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,6 @@ layui.config({
|
||||||
design: "design",
|
design: "design",
|
||||||
dropdown: "dropdown",
|
dropdown: "dropdown",
|
||||||
card: "card",
|
card: "card",
|
||||||
loading: "loading"
|
loading: "loading",
|
||||||
|
cropper:"cropper"
|
||||||
});
|
});
|
||||||
|
|
|
||||||
26
index.html
26
index.html
|
|
@ -32,7 +32,7 @@
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
<!-- 头 像 -->
|
<!-- 头 像 -->
|
||||||
<a href="javascript:;">
|
<a href="javascript:;">
|
||||||
<img src="admin/images/avatar.jpg" class="layui-nav-img">
|
<img src="" class="layui-nav-img">
|
||||||
就眠仪式
|
就眠仪式
|
||||||
</a>
|
</a>
|
||||||
<!-- 功 能 菜 单 -->
|
<!-- 功 能 菜 单 -->
|
||||||
|
|
@ -72,9 +72,29 @@
|
||||||
<script src="component/pear/pear.js"></script>
|
<script src="component/pear/pear.js"></script>
|
||||||
<!-- 框 架 初 始 化 -->
|
<!-- 框 架 初 始 化 -->
|
||||||
<script>
|
<script>
|
||||||
layui.use(['admin'], function() {
|
layui.use(['admin','jquery'], function() {
|
||||||
var admin = layui.admin;
|
var admin = layui.admin,
|
||||||
|
$ = layui.jquery;
|
||||||
|
|
||||||
|
//本地环境因相对路径差异,特意转base64处理,实际结合后台使用时,可随意发挥
|
||||||
|
function getBase64Image(img) {
|
||||||
|
var canvas = document.createElement("canvas");
|
||||||
|
canvas.width = img.width;
|
||||||
|
canvas.height = img.height;
|
||||||
|
var ctx = canvas.getContext("2d");
|
||||||
|
ctx.drawImage(img, 0, 0, img.width, img.height);
|
||||||
|
var ext = img.src.substring(img.src.lastIndexOf(".")+1).toLowerCase();
|
||||||
|
var dataURL = canvas.toDataURL("image/"+ext);
|
||||||
|
return dataURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
var image = new Image();
|
||||||
|
image.src = "admin/images/avatar.jpg";
|
||||||
|
image.onload = function(){
|
||||||
|
var base64 = getBase64Image(image);
|
||||||
|
$(".layui-nav-img").attr("src", base64);
|
||||||
|
}
|
||||||
|
|
||||||
// 重新设置配置文件读取路径,默认为同级目录下的 pear.config.json
|
// 重新设置配置文件读取路径,默认为同级目录下的 pear.config.json
|
||||||
admin.setConfigPath("config/pear.config.json");
|
admin.setConfigPath("config/pear.config.json");
|
||||||
// 进行框架初始化
|
// 进行框架初始化
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,125 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title></title>
|
||||||
|
<link rel="stylesheet" href="../../../component/layui/css/layui.css" />
|
||||||
|
<link rel="stylesheet" href="../../../component/pear/css/pear.css" />
|
||||||
|
<link rel="stylesheet" href="../../../component/pear/css/pear-module/cropper.css" />
|
||||||
|
</head>
|
||||||
|
<body class="pear-container">
|
||||||
|
<div class="layui-row layui-col-space15">
|
||||||
|
<div class="layui-col-xs9">
|
||||||
|
<div style="height:325px;background-color: rgb(247, 247, 247);">
|
||||||
|
<img id="sourceImage" src="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-xs3" style="padding-left:0px;">
|
||||||
|
<div id="previewImage" style="width:210px;height:210px;border: 1px solid rgb(200, 200, 200);border-radius: 50%;overflow:hidden;">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-row">
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<div class="layui-input-inline layui-btn-container" style="width: auto;vertical-align:top;">
|
||||||
|
<button class="pear-btn pear-btn-primary layui-icon layui-icon-left" cropper-event="rotate" data-option="-15" title="左旋15°"></button>
|
||||||
|
<button class="pear-btn pear-btn-primary layui-icon layui-icon-right" cropper-event="rotate" data-option="15" title="右旋15°"></button>
|
||||||
|
<button class="pear-btn pear-btn-danger layui-icon layui-icon-refresh" cropper-event="reset" title="重置"></button>
|
||||||
|
<label for="uploadPicture" class="pear-btn pear-btn-primary" title="选择图片">
|
||||||
|
<span class="layui-icon layui-icon-upload"></span>
|
||||||
|
</label>
|
||||||
|
<input class="layui-upload-file" id="uploadPicture" type="file" value="选择图片">
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">建议:图片的尺寸宽高比为1:1,大小在5m以内。</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="../../../component/layui/layui.js"></script>
|
||||||
|
<script src="../../../component/pear/pear.js"></script>
|
||||||
|
<script>
|
||||||
|
layui.use(['jquery','layer','cropper'], function () {
|
||||||
|
let $ = layui.jquery;
|
||||||
|
let layer = layui.layer;
|
||||||
|
let cropper = layui.cropper;
|
||||||
|
|
||||||
|
var options = {
|
||||||
|
aspectRatio: 1 / 1, // 裁剪框比例
|
||||||
|
preview: '#previewImage', // 预览div
|
||||||
|
viewmode: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
$("#sourceImage").attr("src", parent.layui.$("#userAvatar").attr("src"));
|
||||||
|
console.log(parent.layui.$("#userAvatar").attr("src"));
|
||||||
|
$("#sourceImage").cropper(options);
|
||||||
|
|
||||||
|
window.submitForm = function () {
|
||||||
|
$("#sourceImage").crossOrigin = 'anonymous';//解决跨域图片问题
|
||||||
|
$("#sourceImage").cropper("getCroppedCanvas", {
|
||||||
|
width: 280,
|
||||||
|
height: 140
|
||||||
|
}).toBlob(function (blob) {
|
||||||
|
var timeStamp = Date.parse(new Date());
|
||||||
|
var fileName = timeStamp + '.jpg';
|
||||||
|
var formData = new FormData();
|
||||||
|
formData.append('file', blob, fileName);
|
||||||
|
formData.append('fileName', fileName);
|
||||||
|
formData.append('fileToken', timeStamp);
|
||||||
|
// $.ajax({
|
||||||
|
// method: "post",
|
||||||
|
// url: "", //用于文件上传的服务器端请求地址
|
||||||
|
// data: formData,
|
||||||
|
// processData: false,
|
||||||
|
// contentType: false,
|
||||||
|
// success: function (result) {
|
||||||
|
// //后续操作
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
//demo环境,直接返回
|
||||||
|
console.log(blob);
|
||||||
|
var reader = new FileReader();
|
||||||
|
reader.readAsDataURL(blob);
|
||||||
|
reader.onload = function (e) {
|
||||||
|
var data={
|
||||||
|
index:parent.layer.getFrameIndex(window.name),
|
||||||
|
newAvatar : e.target.result
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
parent.window.callback(data);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".pear-btn").on('click', function () {
|
||||||
|
var event = $(this).attr("cropper-event");
|
||||||
|
|
||||||
|
if (event === 'rotate') {
|
||||||
|
var option = $(this).attr('data-option');
|
||||||
|
$("#sourceImage").cropper('rotate', option);
|
||||||
|
} else if (event === 'reset') {
|
||||||
|
$("#sourceImage").cropper('reset');
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#uploadPicture").change(function () {
|
||||||
|
var r = new FileReader();
|
||||||
|
var f = this.files[0];
|
||||||
|
|
||||||
|
var uploadFileSize = f.size / 1024;
|
||||||
|
if (uploadFileSize > 5120) {
|
||||||
|
parent.layer.msg("上传文件不得超过5m", { icon: 5 });
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
r.readAsDataURL(f);
|
||||||
|
r.onload = function (e) {
|
||||||
|
$("#sourceImage")
|
||||||
|
.cropper('destroy')
|
||||||
|
.attr('src', this.result)
|
||||||
|
.cropper(options);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
@ -1,139 +1,138 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title></title>
|
<title></title>
|
||||||
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
||||||
<link rel="stylesheet" href="../../admin/css/other/person.css" />
|
<link rel="stylesheet" href="../../admin/css/other/person.css" />
|
||||||
</head>
|
</head>
|
||||||
<body class="pear-container">
|
<body class="pear-container">
|
||||||
<div class="layui-row layui-col-space10">
|
<div class="layui-row layui-col-space10">
|
||||||
<div class="layui-col-md3">
|
<div class="layui-col-md3">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-body" style="padding: 25px;">
|
<div class="layui-card-body" style="padding: 25px;">
|
||||||
<div class="text-center layui-text">
|
<div class="text-center layui-text">
|
||||||
<div class="user-info-head" id="userInfoHead">
|
<div class="user-info-head" id="userInfoHead">
|
||||||
<img src="../../admin/images/avatar.jpg" width="115px" height="115px" alt="">
|
<img src="" id="userAvatar" width="115px" height="115px" alt="">
|
||||||
</div>
|
|
||||||
<h2 style="padding-top: 20px;font-size: 20px;">就眠仪式</h2>
|
|
||||||
<p style="padding-top: 8px;margin-top: 10px;font-size: 13.5px;">China , 中国</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<h2 style="padding-top: 20px;font-size: 20px;">就眠仪式</h2>
|
||||||
<div style="height: 45px;border-top: 1px whitesmoke solid;text-align: center;line-height: 45px;font-size: 13.5px;">
|
<p style="padding-top: 8px;margin-top: 10px;font-size: 13.5px;">China , 中国</p>
|
||||||
<span>今日事 ,今日毕</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="height: 45px;border-top: 1px whitesmoke solid;text-align: center;line-height: 45px;font-size: 13.5px;">
|
||||||
<div class="layui-card">
|
<span>今日事 ,今日毕</span>
|
||||||
<div class="layui-card-header">
|
|
||||||
归档
|
|
||||||
</div>
|
|
||||||
<div class="layui-card-body">
|
|
||||||
<ul class="list">
|
|
||||||
<li class="list-item"><span class="title">优化代码格式</span><span class="footer">2020-06-04 11:28</span></li>
|
|
||||||
<li class="list-item"><span class="title">新增消息组件</span><span class="footer">2020-06-01 04:23</span></li>
|
|
||||||
<li class="list-item"><span class="title">移动端兼容</span><span class="footer">2020-05-22 21:38</span></li>
|
|
||||||
<li class="list-item"><span class="title">系统布局优化</span><span class="footer">2020-05-15 14:26</span></li>
|
|
||||||
<li class="list-item"><span class="title">兼容多系统菜单模式</span><span class="footer">2020-05-13 16:32</span></li>
|
|
||||||
<li class="list-item"><span class="title">兼容多标签页切换</span><span class="footer">2019-12-9 14:58</span></li>
|
|
||||||
<li class="list-item"><span class="title">扩展下拉组件</span><span class="footer">2019-12-7 9:06</span></li>
|
|
||||||
<li class="list-item"><span class="title">扩展卡片样式</span><span class="footer">2019-12-1 10:26</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md9">
|
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">
|
<div class="layui-card-header">
|
||||||
我的文章
|
归档
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
<ul class="list">
|
||||||
<div class="layui-tab-content">
|
<li class="list-item"><span class="title">优化代码格式</span><span class="footer">2020-06-04 11:28</span></li>
|
||||||
<div class="layui-tab-item layui-show">
|
<li class="list-item"><span class="title">新增消息组件</span><span class="footer">2020-06-01 04:23</span></li>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
<li class="list-item"><span class="title">移动端兼容</span><span class="footer">2020-05-22 21:38</span></li>
|
||||||
<div class="layui-col-md1">
|
<li class="list-item"><span class="title">系统布局优化</span><span class="footer">2020-05-15 14:26</span></li>
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<li class="list-item"><span class="title">兼容多系统菜单模式</span><span class="footer">2020-05-13 16:32</span></li>
|
||||||
</div>
|
<li class="list-item"><span class="title">兼容多标签页切换</span><span class="footer">2019-12-9 14:58</span></li>
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
<li class="list-item"><span class="title">扩展下拉组件</span><span class="footer">2019-12-7 9:06</span></li>
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
<li class="list-item"><span class="title">扩展卡片样式</span><span class="footer">2019-12-1 10:26</span></li>
|
||||||
<div class="content">
|
</ul>
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
</div>
|
||||||
</div>
|
<div class="layui-col-md9">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
我的文章
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
||||||
|
<div class="layui-tab-content">
|
||||||
|
<div class="layui-tab-item layui-show">
|
||||||
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
|
<div class="layui-col-md1">
|
||||||
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
<div class="layui-col-md1">
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<div class="content">
|
||||||
</div>
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
|
||||||
<div class="content">
|
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
|
||||||
</div>
|
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
</div>
|
||||||
<div class="layui-col-md1">
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<div class="layui-col-md1">
|
||||||
</div>
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
|
||||||
<div class="content">
|
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
|
||||||
</div>
|
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
<div class="layui-col-md1">
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<div class="content">
|
||||||
</div>
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
|
||||||
<div class="content">
|
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
|
||||||
</div>
|
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
</div>
|
||||||
<div class="layui-col-md1">
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<div class="layui-col-md1">
|
||||||
</div>
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
|
||||||
<div class="content">
|
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
|
||||||
</div>
|
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
<div class="layui-col-md1">
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<div class="content">
|
||||||
</div>
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
|
||||||
<div class="content">
|
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
|
||||||
</div>
|
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
</div>
|
||||||
<div class="layui-col-md1">
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
<div class="layui-col-md1">
|
||||||
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
|
<div class="content">
|
||||||
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md11" style="height: 80px;">
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
</div>
|
||||||
<div class="content">
|
</div>
|
||||||
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
</div>
|
<div class="layui-col-md1">
|
||||||
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
|
<div class="content">
|
||||||
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
</div>
|
</div>
|
||||||
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
|
<div class="layui-col-md1">
|
||||||
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
|
<div class="content">
|
||||||
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
|
</div>
|
||||||
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-row layui-col-space10" style="margin: 15px;">
|
||||||
|
<div class="layui-col-md1">
|
||||||
|
<img src="../../admin/images/act.jpg" style="width: 100%;height: 100%;border-radius: 5px;" />
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md11" style="height: 80px;">
|
||||||
|
<div class="title">为什么程序员们愿意在GitHub上开源自己的成果给别人免费使用和学习?</div>
|
||||||
|
<div class="content">
|
||||||
|
“Git的精髓在于让所有人的贡献无缝合并。而GitHub的天才之处,在于理解了Git的精髓。”来一句我们程序员们接地气的话:分享是一种快乐~
|
||||||
|
</div>
|
||||||
|
<div class="comment">2020-06-12 评论 5 点赞 12 转发 4</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -142,12 +141,38 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="../../component/layui/layui.js"></script>
|
</div>
|
||||||
<script>
|
<script src="../../component/layui/layui.js"></script>
|
||||||
layui.use(['element'], function() {
|
<script>
|
||||||
var element = layui.element;
|
layui.use(['jquery', 'element', 'layer'], function () {
|
||||||
|
var element = layui.element,
|
||||||
|
layer = layui.layer,
|
||||||
|
$ = layui.jquery;
|
||||||
|
|
||||||
})
|
let MODULE_PATH = "operate/";
|
||||||
</script>
|
$("#userAvatar").attr("src", parent.layui.$(".layui-nav-img").attr("src"));
|
||||||
</body>
|
|
||||||
|
window.callback = function (data) {
|
||||||
|
layer.close(data.index);
|
||||||
|
|
||||||
|
$("#userAvatar").attr("src", data.newAvatar);
|
||||||
|
parent.layui.$(".layui-nav-img").attr("src", data.newAvatar);
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#userAvatar").click(function () {
|
||||||
|
layer.open({
|
||||||
|
type: 2,
|
||||||
|
title: '更换图片',
|
||||||
|
shade: 0.1,
|
||||||
|
area: ["900px", "500px"],
|
||||||
|
content: MODULE_PATH + 'uploadProfile.html',
|
||||||
|
btn: ['确定', '取消'],
|
||||||
|
yes: function (index, layero) {
|
||||||
|
window['layui-layer-iframe' + index].submitForm();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue