Commit c3f7d2e2 by 陈超

T

parent a62ce955
......@@ -298,6 +298,14 @@ div::-webkit-scrollbar {
color:rgba(255,255,255,1);
}
.confirm_button:hover {
background: rgba(163,228,96,0.5);
}
.confirm_button:focus {
background: rgba(163,228,96,0.5);
}
.confirm_button_disable {
box-sizing: border-box;
height:44px;
......@@ -316,18 +324,6 @@ div::-webkit-scrollbar {
color:rgba(255,255,255,1);
}
.confirm_button:hover {
background: rgba(163,228,96,0.5);
}
.confirm_button:active {
background: rgba(163,228,96,0.5);
}
.confirm_button:focus {
background: rgba(163,228,96,0.5);
}
.item_green_button {
display: flex;
box-sizing: border-box;
......
......@@ -207,10 +207,31 @@
},
methods: {
onConfirm: function() {
let that = this
if (that.currentNickName.length == 0) {
ui.error('昵称必须要填写')
return
}
if (!/^[\u4E00-\u9FA5\w]{1,}$/.test(that.currentNickName)) {
ui.error('昵称仅支持中英文、数字、下划线')
return
}
$.post(U('home/User/saveUser'), {}, function (data) {
if (data.status) {
ui.success('基本信息更改成功');
setTimeout('window.location.reload();', 2000);
} else {
ui.error(data.info);
}
}, 'json');
},
onRead: function(r) {
console.log(r)
return
core.plugInit('uploadFile', obj, function (data) {
let picurl = data.save_path + data.save_name;
}, 'image');
},
onNickName: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment