This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-14 00:36:28 +08:00
parent 40f5859568
commit 1f0f3982ec
14 changed files with 26 additions and 25 deletions

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) { can.onimport.shareTitle(can, msg, "uid", "amount")
can.onimport.itemcards(can, msg, function(value) { return [
_init: function(can, msg) {
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.user_name, can.onimport.textView(can, value, "express_status", mdb.STATUS)]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at)]},
{view: html.STATUS, list: [value.company_name+":", value.open_id]},

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.itemcards(can, msg, function(value) { return [
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.name||value.user_name||"待确认", can.onimport.textView(can, value, "order_type", mdb.TYPE)]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at), can.onimport.textView(can, value, "order_status", mdb.STATUS)]},
{view: html.STATUS, list: ["数量:", value.total, "件", "总额:", value.amount, "元"]},

View File

@ -1,6 +1,7 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) { msg.Option("_share_title", can.Option("uid").slice(0, 6))
can.onimport.itemcards(can, msg, function(value) { return [
_init: function(can, msg) {
msg.Option("_share_title", can.Option("uid").slice(0, 6))
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.name, can.onimport.textView(can, value, "product_type", mdb.TYPE)]},
{view: html.STATUS, list: ["单价: ", value.price, " 元", "数量: ", value.count, " ", value.unit]},
{view: html.OUTPUT, list: [value.info]},

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) { can.onimport.shareTitle(can, msg, "uid", "amount")
can.onimport.itemcards(can, msg, function(value) { return [
_init: function(can, msg) {
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.user_name, can.onimport.textView(can, value, "payment_status", mdb.STATUS)]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at)]},
{view: html.STATUS, list: [value.company_name, ": ", value.open_id]},

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.itemcards(can, msg, function(value) { return [
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.name, can.onimport.textView(can, value, "product_type", mdb.TYPE)]},
{view: html.STATUS, list: ["单价:", value.price, "元", "库存:", value.stock, value.unit, value.shop_name||"", value.warehouse_name||""]},
{view: html.OUTPUT, list: [value.info]},

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) { can.onimport.shareTitle(can, msg, "uid", "amount")
can.onimport.itemcards(can, msg, function(value) { return [
_init: function(can, msg) {
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.user_name, can.onimport.textView(can, value, "refund_status", mdb.STATUS)]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at)]},
{view: html.STATUS, list: [value.company_name, ": ", value.open_id]},

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) { can.onimport.shareTitle(can, msg, "uid", "amount")
can.onimport.itemcards(can, msg, function(value) { return [
_init: function(can, msg) {
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.user_name, can.onimport.textView(can, value, "return_status", mdb.STATUS)]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at)]},
{view: html.STATUS, list: [value.company_name+":", value.open_id]},

View File

@ -9,8 +9,8 @@ type target struct {
remove string `name:"remove" role:"leader"`
}
func (s target) Create(m *ice.Message, arg ...string) { s.Table.ValueCreate(m, arg...) }
func (s target) Remove(m *ice.Message, arg ...string) { s.Table.ValueRemove(m, arg...) }
func (s target) List(m *ice.Message, arg ...string) { s.Table.ValueList(m, arg).Display("") }
func (s target) Create(m *ice.Message, arg ...string) { s.ValueCreate(m, arg...) }
func (s target) Remove(m *ice.Message, arg ...string) { s.ValueRemove(m, arg...) }
func (s target) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") }
func init() { ice.TeamCtxCmd(target{}) }

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.itemcards(can, msg, function(value) { return [
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.title]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at), value.user_name]},
{view: html.OUTPUT, list: [value.content]},

View File

@ -9,8 +9,8 @@ type promotion struct {
remove string `name:"remove" role:"leader"`
}
func (s promotion) Create(m *ice.Message, arg ...string) { s.Table.ValueCreate(m, arg...) }
func (s promotion) Remove(m *ice.Message, arg ...string) { s.Table.ValueRemove(m, arg...) }
func (s promotion) List(m *ice.Message, arg ...string) { s.Table.ValueList(m, arg).Display("") }
func (s promotion) Create(m *ice.Message, arg ...string) { s.ValueCreate(m, arg...) }
func (s promotion) Remove(m *ice.Message, arg ...string) { s.ValueRemove(m, arg...) }
func (s promotion) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") }
func init() { ice.TeamCtxCmd(promotion{}) }

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.itemcards(can, msg, function(value) { return [
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.title]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at), value.user_name]},
{view: html.OUTPUT, list: [value.content]},

View File

@ -10,7 +10,7 @@ import (
type Table struct {
guanlixitong.Table
list string `name:"list investor_uid uid auto" role:"void"`
list string `name:"list capital_uid uid auto" role:"void"`
}
func (s Table) Inputs(m *ice.Message, arg ...string) {

View File

@ -9,8 +9,8 @@ type investment struct {
remove string `name:"remove" role:"leader"`
}
func (s investment) Create(m *ice.Message, arg ...string) { s.Table.ValueCreate(m, arg...) }
func (s investment) Remove(m *ice.Message, arg ...string) { s.Table.ValueRemove(m, arg...) }
func (s investment) List(m *ice.Message, arg ...string) { s.Table.ValueList(m, arg) }
func (s investment) Create(m *ice.Message, arg ...string) { s.ValueCreate(m, arg...) }
func (s investment) Remove(m *ice.Message, arg ...string) { s.ValueRemove(m, arg...) }
func (s investment) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") }
func init() { ice.TeamCtxCmd(investment{}) }

View File

@ -1,6 +1,6 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.itemcards(can, msg, function(value) { return [
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.title]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.base.TimeTrim(value.created_at), value.user_name]},
{view: html.OUTPUT, list: [value.content]},