mirror of
https://shylinux.com/x/education
synced 2025-04-25 10:08:05 +08:00
19 lines
852 B
JavaScript
19 lines
852 B
JavaScript
Volcanos(chat.ONIMPORT, {
|
|
_init: function(can, msg) { msg.Option("_share_title", msg.Option("school_name"))
|
|
can.ui = can.page.Appends(can, can._output, [html.HEAD, html.LIST])
|
|
can.page.Append(can, can.ui.head, [{img: can.misc.Resource(can, "usr/icons/background.jpg")}])
|
|
can.page.Append(can, can.ui.head, [can.onimport.itemcard(can, {avatar: msg.Option("school_avatar")}, [
|
|
{view: html.TITLE, list: [msg.Option("school_name"), can.onimport.titleAction(can, msg)]},
|
|
{view: html.STATUS, list: [msg.Option("school_info")]},
|
|
])])
|
|
can.onimport.myView(can, msg, function(value) {
|
|
return [
|
|
{view: html.TITLE, list: [value.name]},
|
|
{view: html.STATUS, list: [value.info]},
|
|
]
|
|
}, function(event, value) {
|
|
// can.onimport.myPlugin(can, {space: value.space, index: value.index, args: [value.place_uid]})
|
|
}, can.ui.list)
|
|
},
|
|
})
|