1 Star 0 Fork 23

xchaiofioa/小程序点餐系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
database-init.js 3.86 KB
一键复制 编辑 原始数据 按行查看 历史
//菜品类型数据
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":"干煸四季豆是一道特色传统菜肴,属于川菜菜系,主要制作材料有四季豆、猪肉、红干辣椒等。干煸四季豆口味干香辣爽,开胃下酒。制作简单,容易上手,营养价值丰富,是一道色香味俱全的家常菜。"}]
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xchaiofioa/mini-program-ordering.git
[email protected]:xchaiofioa/mini-program-ordering.git
xchaiofioa
mini-program-ordering
小程序点餐系统
master

搜索帮助