1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
shaoying 2022-11-30 17:36:08 +08:00
parent e4a3a8b5ab
commit a8fd58f4e7

View File

@ -232,10 +232,9 @@ Volcanos("user", {info: {}, agent: {
{type: html.TD, list: [{text: can.user.trans(can, name, trans)}]}, {type: html.TD, list: [{text: can.user.trans(can, name, trans)}]},
{type: html.TD, list: [{type: html.INPUT, name: name, data: {type: type||html.TEXT}}]}, {type: html.TD, list: [{type: html.INPUT, name: name, data: {type: type||html.TEXT}}]},
]} } ]} }
var ui = can.onappend.tabview(can, { var ui = can.onappend.tabview(can, {
"扫码授权": function(target) { can.misc.WSS(can, {type: aaa.LOGIN, name: ""}, function(cmd, arg) { "扫码授权": function(target) { can.misc.WSS(can, {type: aaa.LOGIN, name: ""}, function(cmd, arg) {
if (cmd == cli.PWD) { return can.page.Modify(can, target, arg[2]), can.page.Append(can, target, [{text: "<br/>请授权: "+arg[0]}]), layout() } if (cmd == cli.PWD) { return can.page.Modify(can, target, arg[2]), can.page.Append(can, target, [{text: "<br/>请授权: "+arg[0]}]), can.onmotion.delay(can, function() { layout() }, 10) }
if (cmd == ice.MSG_SESSID) { return can.misc.CookieSessid(can, arg[0]), can.page.Remove(can, ui._target), can.base.isFunc(cb) && cb() } if (cmd == ice.MSG_SESSID) { return can.misc.CookieSessid(can, arg[0]), can.page.Remove(can, ui._target), can.base.isFunc(cb) && cb() }
}) }, }) },
"密码登录": function(target) { "密码登录": function(target) {