mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 08:37:28 +08:00
修改个人信息界面去掉vue
This commit is contained in:
parent
838eb134e5
commit
99574e1e91
@ -4,12 +4,12 @@
|
||||
<link rel="stylesheet" href="/js/dtree/dtree.css" />
|
||||
<link rel="stylesheet" href="/js/dtree/font/dtreefont.css" />
|
||||
}
|
||||
<form class="layui-form layui-form-pane" action="" id="formEdit">
|
||||
<form class="layui-form layui-form-pane" action="" id="formEdit" lay-filter="formEdit">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">账号</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="Account" v-model="tmp.Account" required lay-verify="required"
|
||||
<input type="text" name="Account" required lay-verify="required"
|
||||
readonly="readonly" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
@ -17,15 +17,15 @@
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">姓名</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="Name" v-model="tmp.Name" required lay-verify="required"
|
||||
<input type="text" name="Name" required lay-verify="required"
|
||||
class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">性别</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="Sex" value="1" title="男" v-model="tmp.Sex" >
|
||||
<input type="radio" name="Sex" value="0" title="女" v-model="tmp.Sex" >
|
||||
<input type="radio" name="Sex" value="1" title="男" >
|
||||
<input type="radio" name="Sex" value="0" title="女" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -64,4 +64,4 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="/userJs/profile.js"></script>
|
||||
<script type="text/javascript" src="/userJs/profile.js?v3"></script>
|
@ -1,6 +1,6 @@
|
||||
layui.config({
|
||||
base: "/js/"
|
||||
}).use(['form','vue', 'ztree', 'layer', 'jquery', 'table','droptree','openauth','utils','cookie'], function () {
|
||||
}).use(['form','ztree', 'layer', 'jquery', 'table','droptree','openauth','utils','cookie'], function () {
|
||||
var form = layui.form,
|
||||
layer = layui.layer,
|
||||
$ = layui.jquery;
|
||||
@ -98,33 +98,11 @@ layui.config({
|
||||
}
|
||||
}();
|
||||
|
||||
var vm = new Vue({
|
||||
el: "#formEdit",
|
||||
data() {
|
||||
return {
|
||||
tmp: {
|
||||
Account: '',
|
||||
Name: '',
|
||||
Sex: '',
|
||||
}
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
tmp(val){
|
||||
this.$nextTick(function () {
|
||||
form.render(); //刷新select等
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
var _this = this;
|
||||
$.get('/UserSession/GetUserProfile',
|
||||
function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
_this.tmp = obj.Result;
|
||||
});
|
||||
}
|
||||
});
|
||||
$.get('/UserSession/GetUserProfile',
|
||||
function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
form.val("formEdit", obj.Result);
|
||||
});
|
||||
|
||||
var url = "/UserManager/ChangeProfile";
|
||||
//提交数据
|
||||
|
Loading…
Reference in New Issue
Block a user