137 lines
3.2 KiB
JavaScript
137 lines
3.2 KiB
JavaScript
|
// src/mock/brand.mock.js
|
||
|
export default [
|
||
|
{
|
||
|
url: '/api/brand/products',
|
||
|
method: 'get',
|
||
|
response: () => ({
|
||
|
code: 200,
|
||
|
data: products,
|
||
|
}),
|
||
|
},
|
||
|
{
|
||
|
url: '/api/brand/apply-list',
|
||
|
method: 'get',
|
||
|
response: () => ({
|
||
|
code: 200,
|
||
|
data: applyData,
|
||
|
}),
|
||
|
},
|
||
|
{
|
||
|
url: '/api/brand/monitor-list',
|
||
|
method: 'get',
|
||
|
response: () => ({
|
||
|
code: 200,
|
||
|
data: monitor,
|
||
|
}),
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const products = [
|
||
|
{
|
||
|
id: 1,
|
||
|
name: '耿马镇沙疆西红柿',
|
||
|
batch: '10021',
|
||
|
duration: '6个月',
|
||
|
expireDate: '2025.01.01',
|
||
|
status: 'authorized',
|
||
|
statusLabel: '已授权',
|
||
|
img: 'images/brand/product4.png',
|
||
|
},
|
||
|
{
|
||
|
id: 2,
|
||
|
name: '孟弄乡沙地土豆',
|
||
|
batch: '10022',
|
||
|
duration: '6个月',
|
||
|
expireDate: '2025.01.02',
|
||
|
status: 'authorized',
|
||
|
statusLabel: '已授权',
|
||
|
img: 'images/brand/product6.png',
|
||
|
},
|
||
|
{
|
||
|
id: 3,
|
||
|
name: '芒洪乡水果彩椒',
|
||
|
batch: '10021',
|
||
|
duration: '6个月',
|
||
|
expireDate: '2025.01.01',
|
||
|
status: 'authorized',
|
||
|
statusLabel: '已授权',
|
||
|
img: 'images/brand/product2.png',
|
||
|
},
|
||
|
{
|
||
|
id: 4,
|
||
|
name: '耿马镇沙疆西红柿',
|
||
|
batch: '10021',
|
||
|
duration: '6个月',
|
||
|
expireDate: '2025.01.01',
|
||
|
status: 'approving',
|
||
|
statusLabel: '审批中',
|
||
|
img: 'images/brand/product4.png',
|
||
|
},
|
||
|
{
|
||
|
id: 5,
|
||
|
name: '孟弄乡沙地土豆',
|
||
|
batch: '10022',
|
||
|
duration: '6个月',
|
||
|
expireDate: '2025.01.02',
|
||
|
status: 'approving',
|
||
|
statusLabel: '审批中',
|
||
|
img: 'images/brand/product6.png',
|
||
|
},
|
||
|
{
|
||
|
id: 6,
|
||
|
name: '芒洪乡水果彩椒',
|
||
|
batch: '10021',
|
||
|
duration: '6个月',
|
||
|
expireDate: '2025.01.01',
|
||
|
status: 'expired',
|
||
|
statusLabel: '已失效',
|
||
|
img: 'images/brand/product2.png',
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const applyData = [
|
||
|
{ id: 1, name: '耿马绿色蔬菜', imageUrl: 'images/brand/11.png' },
|
||
|
{ id: 2, name: '云南高山茶', imageUrl: 'images/brand/12.png' },
|
||
|
{ id: 3, name: '新疆大枣', imageUrl: 'images/brand/13.png' },
|
||
|
{ id: 4, name: '东北大米', imageUrl: 'images/brand/14.png' },
|
||
|
{ id: 5, name: '山东苹果', imageUrl: 'images/brand/15.png' },
|
||
|
{ id: 6, name: '四川泡菜', imageUrl: 'images/brand/16.png' },
|
||
|
{ id: 7, name: '江苏阳澄湖大闸蟹', imageUrl: 'images/brand/11.png' },
|
||
|
{ id: 8, name: '海南椰子', imageUrl: 'images/brand/12.png' },
|
||
|
{ id: 9, name: '广东早茶', imageUrl: 'images/brand/13.png' },
|
||
|
{ id: 10, name: '北京烤鸭', imageUrl: 'images/brand/14.png' },
|
||
|
{ id: 11, name: '西藏青稞酒', imageUrl: 'images/brand/15.png' },
|
||
|
{ id: 12, name: '青海牦牛肉', imageUrl: 'images/brand/16.png' },
|
||
|
];
|
||
|
|
||
|
const monitor = [
|
||
|
{
|
||
|
id: 1,
|
||
|
name: '耿马镇沙疆西红柿',
|
||
|
img: 'images/brand/product4.png',
|
||
|
monthlySales: 999,
|
||
|
stock: 10000,
|
||
|
price: 3.0,
|
||
|
status: 'onSale',
|
||
|
},
|
||
|
{
|
||
|
id: 2,
|
||
|
name: '耿马镇沙疆土豆',
|
||
|
img: 'images/brand/product6.png',
|
||
|
monthlySales: 123,
|
||
|
stock: 5000,
|
||
|
price: 2.5,
|
||
|
status: 'onSale',
|
||
|
},
|
||
|
{
|
||
|
id: 3,
|
||
|
name: '彩椒南瓜混合',
|
||
|
img: 'images/brand/product1.png',
|
||
|
monthlySales: 456,
|
||
|
stock: 8000,
|
||
|
price: 4.2,
|
||
|
status: 'offShelf',
|
||
|
},
|
||
|
// … 更多数据
|
||
|
];
|