소스 검색

【增加】移动端“我的"增加”切换账号“;

西昌缴费二期
dyy 4 년 전
부모
커밋
2d0636c7c4
5개의 변경된 파일152개의 추가작업 그리고 1개의 파일을 삭제
  1. +18
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.css
  3. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.html
  4. +110
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.js
  5. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/my.html

+ 18
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js 파일 보기

@@ -1,7 +1,24 @@
(function () {
var isBindAccountLogin = '';//切换账号登录
var bindUserName = '';//绑定账号
var bindUserPassword = '';//绑定账号密码

var page = {
headColor: '#ffffff',
init: function ($page) {
init: function ($page, param) {
//切换账号登录时:登录页赋值,触发登录事件;
isBindAccountLogin = param.isBindAccountLogin;
bindUserName = param.bindUserName;
bindUserPassword = param.bindUserPassword;
if (isBindAccountLogin == 1) {
$page.find('#account').val(bindUserName);
$page.find('#password').val(bindUserPassword);
var timer = setTimeout(function () {
$page.find('#loginBtn').trigger("tap");
clearTimeout(timer);
}, 3000);
}

var path = config.webapi;
learun.http.get(path + "Learun/EducationalAdministration/EmpRegister/registerbutton",
{}, (res) => {


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.css 파일 보기

@@ -0,0 +1 @@


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.html 파일 보기

@@ -0,0 +1,19 @@
<div class="lr-page lr-EducationalAdministrationLoginUserBind-page">
<div class="lr-page-tool">
<div class="lr-tool-left">
总共<span class="lr-badge lr-badge-primary">0</span>条
</div>
<div class="lr-tool-right">
<div class="lr-tool-right-btn lr_multiple_search">
<i class="iconfont icon-searchlist"></i>
<div class="lr-tool-right-btn-content lr-form-container">
<div class="lr-form-row">
<label>绑定账号</label>
<input id="BindUserAccount" type="text">
</div>
</div>
</div>
</div>
</div>
<div class="lr-page-content" id="lr_EducationalAdministrationLoginUserBind_list"></div>
</div>

+ 110
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.js 파일 보기

@@ -0,0 +1,110 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2020-11-19 14:50
* 描 述:切换账号
*/
(function () {
var begin = '';
var end = '';
var multipleData = null;
var userinfo = null;
var page = {
grid: null,
init: function ($page) {
// 获取登录者信息
userinfo = learun.storage.get('userinfo');
begin = '';
end = '';
multipleData = null;
page.grid = $page.find('#lr_EducationalAdministrationLoginUserBind_list').lrpagination({
lclass: page.lclass,
rows: 10, // 每页行数
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调
param.multipleData = multipleData;
page.loadData(param, callback, $page);
},
renderData: function (_index, _item, _$item) {// 渲染数据模板
return page.rowRender(_index, _item, _$item, $page);
},
click: function (item, $item, $et) {// 列表行点击事件
if ($et.hasClass('lr-btn-danger')) {
page.btnClick(item, $item, $page);
}
else {
//page.rowClick(item, $item, $page);
}
},
btns: page.rowBtns
});
// 多条件查询
var $multiple = $page.find('.lr_multiple_search').multiplequery({
callback: function (data) {
begin = '';
end = '';
multipleData = data || {};
page.grid.reload();
}
});
},
lclass: 'lr-list',
loadData: function (param, callback, $page) {// 列表加载后台数据
var _postParam = {
pagination: {
rows: param.rows,
page: param.page,
sidx: 'CreateTime desc',
sord: 'DESC'
},
queryJson: JSON.stringify({ CreateUserId: learun.storage.get('userinfo').baseinfo.userId })
};
if (param.multipleData) {
multipleData.CreateUserId = learun.storage.get('userinfo').baseinfo.userId;
_postParam.queryJson = JSON.stringify(multipleData);
}
if (param.begin && param.end) {
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, CreateUserId: learun.storage.get('userinfo').baseinfo.userId });
}
learun.httpget(config.webapi + 'learun/EducationalAdministration/LoginUserBind/pagelist', _postParam, (data) => {
$page.find('.lr-badge').text('0');
if (data) {
$page.find('.lr-badge').text(data.records);
callback(data.rows, parseInt(data.records));
}
else {
callback([], 0);
}
});
},
rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据
_$item.addClass('lr-list-item lr-list-item-multi');
_$item.append($('<p class="lr-ellipsis"><span>绑定账号:</span></p>').dataFormatter({ value: _item.BindUserAccount }));
_$item.append($('<p class="lr-ellipsis"><span>绑定时间:</span></p>').dataFormatter({
value: _item.CreateTime,
type: 'datetime',
dateformat: 'yyyy-MM-dd hh:mm:ss'
}));
return '';
},
//rowClick: function (item, $item, $page) {// 列表行点击触发方法
// learun.nav.go({ path: 'EducationalAdministration/LoginUserBind/form', title: '详情', type: 'right', param: { keyValue: item.Id } });
//},
btnClick: function (item, $item, $page) {// 左滑按钮点击事件
//安全退出;自动登录;
learun.isOutLogin = true;
learun.storage.set('logininfo', null);
learun.nav.go({ path: 'login', isBack: false, isHead: false, param: { isBindAccountLogin: 1, bindUserName: item.BindUserAccount, bindUserPassword: item.BindUserPassword } });
if (learun.storage.get("Ip") != null && learun.storage.get("ACIp") != "") {
//Ip上网
sendToAc(learun.storage.get("ACIp"), 'logout', learun.storage.get("Ip"), userinfo.baseinfo.account, '');
}
if (learun.storage.get("Ip") != null && learun.storage.get("ACIp2") != "") {
//Ip上网
sendToAc(learun.storage.get("ACIp2"), 'logout', learun.storage.get("Ip"), userinfo.baseinfo.account, '');
}
},
rowBtns: ['<a class="lr-btn-danger">登录</a>'] // 列表行左滑按钮
};
return page;
})();

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/my.html 파일 보기

@@ -19,6 +19,10 @@
<i class="iconfont icon-write"></i>
<a class="lr-nav-right">修改密码</a>
</div>
<div class="lr-list-item lr-list-item-icon" data-value="bindaccount">
<i class="iconfont icon-group"></i>
<a class="lr-nav-right">切换账号</a>
</div>
</div>
<div class="lr-list" style="margin-top:15px;">
<div class="lr-list-item" id="unbundweixin" style="padding-left:38px;">解绑微信</div>


불러오는 중...
취소
저장