mirror of
https://shylinux.com/x/community
synced 2025-04-26 01:54:05 +08:00
14 lines
704 B
JavaScript
14 lines
704 B
JavaScript
Volcanos(chat.ONIMPORT, {
|
|
_init: function(can, msg) { var USER_PLACE_ROLE = "user_place_role"
|
|
if (msg.IsDetail()) { can.onexport.share_title(can, msg, USER_PLACE_ROLE); return msg.Show(can) }
|
|
can.onimport.itemcards(can, msg, function(value) { value._style = [value[USER_PLACE_ROLE]]
|
|
return [
|
|
{view: html.TITLE, list: [{text: value.user_name},
|
|
{text: [can.user.transValue(can, value, USER_PLACE_ROLE), "", [aaa.ROLE, value[USER_PLACE_ROLE]]]},
|
|
]},
|
|
{view: html.STATUS, list: [{text: value.uid.slice(0, 6)}, {text: can.base.TimeTrim(value.created_at)}]},
|
|
{view: html.STATUS, list: [{text: value.begin_time.split(" ")[0]}, {text: value.end_time.split(" ")[0]}]},
|
|
]
|
|
})
|
|
},
|
|
}) |