From e7c8114430e0ed726673646d8561332c3f6bc6c1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Nov 2024 10:27:16 +0800 Subject: [PATCH] add some --- index.css | 2 +- lib/user.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/index.css b/index.css index 3d1f07f3..a71bbd5b 100644 --- a/index.css +++ b/index.css @@ -471,7 +471,7 @@ body.width1>div.input td { padding:0; } body.width1 div.input.float table input { width:100% !important; } /* display */ fieldset:not(.Action) { position:relative; } -fieldset>form.option:not(.hide) { float:left; } +fieldset>form.option:not(.hide) { float:left; display:contents; } fieldset>div.action:not(.hide):not(.flex) { display:contents; } .hide, .hidden { display:none; } body:not(.mobile) fieldset:not(.Action):not(.output):not(.cmd)>div.action:not(.hide):not(.flex) { display:flex; overflow:hidden; } fieldset.panel>legend, fieldset.panel>div.status { display:none; } diff --git a/lib/user.js b/lib/user.js index 8f13e6a5..fbb5e406 100644 --- a/lib/user.js +++ b/lib/user.js @@ -45,7 +45,9 @@ Volcanos("user", { confirm: function(text) { return confirm(JSON.stringify(text)) }, prompt: function(tip, def, cb, silent) { (text = silent? def: prompt(tip, def||"")) != undefined && typeof cb == code.FUNCTION && cb(text); return text }, reload: function(force) { (force || confirm("重新加载页面?")) && location.reload() }, - jumps: function(url) { location.href = url }, + jumps: function(url) { + location.href = url + }, opens: function(url) { if (window.parent && window.parent.openurl) { return window.parent.openurl(url) } window.openurl? window.openurl(url): this.open(url) @@ -362,7 +364,9 @@ Volcanos("user", { can.user.trans(can, kit.Dict(value.name, value.help)) if (value.type == "oauth") { hassso = true } if (value.type == cli.QRCODE) { - _list.push(value.name), list[value.name] = function(target) { can.page.Modify(can, target, arg[2]) } + _list.push(value.name), list[value.name] = function(target) { + can.user.isWeiXin || can.page.Modify(can, target, arg[2]) + } } else if (value.type == mdb.PLUGIN) { _list.push(value.name), list[value.name] = function(target) { can.onappend.plugin(can, {space: value.space, index: value.index, args: can.core.Split(value.args), height: html.QRCODE_HEIGHT, width: 420, style: html.OUTPUT}, function(sub) {