1、用户资料加入[个人博客地址、码云/GitHub地址](部分用户开放设置)
2、加入用户信息接口UF/UI,优化用户信息设置代码
This commit is contained in:
@@ -307,7 +307,6 @@ layui.define(['laypage', 'fly', 'element', 'flow'], function(exports){
|
||||
$.post("/os/user/register",{
|
||||
bean:JSON.stringify(bean)
|
||||
},function (data) {
|
||||
data = JSON.parse(data);
|
||||
if(data.retcode != 0){
|
||||
layer.msg(data.retinfo);
|
||||
return false;
|
||||
@@ -357,6 +356,25 @@ layui.define(['laypage', 'fly', 'element', 'flow'], function(exports){
|
||||
return false;
|
||||
});
|
||||
|
||||
form.on('submit(set-blog)', function (data) {
|
||||
var bean = {},columns = ['site', 'git'];
|
||||
columns.forEach(function (value) {
|
||||
bean[value] = data.field[value]
|
||||
});
|
||||
|
||||
$.post("/os/user/update",{
|
||||
bean:JSON.stringify(bean)
|
||||
,columns:JSON.stringify(columns)
|
||||
},function (res) {
|
||||
if(res.retcode != 0){
|
||||
layer.msg(res.retinfo);
|
||||
return false;
|
||||
}
|
||||
location.reload();
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
|
||||
//帐号绑定
|
||||
|
Reference in New Issue
Block a user