mirror of
https://shylinux.com/x/community
synced 2025-05-13 00:30:15 +08:00
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
Volcanos(chat.ONIMPORT, {
|
|
_init: function(can, msg) {
|
|
can.onimport.myView(can, msg, function(value) { return [
|
|
// {view: html.TITLE, list: [value.title]},
|
|
// {view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
|
{view: html.TITLE, list: [value.name]},
|
|
{view: html.STATUS, list: [value.number]},
|
|
{view: html.STATUS, list: [value.address]},
|
|
{view: html.OUTPUT, list: [{img: can.misc.Resource(can, value.path)}]},
|
|
] }, function(event, value) {})
|
|
},
|
|
})
|
|
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>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")
|
|
})
|
|
}
|
|
can.runAction(can.request(event, sub.Option(), {verify: "000"}), "verify", [], function() {
|
|
can.user.toast(can, "验证码发送成功")
|
|
})
|
|
}}], target)
|
|
})
|
|
},
|
|
}) |