community/src/gonganxitong/goodslist.js
2024-12-06 18:14:00 +08:00

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]},
] })
},
})