Volcanos(chat.ONIMPORT, { _init: function(can, msg) { msg.IsDetail() && msg.Option("_share_content", msg.Append("issue_content")) can.onimport.myViewTabs(can, "status", msg, function(value) { return [ {view: html.TITLE, list: [value.title, can.onimport.spaceView(can, value), // value.issue_type != "feature" && can.onimport.textView(can, value, "issue_type"), // value.level != "level-3" && can.onimport.textView(can, value, "level"), // msg.IsTech() && value.price > 0 && can.onimport.unitView(can, value, "price", "元"), value.score != "3" && can.onimport.unitView(can, value, "score", "星"), can.onimport.textView(can, value, "status"), ]}, {view: html.STATUS, list: [ can.onimport.uidView(can, value), can.onimport.timeView(can, value), can.onimport.unitView(can, value, "plan_title"), can.onimport.unitView(can, value, "design_count", "个"), can.onimport.unitView(can, value, "task_count", "个"), ]}, {view: html.OUTPUT, list: [value.issue_content]}, can.onimport.titleAction(can, value), ] }) }, }) Volcanos(chat.ONACTION, { _beforeInputs: function(event, can, button, sub) { var msg = can.request(event) sub.Prompt("issue_content", "请输入五个功能名,每个功能简单明确,功能之间相互关联环环相扣,例如「工作职责、目标任务、工作报告、工作反馈、绩效评估」") sub.Prompt("link", "请输入设计链接,设置权限为所有人可查看,访问期限为永久。提交链接后,请及时与项目负责人联系,并根据反馈意见作出修改。") sub.Prompt("file_link", "请在项目验收完成之后,再上传设计文件。") button == "designCreate" && sub.Prompt("end_time", "请在三天之内完善功能清单,在五天之内提交原型链接,需要符合云社区的规范与标准,并及时与项目负责人沟通。") sub.Option("design_content", msg.Option("issue_content")) }, })