feat: 初步完成详情生成

This commit is contained in:
augushong
2026-01-08 23:43:21 +08:00
parent 3fdea8b85b
commit 0e92ab2363
22 changed files with 578 additions and 247 deletions

View File

@@ -2,7 +2,22 @@ $(function(){
ua.table.render({
init: init,
cols: [[
{type: 'checkbox'},
{type: 'checkbox'},
{field: 'id', title: 'id'},
{field: 'cate_id', title: '分类ID'},
{field: 'title', title: '商品名称'},
{field: 'logo', title: '商品logo', templet: ua.table.image},
{field: 'total_stock', title: '总库存'},
{field: 'sort', title: '排序', edit: 'text'},
{field: 'status', search: 'select', selectList: ua.getDataBrage('select_list_status'), title: '状态', templet: ua.table.switch},
{field: 'cert_file', title: '合格证', templet: ua.table.url},
{field: 'remark', title: '备注说明', templet: ua.table.text},
{field: 'create_time', title: 'create_time'},
{field: 'publish_time', title: '发布日期'},
{field: 'sale_time', title: '售卖日期'},
{field: 'intro', title: '简介'},
{field: 'time_status', search: 'select', selectList: ua.getDataBrage('select_list_time_status'), title: '秒杀状态'},
{field: 'is_recommend', search: 'select', selectList: ua.getDataBrage('select_list_is_recommend'), title: '是否推荐'},
{field: 'shop_type', search: 'select', selectList: ua.getDataBrage('select_list_shop_type'), title: '商品类型'},
{field: 'from_area', title: '产地'},
{field: 'store_city', title: '仓库'},