代码拉取完成,页面将自动刷新
同步操作将从 Albert/小程序点餐系统 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
//菜品类型数据
db.collection('types').add({
data: [
{
"id": "1",
"name": "汤类"
},
{
"id": "2",
"name": "折扣"
},
{
"id": "3",
"name": "热卖"
},
{
"id": "4",
"name": "特色菜"
},
{
"id": "5",
"name": "冷饮"
}
]
});
//菜品的详细数据
db.collection('goods').add({
data:[
{"id":1,"typeId":"3","imageUrl":"/images/products/mxr.jpg","name":"木须肉","price":36,"real":27,"number":30,"count":1,"good":5,"selected":true,"trait":"鲁菜、家常菜、鲜香美味","detail":"原名木樨肉,是一道常见的特色传统名菜,属八大菜系之一的鲁菜-孔府菜,俗语常读作为木须肉、苜蓿肉等。其菜以猪肉片与鸡蛋、木耳等混炒而成,因炒鸡蛋色黄而碎,类似木樨而得名。"},
{"id":2,"typeId":"4","imageUrl":"/images/products/kyt.jpg","name":"烤羊腿","price":340,"real":210,"number":10,"count":1,"good":4,"selected":true,"trait":"硬菜、宴席主菜","detail":"烤羊腿是一道菜品,制作原料主要有羊后腿、番茄酱、芹菜等。烤羊腿是呼伦贝尔招待宾客的一道佳肴名菜。烤羊腿是从烤全羊演变而来。"},
{"id":3,"typeId":"4","imageUrl":"/images/products/jzdc.jpg","name":"九转大肠","price":65,"real":54,"number":13,"count":1,"good":4,"selected":true,"trait":"鲁菜、传统名吃","detail":"九转大肠"},
{"id":4,"typeId":"5","imageUrl":"/images/products/sd.jpg","name":"圣代","price":9,"real":6,"number":59,"count":1,"good":2,"selected":true,"trait":"甜点","detail":"圣代"},
{"id":5,"typeId":"4","imageUrl":"/images/products/tcly.jpg","name":"糖醋鲤鱼","price":67,"real":58,"number":3,"count":1,"good":4,"selected":true,"trait":"鲁菜、传统名吃","detail":"糖醋鲤鱼是山东省济南市的一道传统名菜,属于鲁菜系,该菜品也是鲁菜的代表菜品之一;该菜品色泽金黄,外焦内嫩,酸甜可口,香鲜味美。"},
{"id":6,"typeId":"5","imageUrl":"/images/products/xdkf.jpg","name":"雪顶咖啡","price":18,"real":15,"number":20,"count":1,"good":5,"selected":true,"trait":"甜点","detail":"一种咖啡,最早出自KFC,由于销售火爆,也成为很多餐饮企业的常用甜点。"},
{"id":7,"typeId":"1","imageUrl":"/images/products/hxgdt.jpg","name":"海鲜疙瘩汤","price":48,"real":42,"number":20,"count":1,"good":5,"selected":true,"trait":"汤类","detail":"海鲜疙瘩汤是青岛的特色小吃之一,制作原料主要有鸡蛋、香菇、肉等。味咸汤醇,滑润清鲜,营养丰富、味道鲜美。"},
{"id":8,"typeId":"2","imageUrl":"/images/products/dsx.jpg","name":"地三鲜","price":22,"real":19,"number":30,"count":1,"good":5,"selected":true,"trait":"折扣","detail":"地三鲜,是一道东北传统名菜,制作材料是三种地里时令新鲜的食材:茄子、土豆和青椒。它不仅在于鲜浓的味道、天然绿色的食材,更胜于它涵盖多种食材的营养,让三味非常普通的食材做成鲜爽无比的佳肴。"},
{"id":9,"typeId":"3","imageUrl":"/images/products/yxrs.jpg","name":"鱼香肉丝","price":35,"real":27,"number":50,"count":1,"good":2,"selected":true,"trait":"热买","detail":"鱼香肉丝是一道著名川菜,其咸鲜酸甜兼备,葱姜蒜香浓郁,其味是调味品调制而成,此法源出于四川民间独具特色的烹鱼调味方法,而今已广泛用于川味的熟菜中。"},
{"id":10,"typeId":"3","imageUrl":"/images/products/gbsjd.jpg","name":"干煸四季豆","price":30,"real":23,"number":50,"count":1,"good":2,"selected":true,"trait":"热买","detail":"干煸四季豆是一道特色传统菜肴,属于川菜菜系,主要制作材料有四季豆、猪肉、红干辣椒等。干煸四季豆口味干香辣爽,开胃下酒。制作简单,容易上手,营养价值丰富,是一道色香味俱全的家常菜。"}]
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。