diff --git a/root/jie/detail.html b/root/jie/detail.html
index d7b5efe..20ad04b 100644
--- a/root/jie/detail.html
+++ b/root/jie/detail.html
@@ -79,6 +79,17 @@
#(bean.content??)
+
+ #if(bean.site?? || bean.git??)
+
+ #if(bean.site??)
+ 个人博客地址:#(bean.site??)
+ #end
+ #if(bean.git??)
+ 码云/GitHub:#(bean.git??)
+ #end
+
+ #end
diff --git a/root/res/mods/user.js b/root/res/mods/user.js
index 9302fdc..9a9f809 100644
--- a/root/res/mods/user.js
+++ b/root/res/mods/user.js
@@ -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;
+ });
+
//帐号绑定
diff --git a/root/user/set.html b/root/user/set.html
index 4d73e89..5865236 100644
--- a/root/user/set.html
+++ b/root/user/set.html
@@ -20,6 +20,9 @@