mirror of
https://shylinux.com/x/education
synced 2025-04-25 10:08:05 +08:00
13 lines
659 B
JavaScript
13 lines
659 B
JavaScript
Volcanos(chat.ONIMPORT, {
|
|
_init: function(can, msg) {
|
|
if (msg.IsDetail()) { var value = msg.TableDetail(); msg.Option("_share_title", value.title), msg.Option("_share_content", value.content) }
|
|
can.onimport.itemcards(can, msg, function(value) { return [
|
|
{view: html.TITLE, list: [{text: value.title}]},
|
|
{view: html.STATUS, list: [
|
|
{text: value.uid.slice(0, 6)}, {text: can.base.TimeTrim(value.created_at)},
|
|
{text: value.user_name}, {text: [can.user.transValue(can, value, "user_class_role"), "", [aaa.ROLE, can.onimport.roleStyle(can, value, "user_class_role")]]},
|
|
]},
|
|
{view: html.OUTPUT, list: [{text: value.content}]},
|
|
] })
|
|
},
|
|
}) |