处理用户头像无法修改问题

master
Bosen 2021-12-05 20:43:26 +08:00
parent 98fe77113f
commit 3bf1a349b2
9 changed files with 13 additions and 4 deletions

View File

@ -179,6 +179,11 @@
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</build>

View File

@ -1,3 +1,4 @@
# site-url: 119.91.222.184
site-url: 127.0.0.1
server:
port: 80

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

View File

@ -115,7 +115,7 @@
<table>
<tr>
<td>
<img id="header" th:src="@{${session.user.getHeader()}}" width="350" style="border-radius: 100%" onclick="upImg()">
<img id="header" th:src="@{${session.user.getHeader()}}" width="350" style="border-radius: 100%" onclick="upImgFunction()">
<br>
点击头像上传图片
<input id="upImg" name="img" type="file" style="width: 200px;display: none" onchange="showImg(this,'header')"/>
@ -183,7 +183,7 @@
reader.readAsDataURL(file)
}
function upImg(){
function upImgFunction(){
var upImg = document.getElementById("upImg");
upImg.click();
}

View File

@ -55,6 +55,9 @@
<button type="button" id="button" class="btn_sign_up" onclick="button()">注册</button>
</div>
</div>
<a th:href="@{/}" style="position: relative; top: 15px">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;访&nbsp;&nbsp;
</a>
</div>
</div>
</div>

View File

@ -80,14 +80,14 @@
<script th:src="@{/js/user/home/vendor/modernizr-2.8.3.min.js}"></script>
<style>
table {
background: #bcc2e4;
background: #c8d4e4;
border-radius: 20px;
width: 85%;
height: 100px;
color: darkslategrey;
}
pre {
background: #bcc2e4;
background: #c8d4e4;
border: 0;
}
.context{