mirror of
https://shylinux.com/x/community
synced 2025-05-06 05:57:02 +08:00
18 lines
619 B
JavaScript
18 lines
619 B
JavaScript
Volcanos(chat.ONIMPORT, {
|
|
_init: function(can, msg) {
|
|
if (can.Option(UID)) {
|
|
can.onimport.myView(can, msg, function(value) { return [
|
|
{view: html.TITLE, list: [value.title]},
|
|
{view: html.OUTPUT, list: [value.content]},
|
|
] }, function() {
|
|
|
|
})
|
|
return
|
|
}
|
|
can.onimport.myView(can, msg, function(value) { return [
|
|
{view: html.TITLE, list: [value.title, "¥ "+value.price/100+" / 月", can.onimport.titleAction(can, value)]},
|
|
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
|
{view: html.OUTPUT, list: [value.content]},
|
|
] })
|
|
},
|
|
}) |