mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-24 13:11:46 +08:00
转移.net core 3.1,为.NET 5做准备
This commit is contained in:
45
OpenAuth.Mvc/wwwroot/userJs/changePwd.js
Normal file
45
OpenAuth.Mvc/wwwroot/userJs/changePwd.js
Normal file
@@ -0,0 +1,45 @@
|
||||
layui.config({
|
||||
base: "/js/"
|
||||
}).use(['form','vue', 'ztree', 'layer', 'jquery', 'table','droptree','openauth','utils'], function () {
|
||||
var form = layui.form,
|
||||
layer = layui.layer,
|
||||
$ = layui.jquery;
|
||||
var table = layui.table;
|
||||
var openauth = layui.openauth;
|
||||
var toplayer = (top == undefined || top.layer === undefined) ? layer : top.layer; //顶层的LAYER
|
||||
|
||||
var vm = new Vue({
|
||||
el: "#formEdit",
|
||||
data() {
|
||||
return {
|
||||
tmp: {
|
||||
Account: '',
|
||||
Password: '',
|
||||
ConfirmPassword: '',
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
var _this = this;
|
||||
$.get('/UserSession/GetUserName',
|
||||
function (data) {
|
||||
_this.tmp.Account = data;
|
||||
});
|
||||
form.render();
|
||||
}
|
||||
});
|
||||
|
||||
var url = "/UserManager/ChangePassword";
|
||||
//提交数据
|
||||
form.on('submit(formSubmit)',
|
||||
function (data) {
|
||||
$.post(url,
|
||||
data.field,
|
||||
function (data) {
|
||||
layer.msg(data.Message);
|
||||
},
|
||||
"json");
|
||||
return false;
|
||||
});
|
||||
//监听页面主按钮操作 end
|
||||
})
|
||||
Reference in New Issue
Block a user