r117/public/data.js · 约 11414 字符
1/* 蛋糕店 H5 · 离线 SEED 数据(与 PHP 后端种子一致,用于无后端时的演示兜底) */2window.SEED = {3 banners: [4 { id: 4, title: '精致下午茶套餐', image: '☕', link: '#category' },5 { id: 3, title: '会员日福利 · 积分兑好礼', image: '❤️', link: '#member' },6 { id: 2, title: '生日蛋糕专场 · 免费升磅', image: '🎉', link: '#category' },7 { id: 1, title: '新品上市 · 当季限定', image: '🎂', link: '#category' }8 ],9 scenes: ['生日蛋糕','婚礼庆典','聚会派对','商务茶歇','儿童节','情侣下午茶','长辈祝寿','节日礼盒'],10 kinds: [11 { id: 1, name: '奶油蛋糕' }, { id: 2, name: '慕斯蛋糕' }, { id: 3, name: '芝士蛋糕' },12 { id: 4, name: '巧克力蛋糕' }, { id: 5, name: '水果蛋糕' }, { id: 6, name: '无糖蛋糕' },13 { id: 7, name: '翻糖蛋糕' }14 ],15 sizes: ['6寸','8寸','10寸','12寸','14寸','多层'],16 member: {17 id: 2, username: '阿慕', phone: '13800000002', level: 'gold', level_name: '金卡会员',18 points: 880, balance: 200, growth: 1500, birthday: '', coupons_count: 219 },20 coupons: [21 { id: 1, name: '新人专享券', type: 'newcomer', threshold: 0, value: 20, discount: 1, valid_days: 30, desc: '无门槛¥20' },22 { id: 2, name: '满199减30', type: 'full_reduce', threshold: 199, value: 30, discount: 1, valid_days: 30, desc: '满199减30' },23 { id: 3, name: '满299减50', type: 'full_reduce', threshold: 299, value: 50, discount: 1, valid_days: 30, desc: '满299减50' },24 { id: 4, name: '会员尊享8折', type: 'discount', threshold: 0, value: 0, discount: 0.8, valid_days: 30, desc: '8折' },25 { id: 5, name: '无门槛5元券', type: 'no_threshold', threshold: 0, value: 5, discount: 1, valid_days: 15, desc: '无门槛¥5' },26 { id: 6, name: '生日专享券', type: 'birthday', threshold: 0, value: 30, discount: 1, valid_days: 7, desc: '¥30券' }27 ],28 products: [29 { id:1, name:'经典草莓奶油蛋糕', kind_id:1, kind:'奶油蛋糕', scenes:'生日蛋糕|情侣下午茶', price:168, original_price:218, sales:326, rating:4.9, stock:99, is_new:1, is_hot:1, is_recommend:0, tags:'招牌', images:['🍓','🎂','🍰'], description:'选用新鲜草莓与动物奶油,口感轻盈不腻,是生日与约会的经典之选。', ingredients:'小麦粉、鸡蛋、牛奶、动物奶油、草莓', allergen:'含麸质、蛋、奶', shelf_life:'冷藏 2 天', advice:'0-4℃ 冷藏保存,食用前回温 10 分钟口感更佳',30 skus:[{size:'6寸',flavor:'原味',price:118,stock:99},{size:'6寸',flavor:'招牌',price:128,stock:99},{size:'8寸',flavor:'原味',price:168,stock:99},{size:'8寸',flavor:'招牌',price:178,stock:99},{size:'10寸',flavor:'原味',price:227,stock:99},{size:'10寸',flavor:'招牌',price:237,stock:99},{size:'12寸',flavor:'原味',price:286,stock:99},{size:'12寸',flavor:'招牌',price:296,stock:99}] },31 { id:2, name:'芒果千层慕斯', kind_id:2, kind:'慕斯蛋糕', scenes:'情侣下午茶|聚会派对', price:158, original_price:198, sales:288, rating:4.8, stock:99, is_new:0, is_hot:0, is_recommend:1, tags:'人气', images:['🥭','🍰','✨'], description:'层层薄饼夹芒果慕斯,入口即化,酸甜清新。', ingredients:'小麦粉、鸡蛋、芒果、动物奶油', allergen:'含麸质、蛋、奶、芒果', shelf_life:'冷藏 2 天', advice:'冷藏保存,避免反复冻融',32 skus:[{size:'6寸',flavor:'原味',price:111,stock:99},{size:'8寸',flavor:'原味',price:158,stock:99},{size:'10寸',flavor:'原味',price:213,stock:99},{size:'12寸',flavor:'原味',price:269,stock:99}] },33 { id:3, name:'海盐芝士蛋糕', kind_id:3, kind:'芝士蛋糕', scenes:'商务茶歇|情侣下午茶', price:178, original_price:228, sales:201, rating:4.7, stock:99, is_new:0, is_hot:0, is_recommend:0, tags:'咸香', images:['🧀','🍰','💛'], description:'微咸海盐平衡芝士厚重,风味层次丰富。', ingredients:'奶酪、鸡蛋、饼干底、海盐', allergen:'含蛋、奶、麸质', shelf_life:'冷藏 3 天', advice:'冷藏保存',34 skus:[{size:'6寸',flavor:'原味',price:125,stock:99},{size:'8寸',flavor:'原味',price:178,stock:99},{size:'10寸',flavor:'原味',price:240,stock:99},{size:'12寸',flavor:'原味',price:303,stock:99}] },35 { id:4, name:'黑森林巧克力蛋糕', kind_id:4, kind:'巧克力蛋糕', scenes:'生日蛋糕|聚会派对', price:188, original_price:238, sales:265, rating:4.8, stock:99, is_new:0, is_hot:1, is_recommend:0, tags:'微醺', images:['🍫','🎂','🖤'], description:'浓郁黑巧克力与樱桃酒香,经典德式风味。', ingredients:'巧克力、樱桃、奶油、小麦粉', allergen:'含蛋、奶、麸质', shelf_life:'冷藏 2 天', advice:'冷藏保存',36 skus:[{size:'6寸',flavor:'原味',price:132,stock:99},{size:'8寸',flavor:'原味',price:188,stock:99},{size:'10寸',flavor:'原味',price:254,stock:99},{size:'12寸',flavor:'原味',price:320,stock:99}] },37 { id:5, name:'鲜果缤纷水果蛋糕', kind_id:5, kind:'水果蛋糕', scenes:'生日蛋糕|儿童节', price:198, original_price:258, sales:342, rating:4.9, stock:99, is_new:1, is_hot:0, is_recommend:1, tags:'鲜果', images:['🍓','🫐','🥭','🎂'], description:'当季时令鲜果铺满,颜值与营养兼具,孩子最爱。', ingredients:'草莓、蓝莓、芒果、动物奶油、小麦粉', allergen:'含麸质、蛋、奶', shelf_life:'冷藏 2 天', advice:'即做即食风味最佳',38 skus:[{size:'6寸',flavor:'原味',price:139,stock:99},{size:'8寸',flavor:'原味',price:198,stock:99},{size:'10寸',flavor:'原味',price:267,stock:99},{size:'12寸',flavor:'原味',price:337,stock:99}] },39 { id:6, name:'轻享无糖燕麦蛋糕', kind_id:6, kind:'无糖蛋糕', scenes:'长辈祝寿|商务茶歇', price:168, original_price:208, sales:156, rating:4.6, stock:99, is_new:1, is_hot:0, is_recommend:0, tags:'无糖', images:['🌾','🍰','💚'], description:'0 添加蔗糖,燕麦谷香,长辈控糖也能安心吃。', ingredients:'燕麦、鸡蛋、代糖、植物油', allergen:'含蛋、麸质', shelf_life:'冷藏 3 天', advice:'糖尿病人群亦可适量食用',40 skus:[{size:'6寸',flavor:'原味',price:118,stock:99},{size:'8寸',flavor:'原味',price:168,stock:99},{size:'10寸',flavor:'原味',price:227,stock:99},{size:'12寸',flavor:'原味',price:286,stock:99}] },41 { id:7, name:'迪士尼公主翻糖蛋糕', kind_id:7, kind:'翻糖蛋糕', scenes:'儿童节|生日蛋糕', price:288, original_price:358, sales:98, rating:4.9, stock:99, is_new:1, is_hot:1, is_recommend:0, tags:'定制', images:['👑','🏰','🎂'], description:'手工翻糖造型,公主城堡立体呈现,生日派对焦点。', ingredients:'翻糖、蛋糕胚、食用色素', allergen:'含麸质、蛋、奶', shelf_life:'常温 1 天/冷藏 3 天', advice:'避免阳光直射',42 skus:[{size:'6寸',flavor:'原味',price:202,stock:99},{size:'8寸',flavor:'原味',price:288,stock:99},{size:'10寸',flavor:'原味',price:389,stock:99},{size:'12寸',flavor:'原味',price:490,stock:99}] },43 { id:8, name:'法式覆盆子慕斯', kind_id:2, kind:'慕斯蛋糕', scenes:'情侣下午茶|商务茶歇', price:198, original_price:248, sales:176, rating:4.8, stock:99, is_new:0, is_hot:0, is_recommend:1, tags:'法式', images:['🍇','🍰','🌸'], description:'覆盆子酸甜与慕斯柔滑交织,红粉诱惑。', ingredients:'覆盆子、动物奶油、小麦粉', allergen:'含麸质、蛋、奶', shelf_life:'冷藏 2 天', advice:'冷藏保存',44 skus:[{size:'6寸',flavor:'原味',price:139,stock:99},{size:'8寸',flavor:'原味',price:198,stock:99},{size:'10寸',flavor:'原味',price:267,stock:99},{size:'12寸',flavor:'原味',price:337,stock:99}] },45 { id:9, name:'提拉米苏芝士', kind_id:3, kind:'芝士蛋糕', scenes:'聚会派对|情侣下午茶', price:176, original_price:216, sales:233, rating:4.7, stock:99, is_new:0, is_hot:1, is_recommend:0, tags:'意式', images:['☕','🍰','🤎'], description:'马斯卡彭与咖啡酒香,意式经典。', ingredients:'马斯卡彭、手指饼、咖啡、蛋', allergen:'含蛋、奶、麸质', shelf_life:'冷藏 3 天', advice:'冷藏保存',46 skus:[{size:'6寸',flavor:'原味',price:123,stock:99},{size:'8寸',flavor:'原味',price:176,stock:99},{size:'10寸',flavor:'原味',price:238,stock:99},{size:'12寸',flavor:'原味',price:299,stock:99}] },47 { id:10, name:'红丝绒巧克力', kind_id:4, kind:'巧克力蛋糕', scenes:'婚礼庆典|情侣下午茶', price:208, original_price:268, sales:187, rating:4.8, stock:99, is_new:0, is_hot:0, is_recommend:1, tags:'浪漫', images:['🌹','🍰','❤️'], description:'红丝绒胚体配白巧奶油,浪漫喜庆。', ingredients:'可可、奶油芝士、小麦粉', allergen:'含蛋、奶、麸质', shelf_life:'冷藏 2 天', advice:'冷藏保存',48 skus:[{size:'6寸',flavor:'原味',price:146,stock:99},{size:'8寸',flavor:'原味',price:208,stock:99},{size:'10寸',flavor:'原味',price:281,stock:99},{size:'12寸',flavor:'原味',price:354,stock:99}] },49 { id:11, name:'抹茶红豆慕斯', kind_id:2, kind:'慕斯蛋糕', scenes:'生日蛋糕|情侣下午茶', price:168, original_price:208, sales:212, rating:4.7, stock:99, is_new:1, is_hot:0, is_recommend:0, tags:'和风', images:['🍵','🍰','💚'], description:'宇治抹茶微苦回甘,红豆绵密。', ingredients:'抹茶、红豆、动物奶油、小麦粉', allergen:'含麸质、蛋、奶', shelf_life:'冷藏 2 天', advice:'冷藏保存',50 skus:[{size:'6寸',flavor:'原味',price:118,stock:99},{size:'8寸',flavor:'原味',price:168,stock:99},{size:'10寸',flavor:'原味',price:227,stock:99},{size:'12寸',flavor:'原味',price:286,stock:99}] },51 { id:12, name:'寿桃无糖祝寿蛋糕', kind_id:6, kind:'无糖蛋糕', scenes:'长辈祝寿', price:238, original_price:298, sales:121, rating:4.9, stock:99, is_new:0, is_hot:1, is_recommend:0, tags:'祝寿', images:['🍑','🎂','🎊'], description:'寿桃造型无糖配方,祝寿宴席体面之选。', ingredients:'燕麦、代糖、坚果、植物油', allergen:'含蛋、麸质、坚果', shelf_life:'冷藏 3 天', advice:'祝寿专属',52 skus:[{size:'6寸',flavor:'原味',price:167,stock:99},{size:'8寸',flavor:'原味',price:238,stock:99},{size:'10寸',flavor:'原味',price:321,stock:99},{size:'12寸',flavor:'原味',price:405,stock:99}] }53 ],54 reviews: [55 { id:1, product_id:1, rating:5, content:'蛋糕很新鲜,草莓超甜,配送也准时,下次还来!', username:'小甜', images:[], reply:'' },56 { id:2, product_id:3, rating:5, content:'海盐芝士味道惊艳,不太腻,办公室下午茶首选。', username:'阿慕', images:[], reply:'' },57 { id:3, product_id:5, rating:4, content:'水果很丰富,孩子很喜欢,就是有点小贵哈哈。', username:'小甜', images:[], reply:'' }58 ],59 settings: {60 shop_name: '甜趣蛋糕 · Sweet Cake', phone: '400-888-6688',61 address: '西安市雁塔区科技路 18 号甜趣烘焙工坊', delivery_fee: '15',62 free_delivery_amount: '199', delivery_range_km: '10', delivery_advance_hours: '6',63 open_time: '09:00-21:00',64 notice: '蛋糕为新鲜手工制作,请提前 6 小时预约;定制化蛋糕建议提前 1 天。'65 }66};67