'显示', 2 => '不显示', ); $duihuan = array ( 1 => '第一步:授权登录', 2 => '第二步:绑定厨人E卡', 3 => '第三步:购买商品', ); return array ( # 表名 'name' => 'sell_config', # 显示给用户看的名称 'lang' => '零售小程序信息', 'order' => 1, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => '平台ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', ), 'name' => array ( 'type' => 'varchar-32', 'name' => '小程序名称', 'default' => '', 'desc' => '小程序名称', 'match' => 'is_string', 'update' => 'text', ), 'info' => array ( 'type' => 'varchar-1000', 'name' => '小程序业务描述', 'default' => '', 'desc' => '小程序业务描述', 'match' => 'option', 'update' => 'textarea', ), 'logo' => array ( 'type' => 'varchar-150', 'name' => '小程序LOGO', 'default' => '', 'desc' => '小程序LOGO', 'match' => 'option', 'update' => 'image', 'key' => '1', 'place' => '150', ), 'applet' => array ( 'type' => 'varchar-150', 'name' => '小程序二维码', 'default' => '', 'desc' => '小程序二维码', 'match' => 'option', 'update' => 'image', 'key' => '1', 'place' => '150*150', ), 'card_name' => array ( 'type' => 'varchar-150', 'name' => '礼品卡名称', 'default' => '厨人E卡', 'desc' => '礼品卡名称', 'match' => 'option', 'update' => 'text', ), 'card' => array ( 'type' => 'varchar-150', 'name' => '礼品卡封面', 'default' => '', 'desc' => '礼品卡封面', 'match' => 'option', 'update' => 'image', 'key' => '1', 'place' => '672*386', ), 'per' => array ( 'type' => 'int-11', 'name' => '平台佣金比例-输入1就是百分之1,分账时,平台自动从支付的金额里抽取1%的手续费', 'default' => '1', 'desc' => '平台佣金比例', 'match' => 'option', 'update' => 'text', ), 'cash' => array ( 'type' => 'text-255', 'name' => '钱包提示', 'default' => '', 'desc' => '平台佣金比例', 'match' => 'option', 'update' => 'editor', ), 'cash_tx' => array ( 'type' => 'int-11', 'name' => '钱包提现手续费-输入1就是百分之1', 'default' => '8', 'desc' => '钱包提现手续费', 'match' => 'option', 'update' => 'text', ), 'phone' => array ( 'type' => 'varchar-100', 'name' => '客服电话', 'default' => '', 'desc' => '请输入客服电话', 'match' => 'option', 'update' => 'text', ), 'lingshou_name' => array ( 'type' => 'varchar-32', 'name' => '零售小程序名称-有赞商城名称', 'default' => '', 'desc' => '零售小程序名称', 'match' => 'is_string', 'update' => 'text', ), 'lingshou_applet' => array ( 'type' => 'varchar-150', 'name' => '零售小程序二维码', 'default' => '', 'desc' => '小程序二维码', 'match' => 'option', 'update' => 'image', 'key' => '1', 'place' => '150*150', ), 'duihuan_pic' => array ( 'type' => 'varchar-150', 'name' => '兑换页说明图片', 'default' => '', 'desc' => '兑换页底部描述', 'match' => 'option', 'update' => 'image', 'key' => 1, ), 'duihuan' => array ( 'type' => 'text-255', 'name' => '兑换页信息', 'default' => '', 'desc' => '兑换页信息', 'match' => 'is_string', 'option' => $duihuan, 'update' => array ( array ( 'col' => 'name', 'name' => '标题', 'default' => '', 'desc' => '标题', 'match' => 'is_string', 'update' => 'text', ), array ( 'col' => 'pic', 'name' => '图片-为空则不显示,一般为做好的帮助提示图片', 'default' => '', 'desc' => '图片', 'match' => 'is_string', 'update' => 'image', 'key' => 1, ), array ( 'col' => 'desc', 'name' => '描述-为空则不显示', 'default' => '', 'desc' => '描述', 'match' => 'is_string', 'update' => 'textarea', ), array ( 'col' => 'button', 'name' => '按钮文字', 'default' => '', 'desc' => '按钮文字', 'match' => 'is_string', 'update' => 'text', ), ), ), 'duihuan_desc' => array ( 'type' => 'varchar-1000', 'name' => '兑换页底部描述', 'default' => '', 'desc' => '兑换页底部描述', 'match' => 'option', 'update' => 'textarea', ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '录入时间', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'insert' => true, ), ), 'default' => array ( 'col' => 'name,info,cdate', 'value' => array ( '"零售小程序","零售小程序",' . time(), ), ), 'manage' => array ( # 后台管理不要列表页 'list' => 'update', ), );