diff --git a/src/renzhengshouquan/cert.css b/src/renzhengshouquan/cert.css index cc4c03e..5dbcab9 100644 --- a/src/renzhengshouquan/cert.css +++ b/src/renzhengshouquan/cert.css @@ -1,4 +1,8 @@ $output div.item.card div.output div.output img { height:unset; width:100%; margin-right:0; } -$input div.item.text.verify input[type=button] { - border-radius:0; height:30px; position:absolute; right:1px; width:unset; +$input div.item.text.verify div.verify { + border-radius:0; + line-height:30px; height:30px; + border-left:var(--box-border); + position:absolute; right:1px; width:unset; + padding-left:24px; padding-right:24px; } \ No newline at end of file diff --git a/src/renzhengshouquan/cert.js b/src/renzhengshouquan/cert.js index 75a5f6d..0bff555 100644 --- a/src/renzhengshouquan/cert.js +++ b/src/renzhengshouquan/cert.js @@ -13,8 +13,8 @@ Volcanos(chat.ONIMPORT, { Volcanos(chat.ONACTION, { upload: function(event, can) { can.user.upload(can.request(event, {_handle: ice.TRUE}), can) }, beforeInputs: function(event, can, button, sub) { - can.page.Select(can, sub._target, "table>tr>td>div.item.text.verify", function(target) { - can.page.Append(can, target, [{type: html.INPUT, data: {type: html.BUTTON}, name: "verify", value: "发送验证码", onclick: function(event) { + can.page.Select(can, sub._target, "table>tr>td>div.item.text.verify>input", function(target) { + can.page.insertBefore(can, [{view: ["verify", "", "发送验证码"], onclick: function(event) { if (sub.Option("mobile") == "") { return can.onmotion.delay(can, function() { can.user.toast(can, "手机号不能为空"), sub.focus("mobile") @@ -23,7 +23,7 @@ Volcanos(chat.ONACTION, { can.runAction(can.request(event, sub.Option(), {verify: "000"}), "verify", [], function() { can.user.toast(can, "验证码发送成功") }) - }}]) + }}], target) }) }, }) \ No newline at end of file diff --git a/src/renzhengshouquan/portal.go b/src/renzhengshouquan/portal.go index fdf8446..4a5261d 100644 --- a/src/renzhengshouquan/portal.go +++ b/src/renzhengshouquan/portal.go @@ -17,8 +17,8 @@ type Portal struct { func (s Portal) List(m *ice.Message, arg ...string) { s.Portal.List(m, arg...) - kit.If(len(arg) == 0 && m.Length() > 0, func() { m.PushAction(s.PlaceRemove) }) - m.Sort("auth_status,auth_type,created_at", []string{"2"}, []string{"root", "city", "street", "school", "company", "service", "personal"}, "str_r") + kit.If(len(arg) == 0 && m.Length() > 0, func() { m.PushAction(s.PlaceRemove).Action() }) + m.Sort("auth_status,auth_type,created_at", []string{"2"}, []string{"personal", "root", "city", "street", "school", "company", "service"}, ice.STR_R) } func (s Portal) PlaceCreate(m *ice.Message, arg ...string) { switch AuthType(kit.Int(m.Option(model.AUTH_TYPE))) {