| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- export const USER_ID = 'USER_MOCK';
- export function createId() {
- return Array.from({ length: 16 })
- .map(() => Math.floor(Math.random() * 16).toString(16))
- .join('');
- }
- export const SPU = [
- {
- owner: '1856254275343773698',
- priority: 1,
- swiper_images: ['https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png'],
- createdAt: 1731488370922,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '腾讯QQ正版铜工艺品太空鹅全铜摆件',
- detail:
- '<p style="text-align: center"><span style="font-size: 32px"><strong><span style="color: #45818e"><i><span style="text-decoration: underline">腾讯QQ正版铜工艺品太空鹅全铜摆件</span></i></span></strong></span></p><p style="text-align: center"><span class="exeditor-picture"><img src="https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png" width="356" height="356"></span></p><p style="text-align: center">企鹅企鹅企鹅</p><p style="text-align: center"><span style="font-family: STKaiti, 华文楷体, serif">帅!</span></p>',
- cover_image: 'https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png',
- _id: 'P4_prod',
- updatedAt: 1731488370922,
- status: 'ENABLED',
- },
- {
- owner: '1856254275343773698',
- priority: 2,
- swiper_images: ['https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png'],
- createdAt: 1731488370775,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '软底一脚蹬小白鞋女鞋休闲棉加绒显脚瘦',
- detail:
- '<p style="text-align: center"><span style="font-size: 32px"><span style="background-color: #00ff00"><strong><span style="color: #ea9999"><i>软底一脚蹬小白鞋女鞋休闲棉加绒显脚瘦</i></span></strong></span></span></p><p style="text-align: center"><span class="exeditor-picture"><img src="https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png" width="356" height="356"></span></p><p style="text-align: center">好穿</p>',
- cover_image: 'https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png',
- _id: 'P3_prod',
- updatedAt: 1731488370775,
- status: 'ENABLED',
- },
- {
- owner: '1856254275343773698',
- priority: 1,
- swiper_images: ['https://qcloudimg.tencent-cloud.cn/raw/7b2c975b21d24c43f1609e0b0328dccf.png'],
- createdAt: 1731488370653,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '随身蓝牙无线音箱小型便携式迷你户外',
- detail:
- '<p style="text-align: center"><span style="font-size: 32px"><strong><span style="color: #ff9900"><i>随身蓝牙无线音箱小型便携式迷你户外</i></span></strong></span></p><p style="text-align: center"><span class="exeditor-picture"><img src="https://qcloudimg.tencent-cloud.cn/raw/7b2c975b21d24c43f1609e0b0328dccf.png" width="356" height="356"></span></p><p style="text-align: center">非常劲爆的音乐。</p>',
- cover_image: 'https://qcloudimg.tencent-cloud.cn/raw/7b2c975b21d24c43f1609e0b0328dccf.png',
- _id: 'P2_prod',
- updatedAt: 1731488370653,
- status: 'ENABLED',
- },
- {
- owner: '1856254275343773698',
- priority: 1,
- swiper_images: ['https://qcloudimg.tencent-cloud.cn/raw/ac3c9a255cae575661323fdcb8cae468.png'],
- createdAt: 1731488370507,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '正版腾讯生肖祥龙Q版包包龙抬头',
- detail:
- '<p style="text-align: right"><span style="font-size: 32px"><span style="background-color: #434343"><strong><span style="color: #ffffff"><i><span style="text-decoration: underline">龙龙龙</span></i></span></strong></span></span></p><p style="text-align: right"><span class="exeditor-picture"><img src="https://qcloudimg.tencent-cloud.cn/raw/ac3c9a255cae575661323fdcb8cae468.png" width="356" height="356"></span></p><p style="text-align: right">每天带龙去上班。</p>',
- cover_image: 'https://qcloudimg.tencent-cloud.cn/raw/ac3c9a255cae575661323fdcb8cae468.png',
- _id: 'P1_prod',
- updatedAt: 1731488370507,
- status: 'ENABLED',
- },
- ];
- export const SKU = [
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png',
- createdAt: 1731488370290,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- price: 190,
- _openid: '1856254275343773698',
- count: 100,
- description: '2 个太空鹅',
- spu: { _id: 'P4_prod' },
- _id: 'K6_prod',
- updatedAt: 1731488370290,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png',
- createdAt: 1731488370145,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- price: 100,
- _openid: '1856254275343773698',
- count: 100,
- description: '1 个太空鹅',
- spu: { _id: 'P4_prod' },
- _id: 'K5_prod',
- updatedAt: 1731488370145,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png',
- createdAt: 1731488369981,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- price: 300,
- _openid: '1856254275343773698',
- count: 100,
- description: '34 码小白鞋',
- spu: { _id: 'P3_prod' },
- _id: 'K4_prod',
- updatedAt: 1731488369981,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png',
- createdAt: 1731488369817,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- price: 300,
- _openid: '1856254275343773698',
- count: 95,
- description: '33 码小白鞋',
- spu: { _id: 'P3_prod' },
- _id: 'K3_prod',
- updatedAt: 1731488629039,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/7b2c975b21d24c43f1609e0b0328dccf.png',
- createdAt: 1731488369644,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- price: 100,
- _openid: '1856254275343773698',
- count: 100,
- description: '普通音箱',
- spu: { _id: 'P2_prod' },
- _id: 'K2_prod',
- updatedAt: 1731488369644,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/ac3c9a255cae575661323fdcb8cae468.png',
- createdAt: 1731488369320,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- price: 90,
- _openid: '1856254275343773698',
- count: 100,
- description: '普通斜挎包',
- spu: { _id: 'P1_prod' },
- _id: 'K1_prod',
- updatedAt: 1731488369320,
- },
- ];
- export const HOME_SWIPER = [
- {
- images: ['https://qcloudimg.tencent-cloud.cn/raw/1e793c70bb4f521fe277b2c207ab81b4.png'],
- _id: 'A3QFLT6UVN',
- },
- ];
- export const CATEGORY = [
- {
- owner: '1856254275343773698',
- createdAt: 1731488367747,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '数码',
- spu: [],
- _id: 'C3_prod',
- child_cate: [
- {
- image: 'https://qcloudimg.tencent-cloud.cn/raw/7b2c975b21d24c43f1609e0b0328dccf.png',
- name: '音箱',
- _id: 'ACGNME9W2U',
- },
- ],
- updatedAt: 1731488367747,
- },
- {
- owner: '1856254275343773698',
- createdAt: 1731488367429,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '周边',
- spu: [],
- _id: 'C2_prod',
- child_cate: [
- {
- image: 'https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png',
- name: '摆件',
- _id: 'ACGNMD7TRS',
- },
- ],
- updatedAt: 1731488367429,
- },
- {
- owner: '1856254275343773698',
- createdAt: 1731488366964,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '服饰',
- spu: [],
- _id: 'C1_prod',
- child_cate: [
- {
- image: 'https://qcloudimg.tencent-cloud.cn/raw/ac3c9a255cae575661323fdcb8cae468.png',
- name: '箱包',
- _id: 'ACGNMBTP4L',
- },
- {
- image: 'https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png',
- name: '鞋子',
- _id: 'ACGNMCB9N8',
- },
- ],
- updatedAt: 1731488366964,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/7b2c975b21d24c43f1609e0b0328dccf.png',
- createdAt: 1731488367913,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '音箱',
- spu: [{ _id: 'P2_prod' }],
- _id: 'ACGNME9W2U',
- child_cate: [],
- updatedAt: 1731488367913,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/063123361b3a397f4ba6894591c3a006.png',
- createdAt: 1731488367571,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '摆件',
- spu: [{ _id: 'P4_prod' }],
- _id: 'ACGNMD7TRS',
- child_cate: [],
- updatedAt: 1731488367571,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/62eb1d8d8ea3b05302c199636f787438.png',
- createdAt: 1731488367273,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '鞋子',
- spu: [{ _id: 'P3_prod' }],
- _id: 'ACGNMCB9N8',
- child_cate: [],
- updatedAt: 1731488367273,
- },
- {
- owner: '1856254275343773698',
- image: 'https://qcloudimg.tencent-cloud.cn/raw/ac3c9a255cae575661323fdcb8cae468.png',
- createdAt: 1731488367108,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- _openid: '1856254275343773698',
- name: '箱包',
- spu: [{ _id: 'P1_prod' }],
- _id: 'ACGNMBTP4L',
- child_cate: [],
- updatedAt: 1731488367108,
- },
- ];
- export const ATTR_VALUE = [
- {
- owner: '1856254275343773698',
- createdAt: 1731488369101,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- attr_name: { name: '数量', _id: 'N2_prod' },
- _openid: '1856254275343773698',
- _id: 'V4_prod',
- sku: [{ _id: 'K6_prod' }],
- value: '2 个',
- updatedAt: 1731488369101,
- },
- {
- owner: '1856254275343773698',
- createdAt: 1731488368972,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- attr_name: { name: '数量', _id: 'N2_prod' },
- _openid: '1856254275343773698',
- _id: 'V3_prod',
- sku: [{ _id: 'K5_prod' }],
- value: '1 个',
- updatedAt: 1731488368972,
- },
- {
- owner: '1856254275343773698',
- createdAt: 1731488368836,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- attr_name: { name: '尺码', _id: 'N1_prod' },
- _openid: '1856254275343773698',
- _id: 'V2_prod',
- sku: [{ _id: 'K4_prod' }],
- value: '34 码',
- updatedAt: 1731488368836,
- },
- {
- owner: '1856254275343773698',
- createdAt: 1731488368490,
- createBy: '1856254275343773698',
- updateBy: '1856254275343773698',
- attr_name: { name: '尺码', _id: 'N1_prod' },
- _openid: '1856254275343773698',
- _id: 'V1_prod',
- sku: [{ _id: 'K3_prod' }],
- value: '33 码',
- updatedAt: 1731488368490,
- },
- ];
- export const COMMENTS = [
- {
- owner: '1788891669799862274',
- createdAt: 1728899184779,
- createBy: '1788891669799862274',
- updateBy: '1788891669799862274',
- order_item: {
- _id: 'A6JRQ0YB2G',
- },
- spu: {
- _id: 'A3QFLUSAK2',
- },
- _openid: '1788891669799862274',
- rating: 5,
- _id: 'A6JRGRT6U8',
- reply: '',
- content: '好好好',
- updatedAt: 1728899339993,
- },
- ];
- COMMENTS.pop(); // 默认没数据,先塞后清是为了有编辑器提示
- export const CART_ITEM = [
- {
- count: 8,
- _id: 'A6JQYSJJSL',
- sku: {
- _id: 'A3QFLRCZFW',
- },
- },
- ];
- CART_ITEM.pop();
- export const DELIVERY_INFO = [
- {
- name: '客人a',
- address: '深圳湾一号',
- _id: 'A6JRPE3NYG',
- phone: '13858585858',
- },
- ];
- DELIVERY_INFO.pop();
- export const ORDER = [
- {
- status: '',
- delivery_info: { _id: '' },
- _id: '',
- },
- ];
- ORDER.pop();
- export const ORDER_ITEM = [
- {
- count: 0,
- sku: {
- _id: '',
- },
- order: {
- _id: '',
- },
- _id: '',
- },
- ];
- ORDER_ITEM.pop();
|