diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index 0ef5915..3f261c6 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -30,16 +30,6 @@ 用户审核 - - - 商品管理 - - - - - 订单管理 - - 积分管理 diff --git a/src/router/index.js b/src/router/index.js index 6b92b69..cc60097 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,47 +50,6 @@ const routes = [ requiresAdmin: true } }, - { - path: 'products', - name: 'Products', - component: () => import('@/views/Products.vue'), - meta: { - title: '商品管理 - 积分商城管理系统', - icon: 'Goods', - requiresAdmin: true - } - }, - { - path: 'products/create', - name: 'CreateProduct', - component: () => import('@/views/ProductForm.vue'), - meta: { - title: '创建商品 - 积分商城管理系统', - icon: 'Plus', - requiresAdmin: true - } - }, - { - path: 'products/edit/:id', - name: 'EditProduct', - component: () => import('@/views/ProductForm.vue'), - meta: { - title: '编辑商品 - 积分商城管理系统', - icon: 'EditPen', - requiresAdmin: true - } - }, - - { - path: 'products/:id/spec-combinations', - name: 'ProductSpecCombinations', - component: () => import('@/views/ProductSpecCombinations.vue'), - meta: { - title: '商品规格组合管理 - 积分商城管理系统', - icon: 'Grid', - requiresAdmin: true - } - }, { path: 'orders', name: 'Orders', diff --git a/src/views/Orders.vue b/src/views/Orders.vue deleted file mode 100644 index 7ec1ddf..0000000 --- a/src/views/Orders.vue +++ /dev/null @@ -1,422 +0,0 @@ - - - - 订单管理 - - - - - - - - - - - - - - - - - - - - - - - 搜索 - 重置 - - - - - - - - - - {{ row.total_points }} 积分 - - - - - {{ row.total_rongdou }} 融豆 - - - - - - {{ getStatusText(row.status) }} - - - - - - {{ formatDate(row.created_at) }} - - - - - - - - - {{ item.product_name }} - - {{ item.points }}积分 × {{ item.quantity }} - - - - - - - - - - 查看详情 - - - - 更新状态 - - - - - - 标记为已发货 - - - 标记为已完成 - - - 取消订单 - - - - - - - - - - - - - - - - - {{ - selectedOrder.order_no - }} - {{ - selectedOrder.username - }} - - {{ selectedOrder.total_points }} 积分 - - - - {{ getStatusText(selectedOrder.status) }} - - - {{ - formatDate(selectedOrder.created_at) - }} - {{ - formatDate(selectedOrder.updated_at) - }} - - - 商品清单 - - - - - - - - - - {{ row.points_price }} 积分 | {{ row.rongdou_price }} 融豆 - - - - - - {{ row.points_price * row.quantity }} 积分 | {{ row.rongdou_price * row.quantity }} 融豆 - - - - - - - - - - - diff --git a/src/views/ProductAttributes.vue b/src/views/ProductAttributes.vue deleted file mode 100644 index 82d96d5..0000000 --- a/src/views/ProductAttributes.vue +++ /dev/null @@ -1,438 +0,0 @@ - - - - 商品属性管理 - {{ productName }} - - - - 添加属性 - - - - 返回 - - - - - - - - - - - {{ row.attribute_value }} - - - - {{ row.attribute_value.substring(0, 50) }}... - - - - - - - {{ formatDate(row.created_at) }} - - - - - - 编辑 - - - 删除 - - - - - - - - - - - - - - - - - - 取消 - - {{ isEdit ? '更新' : '添加' }} - - - - - - - - - - - 每行一个属性,格式:属性名:属性值 - 示例: - 品牌:苹果 - 颜色:黑色 - 尺寸:6.1英寸 - - - - - - - 取消 - - 批量添加 - - - - - - - - - - 批量添加 - - - - 清空所有属性 - - - - - - - - \ No newline at end of file diff --git a/src/views/ProductForm.vue b/src/views/ProductForm.vue deleted file mode 100644 index 7fe72b5..0000000 --- a/src/views/ProductForm.vue +++ /dev/null @@ -1,1102 +0,0 @@ - - - - - - - - - {{ isEdit ? '编辑商品' : '创建商品' }} - {{ isEdit ? '修改商品信息并保存更改' : '填写商品信息并发布到商城' }} - - - - - - 返回列表 - - - - - - - - - - - - - - 基本信息 - - - - - - - - - - - - - - - - - - - - - - - - - 价格与库存 - - - - - - - - 商品的市场原价 - - - - - - 使用积分购买的价格 - - - - - - 使用融豆购买的价格 - - - - - - 商品可售库存数量 - - - - - - - - - - - 媒体资源 - - - - - - - - 建议尺寸:800x800px,支持JPG、PNG格式 - - - - - - - - - 最多上传9张图片,展示商品细节 - - - - - - 最多上传3个视频(支持MP4、MOV格式),展示商品使用效果 - - - - - - - - - - - 店家信息与支付方式 - - - - - - - - 显示在商品详情页的店家名称 - - - - - - 建议尺寸:200x200px,圆形头像 - - - - - - - - - - - - 积分支付 - - - - - - 融豆支付 - - - - - 选择该商品支持的支付方式 - - - - - - - - - - - 商品描述 - - - - - - - - 商品的简要描述,将显示在商品列表和详情页 - - - - - - - - - 商品的详细信息,支持富文本编辑,将在H5端完美展示 - - - - - - - - - - - 发布设置 - - - - - - - - - - {{ statusActive === 'active' ? '商品将立即在商城中展示' : '商品保存为草稿,不在商城中展示' }} - - - - - - - - - - - - {{ isEdit ? '更新商品' : '创建商品' }} - - - - 重置表单 - - - - - - - - - - \ No newline at end of file diff --git a/src/views/ProductSpecCombinations.vue b/src/views/ProductSpecCombinations.vue deleted file mode 100644 index 78efcef..0000000 --- a/src/views/ProductSpecCombinations.vue +++ /dev/null @@ -1,831 +0,0 @@ - - - - 商品规格组合管理 - {{ productName }} - - - - 管理规格名称 - - - - 生成规格组合 - - - - 返回 - - - - - - - - - 规格维度 - - - 添加规格维度 - - - - - - {{ specName.name }} - ({{ getSpecValueCount(specName.id) }}个值) - - - - - - - - - - - - {{ spec.spec_name }}: {{ spec.value }} - - - - - - - {{ row.price_adjustment > 0 ? '+' : '' }}{{ row.price_adjustment }} - - - - - - - {{ row.points_adjustment > 0 ? '+' : '' }}{{ row.points_adjustment }} - - - - - - - {{ row.rongdou_adjustment > 0 ? '+' : '' }}{{ row.rongdou_adjustment }} - - - - - - - - {{ row.is_available ? '可用' : '不可用' }} - - - - - - - 编辑 - - - 删除 - - - - - - - - - - - 添加 - - - - - - {{ specName.name }} - - 删除 - - - - - - - - 添加值 - - - - - - {{ value.value }} - - - - - - - - - - - - - - - {{ spec.spec_name }}: {{ spec.spec_value }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - - 更新 - - - - - - - - - - 请选择要用于生成规格组合的规格名称。系统将基于选中的规格名称及其规格值生成笛卡尔积组合。 - - - - - - - - - {{ specName.name }} - - ({{ getSpecValues(specName.id).length }}个值) - - - - 该规格名称暂无规格值 - - - - - - - - - - - - - - - - - - - 取消 - - 生成 {{ calculateCombinationCount() }} 个组合 - - - - - - - - - - \ No newline at end of file diff --git a/src/views/Products.vue b/src/views/Products.vue deleted file mode 100644 index 0ef7014..0000000 --- a/src/views/Products.vue +++ /dev/null @@ -1,327 +0,0 @@ - - - - 商品管理 - - - 添加商品 - - - - - - - - - - - - - - - - - - - - - 搜索 - 重置 - - - - - - - - - - - - - - - - {{ row.points }} 积分 - - - - - {{ row.rongdou_price || 0 }} 融豆 - - - - - - - {{ row.shop_name || '默认店铺' }} - - - - - - - - - {{ row.status === 'active' ? '上架' : '下架' }} - - - - - - {{ formatDate(row.created_at) }} - - - - - - 编辑 - - - 规格管理 - - - {{ row.status === 'active' ? '下架' : '上架' }} - - - 删除 - - - - - - - - - - - - - - \ No newline at end of file
每行一个属性,格式:属性名:属性值
示例:
品牌:苹果
颜色:黑色
尺寸:6.1英寸
{{ isEdit ? '修改商品信息并保存更改' : '填写商品信息并发布到商城' }}
- 请选择要用于生成规格组合的规格名称。系统将基于选中的规格名称及其规格值生成笛卡尔积组合。 -