|
|
|
@@ -1,6 +1,9 @@ |
|
|
|
{{template "base/head" .}} |
|
|
|
|
|
|
|
<div class="user settings profile"> |
|
|
|
|
|
|
|
{{template "user/settings/navbar" .}} |
|
|
|
<div class="alert" style="top: 0;"></div> |
|
|
|
<div class="ui container"> |
|
|
|
{{template "base/alert" .}} |
|
|
|
<h4 class="ui top attached header"> |
|
|
|
@@ -111,44 +114,43 @@ |
|
|
|
</div> |
|
|
|
{{else}} |
|
|
|
<div> |
|
|
|
<table class="ui celled striped table provider titleless"> |
|
|
|
<thead> |
|
|
|
<th class="center aligned"> |
|
|
|
绑定账号信息 |
|
|
|
</th> |
|
|
|
<th class="center aligned"> |
|
|
|
详情 |
|
|
|
</th> |
|
|
|
<th class="center aligned"> |
|
|
|
绑定时间 |
|
|
|
</th> |
|
|
|
<th class="center aligned"> |
|
|
|
操作 |
|
|
|
</th> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<td class="center aligned"> |
|
|
|
微信 |
|
|
|
</td> |
|
|
|
<td class="center aligned"> |
|
|
|
<img class="ui avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">{{.SignedUser.Name}} |
|
|
|
</td> |
|
|
|
<td class="center aligned"> |
|
|
|
2022-02-23 14:48 |
|
|
|
</td> |
|
|
|
<td class="center aligned"> |
|
|
|
<div> |
|
|
|
<a class="ui inverted orange button " onclick="showcreate(this)" href="javascript: void(0)">解除绑定</a> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
<table class="ui celled striped table provider titleless"> |
|
|
|
<thead> |
|
|
|
<th class="center aligned"> |
|
|
|
绑定账号信息 |
|
|
|
</th> |
|
|
|
<!-- <th class="center aligned"> |
|
|
|
详情 |
|
|
|
</th> --> |
|
|
|
<th class="center aligned"> |
|
|
|
绑定时间 |
|
|
|
</th> |
|
|
|
<th class="center aligned"> |
|
|
|
操作 |
|
|
|
</th> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<td class="center aligned"> |
|
|
|
微信 |
|
|
|
</td> |
|
|
|
<!-- <td class="center aligned"> |
|
|
|
<img class="ui avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">{{.SignedUser.Name}} |
|
|
|
</td> --> |
|
|
|
<td class="center aligned"> |
|
|
|
{{TimeSinceUnix1 .SignedUser.WechatBindTime}} |
|
|
|
<td class="center aligned"> |
|
|
|
<div> |
|
|
|
<a class="ui inverted orange button " onclick="showcreate(this)" href="javascript: void(0)">解除绑定</a> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="ui mini modal second"> |
|
|
|
<div class="ui mini modal wx-unbind"> |
|
|
|
<div class="header">确定要解绑微信?</div> |
|
|
|
<div class="content"> |
|
|
|
<p>解绑后将无法使用云脑计算资源</p> |
|
|
|
@@ -162,16 +164,17 @@ |
|
|
|
{{template "base/footer" .}} |
|
|
|
<script> |
|
|
|
function showcreate(obj){ |
|
|
|
console.log({{.SignedUser.WechatBindTime}}) |
|
|
|
const {csrf} = window.config |
|
|
|
$('.ui.modal.second') |
|
|
|
$('.ui.modal.wx-unbind') |
|
|
|
.modal({ |
|
|
|
onShow:function(){ |
|
|
|
}, |
|
|
|
onHide:function(){ |
|
|
|
}, |
|
|
|
onApprove:function($element){ |
|
|
|
console.log($element) |
|
|
|
$.post('/authentication/wechat/unbind',{_csrf:csrf},(data)=>{ |
|
|
|
$('.alert').html('解绑成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); |
|
|
|
window.location.href = '/user/settings' |
|
|
|
}) |
|
|
|
} |
|
|
|
|