发送邮件配置邮件模板
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
background: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAHklEQVQImWNkYGBgYGD4//8/A5wF5SBYyAr+//8PAPOCFO0Q2zq7AAAAAElFTkSuQmCC) repeat;text-shadow: 5px -5px black, 4px -4px white;font-weight: bold;-webkit-text-fill-color: transparent;-webkit-background-clip: text
|
||||
}
|
||||
.invertedContent p{
|
||||
text-align: center;
|
||||
background: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAHklEQVQImWNkYGBgYGD4//8/A5wF5SBYyAr+//8PAPOCFO0Q2zq7AAAAAElFTkSuQmCC) repeat;text-shadow: 2px -2px black, 1px -1px white;font-weight: bold;-webkit-text-fill-color: transparent;-webkit-background-clip: text
|
||||
}
|
||||
#fastLink{
|
||||
@@ -30,7 +31,20 @@
|
||||
<div class="container ">
|
||||
<div class="jumbotron jumbotron-fluid mt-5">
|
||||
<div class="container">
|
||||
<h1 class="display-3 inverted">Quinn</h1>
|
||||
<h2 style="margin: 0;padding: 0;text-align: center;color: #3A3A3A;font-size: 30px;">
|
||||
<span style="width: 20px;height: 20px;background: #00C6FF;display: inline-block;position: relative;left: 10px;top: 5px;">
|
||||
</span>
|
||||
<i style="width: 20px;height: 20px;z-index: 2;background: #FFB900;display: inline-block;position: relative;left: -30px;top: 10px;">
|
||||
</i>
|
||||
<strong style="position: relative;">QUINN</strong>
|
||||
<b style="width: 20px;height: 20px;background: #00C6FF;display: inline-block;position: relative;left: 40px;top: 5px;">
|
||||
</b>
|
||||
<em style="width: 20px;height: 20px;background: #FFB900;display: inline-block;position: relative;left: 0px;top: 10px;">
|
||||
</em>
|
||||
</h2>
|
||||
<p style="margin: 0;padding: 0;text-align: center;color: #969696; font-size: 14px;">
|
||||
私人博客平台
|
||||
</p>
|
||||
<br/>
|
||||
<div class="lead invertedContent">
|
||||
<p>欢迎访问</p>
|
||||
@@ -41,7 +55,8 @@
|
||||
<p>戳下方了解详情↓↓↓</p>
|
||||
</div>
|
||||
<div id="fastLink" class="row">
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="ml-2 col-md-1">
|
||||
<a th:href="@{/blog/read/1}" class="text-dark font-weight-bold text-decoration-none">
|
||||
<p class= "badge badge-pill badge-dark">注册说明
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16">
|
||||
@@ -71,6 +86,7 @@
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
108
src/main/resources/templates/model.html
Normal file
108
src/main/resources/templates/model.html
Normal file
@@ -0,0 +1,108 @@
|
||||
<body>
|
||||
<style type="text/css">
|
||||
.qmbox body {
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
font-family: Microsoft Yahei, Tahoma, Arial;
|
||||
color: #333333;
|
||||
background-color: #fff;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.qmbox a {
|
||||
color: text-decoration: none
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.qmbox .body {
|
||||
color: #5E5E5E;
|
||||
}
|
||||
|
||||
.qmbox * {
|
||||
font-family: '微软雅黑';
|
||||
}
|
||||
|
||||
.qmbox a {
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.qmbox li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.qmbox table tr th {
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.qmbox table tr th li p {
|
||||
font-size: 18px;
|
||||
}
|
||||
</style>
|
||||
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" height="48"
|
||||
style="font-family:'Microsoft YaHei';">
|
||||
<tbody>
|
||||
<tr>
|
||||
<div style="width:800px;margin:0 auto;text-align:left;">
|
||||
<table width="944px" style="margin: 0 auto">
|
||||
<tbody>
|
||||
<tr style="width: 100%;height: 100px;">
|
||||
<td style="width: 994px;height: 100px;margin: 0 auto;padding-top: 10px;">
|
||||
<h2
|
||||
style="margin: 0;padding: 0;text-align: center;color: #3A3A3A;font-size: 30px;">
|
||||
<span
|
||||
style="width: 20px;height: 20px;background: #00C6FF;display: inline-block;position: relative;left: 10px;top: 5px;">
|
||||
</span>
|
||||
<i
|
||||
style="width: 20px;height: 20px;z-index: 2;background: #FFB900;display: inline-block;position: relative;left: -30px;top: 10px;">
|
||||
</i>
|
||||
<strong style="position: relative;">QUINN</strong>
|
||||
<b
|
||||
style="width: 20px;height: 20px;background: #00C6FF;display: inline-block;position: relative;left: 40px;top: 5px;">
|
||||
</b>
|
||||
<em
|
||||
style="width: 20px;height: 20px;background: #FFB900;display: inline-block;position: relative;left: 0px;top: 10px;">
|
||||
</em>
|
||||
</h2>
|
||||
<p
|
||||
style="margin: 0;padding: 0;text-align: center;color: #969696; font-size: 14px;">
|
||||
私人博客平台
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="min-height: 234px;width: 100%;margin-bottom: 20px;">
|
||||
<td
|
||||
style="min-height: 182px;width: 852px;margin: 0 auto;padding: 26px 46px;border: 1px #ECECEC solid;position: relative;">
|
||||
<span
|
||||
style="width: 8px;height: 35px;display: table-cell;background: #00C6FF;position: absolute;left: 31px;"></span>
|
||||
<h3
|
||||
style="display: table-cell;margin: 0;padding: 0;font-size: 22px;line-height: 35px;">
|
||||
注册成功
|
||||
</h3>
|
||||
<p style="margin: 0;padding: 0;font-size: 20px;margin-top: 20px;">
|
||||
尊敬的#!!#,您好!您已经注册成功,欢迎使用您的专属个人博客平台。
|
||||
</p>
|
||||
<a style="cursor: pointer;outline: none;text-decoration: none;width: 134px;height: 40px;margin-top: 36px;line-height: 40px;text-align:center;display: inline-block;background: #00C6FF;color: #fff;font-weight: 450;"
|
||||
href="https://www.qnforever.top"
|
||||
target="_blank" rel="noopener">
|
||||
访问
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="36px;">
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</tr>
|
||||
<tr>
|
||||
<div style="height: 400px;width:800px;margin:0 auto;background: url(https://www.qnforever.top/images/menu/register.png) no-repeat;background-size: 100% 100%;"></div>
|
||||
</tr>
|
||||
<tr>
|
||||
<p style="margin: 0 auto;text-align: center;">感谢! © Quinn</p>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
@@ -38,7 +38,7 @@
|
||||
<label for="code">注册码</label>
|
||||
<input id="code" type="text" name="code" class="form-control" placeholder="注册码" required>
|
||||
</div>
|
||||
<button class="btn btn-dark btn-block" type="button" onclick="javascript:registerSubmit();">注 册</button>
|
||||
<button class="btn btn-dark btn-block" type="button" onclick="registerSubmit();">注 册</button>
|
||||
<p class="mt-1 clearfix">
|
||||
<a style="color: white" th:href="@{/toLogin}" class="float-right text-decoration-none">已有账号?去登录</a>
|
||||
</p>
|
||||
@@ -85,12 +85,14 @@
|
||||
layer.open({ content: '注册码格式不正确', skin: 'msg', time: 2 });
|
||||
return;
|
||||
}
|
||||
console.log(123);
|
||||
$.ajax({
|
||||
url: "/checkRegister",
|
||||
async: false,
|
||||
type: "post",
|
||||
data: {"username":username,"password":password,"repassword":repassword,"email":email,"code":code},
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if(data == 'ok'){
|
||||
this.disabled = true;
|
||||
$('#registerForm').submit();
|
||||
|
||||
Reference in New Issue
Block a user