edit_info.html
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/index.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/mask.css">
<title>个人中心</title>
</head>
<body class="index_tenth_bgimg">
<include file="public@header"/>
<!--彈出框-->
<div class="mask">
</div>
<div class="index_nineteenth">
<div class="index_nineteenth_contant">
<div class="index_nineteenth_top">
<div class="index_nineteenth_title">
昵称
</div>
<div class="index_nineteenth_input">
<notempty name="user.user_nickname">
<input type="text" value="{$user.user_nickname}" id="nickname"/>
<else/>
<input type="text" value="" id="nickname"/>
</notempty>
</div>
</div>
<div class="index_nineteenth_btn save_info">
保存
</div>
</div>
<div class="index_ninth_photo">
<notempty name="user.avatar">
<img src="{:cmf_get_image_url($user.avatar)}" alt="">
<else/>
<img src="__TMPL__/public/assets/images/aicon_82.png" alt="">
</notempty>
</div>
<div class="index_tenth_bottom">
<p class="beian">
Copyright © 2004-2019 独角星球 版权所有
</p>
<p class="beian">
京ICP备17035112号-2
</p>
</div>
</div>
</body>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js"></script>
<script src="__TMPL__/public/assets/js/public.js"></script>
<script>
$(function(){
var source = $('#source').val();
if(source == '本站'){
$('.save_info').click(function(){
var nickname = $.trim($('#nickname').val());
$.ajax({
type: 'POST',
url: "/portal/login/updateNickname",
data: {
'nickname': nickname,
},
dataType: 'json',
success: function (data) {
console.log(data);
if (data.code == 1) {
mask(data.msg);
window.location.href = '/';
} else {
mask(data.msg);
}
}
});
});
}
});
</script>
</html>