mirror of
https://shylinux.com/x/community
synced 2025-04-25 17:48:06 +08:00
add some
This commit is contained in:
parent
409aa0aed9
commit
8cda9be1b6
@ -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;
|
||||
}
|
@ -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)
|
||||
})
|
||||
},
|
||||
})
|
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user