2024-11-26 23:12:41 +08:00

29 lines
1.3 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", function(target) {
can.page.Append(can, target, [{type: html.INPUT, data: {type: html.BUTTON}, name: "verify", value: "发送验证码", 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, "验证码发送成功")
})
}}])
})
},
})