1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-06-14 19:33:49 +08:00
parent d264cd3261
commit 0959289870
2 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,9 @@ func init() {
), Actions: ice.MergeActions(ice.Actions{ ), Actions: ice.MergeActions(ice.Actions{
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
ice.AddRender(ice.RENDER_QRCODE, func(m *ice.Message, args ...ice.Any) string { ice.AddRender(ice.RENDER_QRCODE, func(m *ice.Message, args ...ice.Any) string {
if m.IsMobileUA() {
m.Option(SIZE, "280")
}
return m.Cmd(Prefix(QRCODE), kit.Simple(args...)).Result() return m.Cmd(Prefix(QRCODE), kit.Simple(args...)).Result()
}) })
}}, }},

View File

@ -42,6 +42,7 @@ func init() {
"wx:key", code.FUNCTION, "wx:key", code.FUNCTION,
"bindtap", code.FUNCTION, "bindtap", code.FUNCTION,
"bindchange", code.FUNCTION, "bindchange", code.FUNCTION,
"bindconfirm", code.FUNCTION,
"bindinput", code.FUNCTION, "bindinput", code.FUNCTION,
"bindblur", code.FUNCTION, "bindblur", code.FUNCTION,
"data-name", code.FUNCTION, "data-name", code.FUNCTION,