You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.1 KiB
87 lines
2.1 KiB
@{
|
|
ViewBag.Title = "个人中心-联系方式";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<style>
|
|
.lr-form-wrap {
|
|
padding: 0;
|
|
}
|
|
|
|
.lr-form-item {
|
|
width: 500px;
|
|
padding: 5px 0 5px 80px;
|
|
float: initial;
|
|
}
|
|
|
|
.lr-form-item-title {
|
|
width: 80px;
|
|
text-align: left;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.form-control {
|
|
border-radius: 4px;
|
|
}
|
|
</style>
|
|
<div class="lr-form-wrap" id="form">
|
|
<div class="lr-form-item">
|
|
<div class="lr-form-item-title">手机</div>
|
|
<input id="F_Mobile" type="text" class="form-control" />
|
|
</div>
|
|
<div class="lr-form-item">
|
|
<div class="lr-form-item-title">电话</div>
|
|
<input id="F_Telephone" type="text" class="form-control" />
|
|
</div>
|
|
<div class=" lr-form-item">
|
|
<div class="lr-form-item-title">邮箱</div>
|
|
<input id="F_Email" type="text" class="form-control" />
|
|
</div>
|
|
<div class="lr-form-item">
|
|
<div class="lr-form-item-title">QQ</div>
|
|
<input id="F_OICQ" type="text" class="form-control" />
|
|
</div>
|
|
<div class="lr-form-item">
|
|
<div class="lr-form-item-title">微信</div>
|
|
<input id="F_WeChat" type="text" class="form-control" />
|
|
</div>
|
|
<div class="lr-form-item"><a class="btn btn-primary" id="lr_save_btn"><i class="fa fa-save"></i> 保 存</a></div>
|
|
</div>
|
|
<script>
|
|
var baseinfo;
|
|
var bootstrap = function ($, learun) {
|
|
"use strict";
|
|
|
|
var getBaseinfo = function (callback) {
|
|
baseinfo = learun.frameTab.currentIframe().baseinfo;
|
|
if (!baseinfo) {
|
|
setTimeout(function () { getBaseinfo(callback) }, 100);
|
|
}
|
|
else {
|
|
callback();
|
|
}
|
|
};
|
|
|
|
var page = {
|
|
init: function () {
|
|
getBaseinfo(function () {
|
|
page.bind();
|
|
page.initData();
|
|
});
|
|
},
|
|
bind: function () {
|
|
$('#lr_save_btn').on('click', function () {
|
|
var postData = $('#form').lrGetFormData();
|
|
$.lrSaveForm(top.$.rootUrl + '/LR_OrganizationModule/User/SaveForm?keyValue=' + baseinfo.userId, postData, function (res) { });
|
|
});
|
|
},
|
|
initData: function () {
|
|
$('#F_Mobile').val(baseinfo.F_Mobile);
|
|
$('#F_Telephone').val(baseinfo.F_Telephone);
|
|
$('#F_Email').val(baseinfo.F_Email);
|
|
$('#F_WeChat').val(baseinfo.F_WeChat);
|
|
$('#F_OICQ').val(baseinfo.F_OICQ);
|
|
}
|
|
};
|
|
page.init();
|
|
}
|
|
</script>
|