From 2d0636c7c4cf09a213501a9de654eee0c652d1ad Mon Sep 17 00:00:00 2001 From: dyy <18335927079@163.com> Date: Mon, 30 Nov 2020 15:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E2=80=9C=E6=88=91=E7=9A=84"=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E2=80=9D=E5=88=87=E6=8D=A2=E8=B4=A6=E5=8F=B7=E2=80=9C?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../www/pages/login/login.js | 19 ++- .../www/pages/my/bindaccount/bindaccount.css | 1 + .../www/pages/my/bindaccount/bindaccount.html | 19 +++ .../www/pages/my/bindaccount/bindaccount.js | 110 ++++++++++++++++++ .../www/pages/my/my.html | 4 + 5 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.css create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.html create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.js diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js index 1e2b59d9d..7a12c3612 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js +++ b/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) => { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.html new file mode 100644 index 000000000..62e68663e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/bindaccount/bindaccount.html @@ -0,0 +1,19 @@ +
绑定账号:
').dataFormatter({ value: _item.BindUserAccount })); + _$item.append($('绑定时间:
').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: ['登录'] // 列表行左滑按钮 + }; + return page; +})(); \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/my.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/my.html index 1e0fe96a2..2df72fc91 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/my.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/my.html @@ -19,6 +19,10 @@ 修改密码 +