|
@@ -444,169 +444,6 @@ const menuRulesData = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-// 商品列表mock数据
|
|
|
-const goodsListData = {
|
|
|
- error: 0,
|
|
|
- msg: 'success',
|
|
|
- data: {
|
|
|
- current_page: 1,
|
|
|
- per_page: 20,
|
|
|
- total: 100,
|
|
|
- data: [
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'up',
|
|
|
- status_text: '已上架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'up',
|
|
|
- status_text: '已上架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'up',
|
|
|
- status_text: '已上架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'down',
|
|
|
- status_text: '已下架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'down',
|
|
|
- status_text: '已下架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'down',
|
|
|
- status_text: '已下架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'hidden',
|
|
|
- status_text: '已隐藏',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'down',
|
|
|
- status_text: '已下架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'BZ6542',
|
|
|
- image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
|
|
|
- title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
|
|
|
- original_price: '¥1,999',
|
|
|
- current_price: '¥1,000',
|
|
|
- sales: 2000,
|
|
|
- views: 392,
|
|
|
- stock: 2455,
|
|
|
- status: 'down',
|
|
|
- status_text: '已下架',
|
|
|
- sku_id: 'BS55666665',
|
|
|
- supplier: '商家科技有限公司',
|
|
|
- create_time: '2024-01-15 10:30:00',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
-};
|
|
|
-
|
|
|
-// 商品类型数据
|
|
|
-const goodsTypeData = {
|
|
|
- error: 0,
|
|
|
- msg: 'success',
|
|
|
- data: {
|
|
|
- status: [
|
|
|
- { name: '全部商品(200)', type: 'all' },
|
|
|
- { name: '已上架(150)', type: 'up' },
|
|
|
- { name: '已下架(40)', type: 'down' },
|
|
|
- { name: '已隐藏(10)', type: 'hidden' },
|
|
|
- ],
|
|
|
- activity_type: [],
|
|
|
- },
|
|
|
-};
|
|
|
-
|
|
|
export default {
|
|
|
/**
|
|
|
* 系统初始化接口
|
|
@@ -623,11 +460,4 @@ export default {
|
|
|
account: {
|
|
|
rules: () => menuRulesData,
|
|
|
},
|
|
|
- /**
|
|
|
- * 商品相关接口
|
|
|
- */
|
|
|
- goods: {
|
|
|
- list: () => goodsListData,
|
|
|
- getType: () => goodsTypeData,
|
|
|
- },
|
|
|
};
|