├── mhzqx小程序 ├── pages │ ├── pay │ │ ├── pay.json │ │ ├── pay.wxss │ │ ├── pay.wxml │ │ └── pay.js │ ├── info │ │ ├── info.json │ │ ├── info.wxss │ │ ├── info.wxml │ │ └── info.js │ ├── login │ │ ├── login.json │ │ ├── login.wxml │ │ ├── login.js │ │ └── login.wxss │ ├── menu │ │ ├── menu.json │ │ ├── menu.wxss │ │ ├── menu.js │ │ └── menu.wxml │ ├── order │ │ ├── order.json │ │ ├── order.wxss │ │ ├── order.js │ │ └── order.wxml │ ├── appraise │ │ ├── appraise.json │ │ ├── appraise.wxss │ │ ├── appraise.wxml │ │ └── appraise.js │ ├── usermenu │ │ ├── usermenu.json │ │ ├── usermenu.wxml │ │ ├── usermenu.js │ │ └── usermenu.wxss │ ├── severadmin │ │ ├── severadmin.json │ │ ├── severadmin.wxml │ │ ├── severadmin.wxss │ │ └── severadmin.js │ ├── severinfo │ │ ├── severinfo.json │ │ ├── severinfo.wxss │ │ ├── severinfo.js │ │ └── severinfo.wxml │ ├── severmenu │ │ ├── severmenu.json │ │ ├── severmenu.wxss │ │ ├── severmenu.wxml │ │ └── severmenu.js │ ├── severaddfood │ │ ├── severaddfood.json │ │ ├── severaddfood.wxss │ │ ├── severaddfood.wxml │ │ └── severaddfood.js │ ├── severalertfood │ │ ├── severalertfood.json │ │ ├── severalertfood.wxss │ │ ├── severalertfood.wxml │ │ └── severalertfood.js │ ├── index │ │ ├── index.json │ │ ├── index.wxml │ │ ├── index.wxss │ │ └── index.js │ └── img │ │ ├── qq.png │ │ ├── wx.png │ │ ├── add.png │ │ ├── jian.png │ │ ├── logo.png │ │ ├── send.png │ │ ├── show.png │ │ ├── addicon.png │ │ ├── loading.gif │ │ ├── wave1.gif │ │ ├── subtract.png │ │ ├── unloading.png │ │ └── uservatar.png ├── images │ ├── logo.png │ ├── order.png │ ├── timg.jpg │ ├── logo_no.png │ ├── kaochuan.jpg │ └── shopInfo.jpg ├── style │ ├── base │ │ ├── fn.wxss │ │ ├── mixin │ │ │ ├── text.wxss │ │ │ ├── setArrow.wxss │ │ │ └── setOnepx.wxss │ │ ├── variable │ │ │ ├── color.wxss │ │ │ ├── global.wxss │ │ │ ├── weui-cell.wxss │ │ │ ├── weui-grid.wxss │ │ │ ├── weui-msg.wxss │ │ │ ├── weui-button.wxss │ │ │ ├── weui-dialog.wxss │ │ │ └── weui-progress.wxss │ │ └── reset.wxss │ ├── widget │ │ ├── weui-cell │ │ │ ├── weui-switch.wxss │ │ │ ├── weui-check.wxss │ │ │ ├── weui-form │ │ │ │ ├── weui-vcode.wxss │ │ │ │ ├── weui-form_common.wxss │ │ │ │ ├── weui-select.wxss │ │ │ │ └── weui-form-preview.wxss │ │ │ ├── weui-access.wxss │ │ │ ├── weui-cell.wxss │ │ │ ├── weui-uploader.wxss │ │ │ └── weui-form.wxss │ │ ├── weui-button │ │ │ └── weui-button.wxss │ │ ├── weui-flex │ │ │ └── weui-flex.wxss │ │ ├── weui-tips │ │ │ ├── weui-badge.wxss │ │ │ └── weui-loadmore.wxss │ │ ├── weui-progress │ │ │ └── weui-progress.wxss │ │ ├── weui-page │ │ │ ├── weui-article.wxss │ │ │ └── weui-msg.wxss │ │ ├── weui-agree │ │ │ └── weui-agree.wxss │ │ ├── weui-grid │ │ │ └── weui-grid.wxss │ │ ├── weui-footer │ │ │ └── weui-footer.wxss │ │ ├── weui-panel │ │ │ └── weui-panel.wxss │ │ ├── weui-tab │ │ │ ├── weui-navbar.wxss │ │ │ └── weui-tab.wxss │ │ ├── weui-searchbar │ │ │ └── weui-searchbar.wxss │ │ ├── weui-animate │ │ │ └── weui-animate.wxss │ │ ├── weui-media-box │ │ │ └── weui-media-box.wxss │ │ └── weui-loading │ │ │ └── weui-loading.wxss │ └── weui.wxss ├── sitemap.json ├── app.wxss ├── utils │ └── util.js ├── app.json ├── project.config.json └── app.js ├── mhzqxNODE后台 ├── views │ ├── error.ejs │ └── index.ejs ├── public │ ├── images │ │ ├── food1.png │ │ ├── food2.png │ │ ├── food3.png │ │ ├── food4.png │ │ ├── food5.png │ │ ├── food6.png │ │ ├── food7.png │ │ ├── food8.png │ │ ├── food9.png │ │ ├── food10.png │ │ └── wxc7f540d89f35da73.o6zAJs7hq-Iyd7O4lOvl11LFDr6c.eAm2jjPDykQt3f7e6451e277c5c73f6f7f3ddf66433b.jpg │ └── stylesheets │ │ └── style.css ├── db │ ├── dbConfig.js │ ├── syscusSql.js │ ├── customerSql.js │ ├── menuSql.js │ ├── orderSql.js │ └── hah.json ├── routes │ ├── index.js │ ├── users.js │ ├── menu.js │ ├── admin.js │ ├── customer.js │ ├── order.js │ └── foodadmin.js ├── package.json ├── app.js └── bin │ └── www ├── README.md └── mhzqx.sql /mhzqx小程序/pages/pay/pay.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/info/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/login/login.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/menu/menu.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/order/order.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/appraise/appraise.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/usermenu/usermenu.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/appraise/appraise.wxss: -------------------------------------------------------------------------------- 1 | /* client/pages/appraise/appraise.wxss */ -------------------------------------------------------------------------------- /mhzqx小程序/pages/severadmin/severadmin.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/severinfo/severinfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/severmenu/severmenu.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/severaddfood/severaddfood.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/severalertfood/severalertfood.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/appraise/appraise.wxml: -------------------------------------------------------------------------------- 1 | 2 | 用户评价 3 | -------------------------------------------------------------------------------- /mhzqx小程序/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/images/logo.png -------------------------------------------------------------------------------- /mhzqx小程序/images/order.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/images/order.png -------------------------------------------------------------------------------- /mhzqx小程序/images/timg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/images/timg.jpg -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/qq.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/wx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/wx.png -------------------------------------------------------------------------------- /mhzqx小程序/images/logo_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/images/logo_no.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/add.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/jian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/jian.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/logo.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/send.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/show.png -------------------------------------------------------------------------------- /mhzqxNODE后台/views/error.ejs: -------------------------------------------------------------------------------- 1 |

<%= message %>

2 |

<%= error.status %>

3 |
<%= error.stack %>
4 | -------------------------------------------------------------------------------- /mhzqx小程序/images/kaochuan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/images/kaochuan.jpg -------------------------------------------------------------------------------- /mhzqx小程序/images/shopInfo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/images/shopInfo.jpg -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/addicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/addicon.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/loading.gif -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/wave1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/wave1.gif -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/subtract.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/subtract.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/unloading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/unloading.png -------------------------------------------------------------------------------- /mhzqx小程序/pages/img/uservatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqx小程序/pages/img/uservatar.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food1.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food2.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food3.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food4.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food5.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food6.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food7.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food8.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food9.png -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/food10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/food10.png -------------------------------------------------------------------------------- /mhzqx小程序/style/base/fn.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqxNODE后台/public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 50px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | a { 7 | color: #00B7FF; 8 | } 9 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/mixin/text.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/mixin/setArrow.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/mixin/setOnepx.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/color.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/global.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/weui-cell.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/weui-grid.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/weui-msg.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/weui-button.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/weui-dialog.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/variable/weui-progress.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /mhzqxNODE后台/db/dbConfig.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | mysql: { 3 | host: '127.0.0.1', 4 | user: 'root', 5 | password: 'root', 6 | database: 'mhzqx', 7 | port: 3306 8 | } 9 | } -------------------------------------------------------------------------------- /mhzqxNODE后台/db/syscusSql.js: -------------------------------------------------------------------------------- 1 | var syscusSql = { 2 | insert: 'INSERT INTO syscus(CUSID, NICKNAME, LIMITS) VALUES(?, ?, ?)', 3 | queryAll: 'SELECT * FROM syscus' 4 | } 5 | module.exports = syscusSql -------------------------------------------------------------------------------- /mhzqx小程序/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "allow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /mhzqx小程序/app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | @import 'pages/style/weui.wxss'; 3 | 4 | .container { 5 | display: flex; 6 | flex-direction: column; 7 | align-items: center; 8 | box-sizing: border-box; 9 | } 10 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-switch.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_switch{padding-top:6px;padding-bottom:6px} -------------------------------------------------------------------------------- /mhzqxNODE后台/db/customerSql.js: -------------------------------------------------------------------------------- 1 | var customerSql = { 2 | insert: 'INSERT INTO customer(CUSID, OPENID, NICKNAME) VALUES(?, ?, ?)', 3 | queryAll: 'SELECT * FROM customer', 4 | getCustomerByOPENID: 'SELECT * FROM customer WHERE OPENID' 5 | } 6 | module.exports = customerSql -------------------------------------------------------------------------------- /mhzqxNODE后台/routes/index.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | 4 | /* GET home page. */ 5 | router.get('/', function(req, res, next) { 6 | res.render('index', { title: 'Express' }); 7 | }); 8 | 9 | module.exports = router; 10 | -------------------------------------------------------------------------------- /mhzqxNODE后台/routes/users.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | 4 | /* GET users listing. */ 5 | router.get('/', function(req, res, next) { 6 | res.send('respond with a resource'); 7 | }); 8 | 9 | module.exports = router; 10 | -------------------------------------------------------------------------------- /mhzqx小程序/style/base/reset.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | page{line-height:1.6;font-family:-apple-system-font,Helvetica Neue,sans-serif}icon{vertical-align:middle} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-button/weui-button.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-btn{margin-top:15px}.weui-btn:first-child{margin-top:0}.weui-btn-area{margin:1.17647059em 15px .3em} -------------------------------------------------------------------------------- /mhzqxNODE后台/public/images/wxc7f540d89f35da73.o6zAJs7hq-Iyd7O4lOvl11LFDr6c.eAm2jjPDykQt3f7e6451e277c5c73f6f7f3ddf66433b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopapername/mhzqx-weChatApp/HEAD/mhzqxNODE后台/public/images/wxc7f540d89f35da73.o6zAJs7hq-Iyd7O4lOvl11LFDr6c.eAm2jjPDykQt3f7e6451e277c5c73f6f7f3ddf66433b.jpg -------------------------------------------------------------------------------- /mhzqxNODE后台/views/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%= title %> 5 | 6 | 7 | 8 |

<%= title %>

9 |

Welcome to <%= title %>

10 | 11 | 12 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-flex/weui-flex.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-flex{display:-webkit-box;display:-webkit-flex;display:flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1;flex:1} -------------------------------------------------------------------------------- /mhzqx小程序/pages/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 开发者将获取一些用户权限 5 | ·获取你的公开信息(昵称、头像等) 6 | 7 | 8 | -------------------------------------------------------------------------------- /mhzqxNODE后台/db/menuSql.js: -------------------------------------------------------------------------------- 1 | var menuSql = { 2 | queryGoodsTypeAll: 'SELECT * FROM goodstype', 3 | queryGoodsAll: 'SELECT * FROM goods', 4 | insertGoods: 'INSERT INTO goods(GID, GTID, GNAME, GSTATE, GPRICE, GCONTENT, GIMG, GTIME, GCOUNT, GINFO) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', 5 | insertGoodsType: 'INSERT INTO goodstype(GTID, GTNAME, GTSTATE) VALUES(?, ?, ?)', 6 | } 7 | module.exports = menuSql -------------------------------------------------------------------------------- /mhzqx小程序/pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | /* pages/index/index.wxss */ 2 | .content1 { 3 | display: flex; 4 | flex-direction: column; 5 | align-items: center; 6 | justify-content: space-around; 7 | } 8 | .click-btn { 9 | width: 80%; 10 | } 11 | .shows-img { 12 | width: 80%; 13 | } 14 | .gettitle{ 15 | font-size: larger; 16 | } 17 | .getinfo{ 18 | margin: 10px 0; 19 | font-size: small; 20 | } -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-tips/weui-badge.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-badge{display:inline-block;padding:.15em .4em;min-width:8px;border-radius:18px;background-color:#e64340;color:#fff;line-height:1.2;text-align:center;font-size:12px;vertical-align:middle}.weui-badge_dot{padding:.4em;min-width:0} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-progress/weui-progress.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-progress{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-progress__bar{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-progress__opr{margin-left:15px;font-size:0} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-check.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-icon-radio{margin-left:3.2px;margin-right:3.2px}.weui-icon-checkbox_circle,.weui-icon-checkbox_success{margin-left:4.6px;margin-right:4.6px}.weui-check__label:active{background-color:#ececec}.weui-check{position:absolute;left:-9999px}.weui-check__hd_in-checkbox{padding-right:.35em}.weui-cell__ft_in-radio{padding-left:.35em} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-page/weui-article.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-article{padding:20px 15px;font-size:15px}.weui-article__section{margin-bottom:1.5em}.weui-article__h1{font-size:18px;font-weight:400;margin-bottom:.9em}.weui-article__h2{font-size:16px;font-weight:400;margin-bottom:.34em}.weui-article__h3{font-weight:400;font-size:15px;margin-bottom:.34em}.weui-article__p{margin:0 0 .8em} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-form/weui-vcode.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_vcode{padding-right:0}.weui-vcode-btn,.weui-vcode-img{margin-left:5px;height:2.58823529em;vertical-align:middle}.weui-vcode-btn{display:inline-block;padding:0 .6em 0 .7em;border-left:1px solid #e5e5e5;line-height:2.58823529em;font-size:17px;color:#3cc51f;white-space:nowrap}.weui-vcode-btn:active{color:#52a341} -------------------------------------------------------------------------------- /mhzqxNODE后台/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mhzqx", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "node ./bin/www" 7 | }, 8 | "dependencies": { 9 | "cookie-parser": "~1.4.4", 10 | "debug": "~2.6.9", 11 | "ejs": "~2.6.1", 12 | "express": "~4.16.1", 13 | "formidable": "^1.2.1", 14 | "http-errors": "~1.6.3", 15 | "morgan": "~1.9.1", 16 | "mysql": "^2.17.1", 17 | "node-uuid": "^1.4.8", 18 | "path": "^0.12.7", 19 | "request": "^2.88.0" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/index/index.js: -------------------------------------------------------------------------------- 1 | // client/pages/login.js 2 | const app = getApp() 3 | 4 | Page({ 5 | data: { 6 | }, 7 | 8 | onLoad: function () { 9 | 10 | }, 11 | onGotUserInfo: function (e) { 12 | if (e.detail.userInfo) { 13 | app.globalData.userInfo = e.detail.userInfo 14 | wx.navigateTo({ 15 | url: '../login/login' 16 | }) 17 | } else { 18 | wx.showToast({ 19 | title: '登录信息获取失败!', 20 | icon: "none", 21 | duration: 1000, 22 | mask: true 23 | }) 24 | } 25 | }, 26 | }) -------------------------------------------------------------------------------- /mhzqx小程序/utils/util.js: -------------------------------------------------------------------------------- 1 | const formatTime = date => { 2 | const year = date.getFullYear() 3 | const month = date.getMonth() + 1 4 | const day = date.getDate() 5 | const hour = date.getHours() 6 | const minute = date.getMinutes() 7 | const second = date.getSeconds() 8 | 9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':') 10 | } 11 | 12 | const formatNumber = n => { 13 | n = n.toString() 14 | return n[1] ? n : '0' + n 15 | } 16 | 17 | module.exports = { 18 | formatTime: formatTime 19 | } 20 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-agree/weui-agree.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-agree{display:block;padding:.5em 15px;font-size:13px}.weui-agree__text{color:#999}.weui-agree__link{display:inline;color:#586c94}.weui-agree__checkbox{position:absolute;left:-9999px}.weui-agree__checkbox-icon{position:relative;top:2px;display:inline-block;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:11px;height:11px}.weui-agree__checkbox-icon-check{position:absolute;top:1px;left:1px} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-grid/weui-grid.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-grids{border-top:1rpx solid #d9d9d9;border-left:1rpx solid #d9d9d9;overflow:hidden}.weui-grid{position:relative;float:left;padding:20px 10px;width:33.33333333%;box-sizing:border-box;border-right:1rpx solid #d9d9d9;border-bottom:1rpx solid #d9d9d9}.weui-grid_active{background-color:#ececec}.weui-grid__icon{display:block;width:28px;height:28px;margin:0 auto}.weui-grid__label{margin-top:5px;display:block;text-align:center;color:#000;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-page/weui-msg.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-msg{padding-top:36px;text-align:center}.weui-msg__link{display:inline;color:#586c94}.weui-msg__icon-area{margin-bottom:30px}.weui-msg__text-area{margin-bottom:25px;padding:0 20px}.weui-msg__title{margin-bottom:5px;font-weight:400;font-size:20px}.weui-msg__desc{font-size:14px;color:#999}.weui-msg__opr-area{margin-bottom:25px}.weui-msg__extra-area{margin-bottom:15px;font-size:14px;color:#999}@media screen and (min-height:438px){.weui-msg__extra-area{position:fixed;left:0;bottom:0;width:100%;text-align:center}} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-footer/weui-footer.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-footer{color:#999;font-size:14px;text-align:center}.weui-footer_fixed-bottom{position:fixed;bottom:.52em;left:0;right:0}.weui-footer__links{font-size:0}.weui-footer__link{display:inline-block;vertical-align:top;margin:0 .62em;position:relative;font-size:14px;color:#586c94}.weui-footer__link:before{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #c7c7c7;color:#c7c7c7;left:-.65em;top:.36em;bottom:.36em}.weui-footer__link:first-child:before{display:none}.weui-footer__text{padding:0 .34em;font-size:12px} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-access.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_access{color:inherit}.weui-cell__ft_in-access{padding-right:13px;position:relative}.weui-cell__ft_in-access:after{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;margin-top:-4px;right:2px}.weui-cell_link{color:#586c94;font-size:14px}.weui-cell_link:active{background-color:#ececec}.weui-cell_link:first-child:before{display:block} -------------------------------------------------------------------------------- /mhzqx小程序/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index", 4 | "pages/login/login", 5 | "pages/menu/menu", 6 | "pages/order/order", 7 | "pages/usermenu/usermenu", 8 | "pages/severaddfood/severaddfood", 9 | "pages/severadmin/severadmin", 10 | "pages/severmenu/severmenu", 11 | "pages/severalertfood/severalertfood", 12 | "pages/info/info", 13 | "pages/severinfo/severinfo", 14 | "pages/pay/pay", 15 | "pages/appraise/appraise" 16 | ], 17 | "window": { 18 | "backgroundTextStyle": "light", 19 | "navigationBarBackgroundColor": "#fff", 20 | "navigationBarTitleText": "满汉子全席", 21 | "navigationBarTextStyle": "black" 22 | }, 23 | "sitemapLocation": "sitemap.json" 24 | } -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-panel/weui-panel.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-panel{background-color:#fff;margin-top:10px;position:relative;overflow:hidden}.weui-panel:first-child{margin-top:0}.weui-panel:before{top:0;border-top:1rpx solid #e5e5e5}.weui-panel:after,.weui-panel:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}.weui-panel:after{bottom:0;border-bottom:1rpx solid #e5e5e5}.weui-panel__hd{padding:14px 15px 10px;color:#999;font-size:13px;position:relative}.weui-panel__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #e5e5e5;color:#e5e5e5;left:15px} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-tips/weui-loadmore.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-loadmore{width:65%;margin:1.5em auto;line-height:1.6em;font-size:14px;text-align:center}.weui-loadmore__tips{display:inline-block;vertical-align:middle}.weui-loadmore_line{border-top:1px solid #e5e5e5;margin-top:2.4em}.weui-loadmore__tips_in-line{position:relative;top:-.9em;padding:0 .55em;background-color:#fff;color:#999}.weui-loadmore__tips_in-dot{position:relative;padding:0 .16em;width:4px;height:1.6em}.weui-loadmore__tips_in-dot:before{content:" ";position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-2px;width:4px;height:4px;border-radius:50%;background-color:#e5e5e5} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-form/weui-form_common.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_input{padding-top:0;padding-bottom:0}.weui-label{width:105px;word-wrap:break-word;word-break:break-all}.weui-input{height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em}.weui-toptips{position:fixed;-webkit-transform:translateZ(0);transform:translateZ(0);top:0;left:0;right:0;padding:5px;font-size:14px;text-align:center;color:#fff;z-index:5000;word-wrap:break-word;word-break:break-all}.weui-toptips_warn{background-color:#e64340}.weui-textarea{display:block;width:100%}.weui-textarea-counter{color:#b2b2b2;text-align:right}.weui-cell_warn,.weui-textarea-counter_warn{color:#e64340} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-form/weui-select.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_select{padding:0}.weui-select{position:relative;padding-left:15px;padding-right:30px;height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em;border-right:1rpx solid #d9d9d9}.weui-select:before{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;right:15px;margin-top:-4px}.weui-select_in-select-after{padding-left:0}.weui-cell__bd_in-select-before,.weui-cell__hd_in-select-after{padding-left:15px} -------------------------------------------------------------------------------- /mhzqxNODE后台/db/orderSql.js: -------------------------------------------------------------------------------- 1 | var orderSql = { 2 | insertCusOrder: 'INSERT INTO cusorders(ORDERID, CUSID, ORDERTIME, ORDERSTATE, ORDERTOTLEPRICE) VALUES(?, ?, ?, ?, ?)', 3 | insertOrderDetail: 'INSERT INTO orderdetail(GID, ORDERID, GNAME, GCOUNT, GPRICE, GTIME) VALUES(?, ?, ?, ?, ?, ?)', 4 | insertOverOrder: 'INSERT INTO overorder(ORDERID, CUSID, ORDERTIME, ORDERSTATE, ORDERTOTLEPRICE) VALUES(?, ?, ?, ?, ?)', 5 | queryAllCusOrder: 'SELECT * FROM cusorders', 6 | queryAllOrderDetail: 'SELECT * FROM orderdetail', 7 | queryAllOverOrder: 'SELECT * FROM overorder', 8 | selectCusOrder: 'SELECT * FROM cusorders WHERE CUSID=', 9 | selectCusOrderOrderId: 'SELECT * FROM cusorders WHERE ORDERID=', 10 | selectOrderDetail: 'SELECT * FROM orderdetail WHERE ORDERID=', 11 | deleteCusOrder: 'DELETE FROM cusorders WHERE ORDERID=' 12 | } 13 | 14 | module.exports = orderSql -------------------------------------------------------------------------------- /mhzqx小程序/pages/pay/pay.wxss: -------------------------------------------------------------------------------- 1 | /* client/pages/pay/pay.wxss */ 2 | 3 | page { 4 | margin: 0; 5 | padding: 0; 6 | min-height: 100%; 7 | } 8 | .page-head-box 9 | { 10 | display: flex; 11 | flex-direction: column; 12 | justify-items: center; 13 | align-items: center; 14 | margin: 100rpx; 15 | } 16 | .mybtn 17 | { 18 | background-color: white!important; 19 | border: none!important; 20 | } 21 | .pay-img 22 | { 23 | width: 50rpx; 24 | height: 50rpx; 25 | margin: 20rpx; 26 | } 27 | .page-bottom 28 | { 29 | display: flex; 30 | flex-direction: row; 31 | position: fixed; 32 | justify-content: center; 33 | bottom: 20rpx; 34 | width: 100%; 35 | } 36 | .weui-btn 37 | { 38 | width: 90%; 39 | } 40 | /* 字体 */ 41 | .myfont1 42 | { 43 | opacity: .6; 44 | font-size: small; 45 | } 46 | .myfont2 47 | { 48 | font-weight: 700; 49 | font-size: 80rpx; 50 | } 51 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/severadmin/severadmin.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{item.name}} 8 | 9 | 10 | 11 |
12 | 新管理员账号 : 13 | 14 | 15 |
16 |
17 | 18 | 19 |
-------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-tab/weui-navbar.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-navbar{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;z-index:500;top:0;width:100%;border-bottom:1rpx solid #ccc}.weui-navbar__item{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:13px 0;text-align:center;font-size:0}.weui-navbar__item.weui-bar__item_on{color:#1aad19}.weui-navbar__slider{position:absolute;content:" ";left:0;bottom:0;width:6em;height:3px;background-color:#1aad19;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.weui-navbar__title{display:inline-block;font-size:15px;max-width:8em;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal} -------------------------------------------------------------------------------- /mhzqx小程序/project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件", 3 | "packOptions": { 4 | "ignore": [] 5 | }, 6 | "setting": { 7 | "urlCheck": false, 8 | "es6": true, 9 | "postcss": true, 10 | "minified": true, 11 | "newFeature": true, 12 | "autoAudits": false, 13 | "coverView": true 14 | }, 15 | "compileType": "miniprogram", 16 | "libVersion": "2.10.2", 17 | "appid": "wx8326c752c26474eb", 18 | "projectname": "mhzqx%E5%B0%8F%E7%A8%8B%E5%BA%8F", 19 | "debugOptions": { 20 | "hidedInDevtools": [] 21 | }, 22 | "isGameTourist": false, 23 | "simulatorType": "wechat", 24 | "simulatorPluginLibVersion": {}, 25 | "condition": { 26 | "search": { 27 | "current": -1, 28 | "list": [] 29 | }, 30 | "conversation": { 31 | "current": -1, 32 | "list": [] 33 | }, 34 | "game": { 35 | "currentL": -1, 36 | "list": [] 37 | }, 38 | "miniprogram": { 39 | "current": -1, 40 | "list": [] 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/appraise/appraise.js: -------------------------------------------------------------------------------- 1 | // client/pages/appraise/appraise.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | 9 | }, 10 | 11 | /** 12 | * 生命周期函数--监听页面加载 13 | */ 14 | onLoad: function (options) { 15 | 16 | }, 17 | 18 | /** 19 | * 生命周期函数--监听页面初次渲染完成 20 | */ 21 | onReady: function () { 22 | 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面显示 27 | */ 28 | onShow: function () { 29 | 30 | }, 31 | 32 | /** 33 | * 生命周期函数--监听页面隐藏 34 | */ 35 | onHide: function () { 36 | 37 | }, 38 | 39 | /** 40 | * 生命周期函数--监听页面卸载 41 | */ 42 | onUnload: function () { 43 | 44 | }, 45 | 46 | /** 47 | * 页面相关事件处理函数--监听用户下拉动作 48 | */ 49 | onPullDownRefresh: function () { 50 | 51 | }, 52 | 53 | /** 54 | * 页面上拉触底事件的处理函数 55 | */ 56 | onReachBottom: function () { 57 | 58 | }, 59 | 60 | /** 61 | * 用户点击右上角分享 62 | */ 63 | onShareAppMessage: function () { 64 | 65 | } 66 | }) -------------------------------------------------------------------------------- /mhzqx小程序/pages/severadmin/severadmin.wxss: -------------------------------------------------------------------------------- 1 | /* pages/severadmin/severadmin.wxss */ 2 | .container{ 3 | padding:0 50rpx; 4 | margin: 50rpx 0; 5 | display: flex; 6 | justify-content: center; 7 | } 8 | .list-box 9 | { 10 | width: 100%; 11 | } 12 | .list-item 13 | { 14 | display: flex; 15 | align-items: center; 16 | justify-content:space-between; 17 | border: 1px solid rgba(0, 0, 0, .2); 18 | border-radius: 10rpx; 19 | padding: 20rpx; 20 | margin-bottom: 40rpx; 21 | } 22 | .user-box 23 | { 24 | display: flex; 25 | align-items: center; 26 | } 27 | .item-img 28 | { 29 | width: 100rpx; 30 | height: 100rpx; 31 | } 32 | .item-text 33 | { 34 | color: rgba(0, 0, 0, .8); 35 | margin-left: 40rpx; 36 | } 37 | .item-icon 38 | { 39 | width: 40rpx; 40 | height: 40rpx; 41 | } 42 | .add-icon{ 43 | position: fixed; 44 | bottom: 40rpx; 45 | width: 100rpx; 46 | height: 100rpx; 47 | } 48 | .weui-input 49 | { 50 | border: 1px solid rgba(0, 0, 0, .2); 51 | padding-left: 20rpx; 52 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mhzqx-weChatApp 2 | 微信小程序-点餐系统(包含前端,后台及数据库表) 3 | 4 | ### 小程序预览 5 | 6 | 由于没有正式上线使用,仅作为demo使用,所以请移步csdn预览动图:https://blog.csdn.net/weixin_43388844/article/details/96728376 7 | 8 | ### 满汉子全席——点餐小程序 9 | 10 | 本小弟参加实训使用微信开发者工具写的点餐小程序项目,同时使用nodejs编写后台部分来操作数据库,和我一样初学小程序或nodejs的可以在本项目中学习了解关于小程序代码结构组织,模块化,构建等内容,入门小程序及nodejs的好选择。 11 | 12 | ### 技术栈及工具 13 | 14 | 工具:微信开发者工具 vscode mysql 15 | 16 | 前端: html + css + js + 小程序api + weui 17 | 18 | 后台: nodejs + express框架 + mysql数据库 19 | 20 | ### 起手式 21 | 22 | star and fork本项目 23 | 24 | 安装node环境 25 | 26 | git clone https://github.com/nopapername/mhzqx-weChatApp.git (本项目地址) 27 | 28 | ###### 前端小程序页面打开步骤: 29 | 30 | 使用微信开发者工具导入 mhzqx小程序文件夹中的工程 31 | 32 | 编译运行 33 | 34 | ###### 后台运行步骤: 35 | 36 | 导入mhzqx.sql表数据到你的数据库中 37 | 38 | cd mhzqxNODE后台 (进入mhzqxNODE后台 文件夹目录下) 39 | 40 | 修改db文件夹目录下的dbConfig.js文件 为你自己的数据库配置 41 | 42 | 重点:修改routes文件夹下customer.js里面的appid和secret为自己小程序号的小程序id和密钥 43 | 44 | npm install (建议使用淘宝镜像cnpm) 45 | 46 | npm start 47 | 48 | ### 交流 49 | 50 | 项目不再维护,请自行解决问题 51 | 52 | > 53 | 54 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-tab/weui-tab.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-navbar{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;z-index:500;top:0;width:100%;border-bottom:1rpx solid #ccc}.weui-navbar__item{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:13px 0;text-align:center;font-size:0}.weui-navbar__item.weui-bar__item_on{color:#1aad19}.weui-navbar__slider{position:absolute;content:" ";left:0;bottom:0;width:6em;height:3px;background-color:#1aad19;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.weui-navbar__title{display:inline-block;font-size:15px;max-width:8em;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.weui-tab{position:relative;height:100%}.weui-tab__panel{box-sizing:border-box;height:100%;padding-top:50px;overflow:auto;-webkit-overflow-scrolling:touch} -------------------------------------------------------------------------------- /mhzqx小程序/pages/severaddfood/severaddfood.wxss: -------------------------------------------------------------------------------- 1 | /* pages/severalertfood/severalertfood.wxss */ 2 | .container { 3 | display: flex; 4 | flex-direction: column; 5 | align-items: center; 6 | padding: 50rpx 0; 7 | } 8 | .head-img { 9 | height: 300rpx; 10 | width: 300rpx; 11 | } 12 | form{ 13 | width: 80%; 14 | } 15 | .input-box { 16 | margin: 40rpx 0; 17 | } 18 | 19 | .weui-input,.weui-textarea,radio-group { 20 | border: 2rpx solid rgba(0, 0, 0, 0.2); 21 | border-radius: 10rpx; 22 | font-size: 0.7rem; 23 | padding-left: 20rpx; 24 | } 25 | 26 | .weui-textarea{ 27 | padding-top: 20rpx; 28 | } 29 | .weui-cell__bd 30 | { 31 | color: rgba(0, 0, 0, 0.6); 32 | } 33 | .weui-textarea-counter 34 | { 35 | font-size: 0.7rem; 36 | } 37 | .weui-uploader__input-box 38 | { 39 | width: 100%; 40 | } 41 | .up-img-box 42 | { 43 | display: flex; 44 | justify-content: center; 45 | } 46 | .up-img 47 | { 48 | height: 200rpx; 49 | width: 200rpx; 50 | } 51 | .up-text 52 | { 53 | font-size:.7rem; 54 | color: rgba(0, 0, 0, 0.6); 55 | } 56 | .myfont1 57 | { 58 | color: rgb(4, 146, 240); 59 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/severalertfood/severalertfood.wxss: -------------------------------------------------------------------------------- 1 | /* pages/severalertfood/severalertfood.wxss */ 2 | .container { 3 | display: flex; 4 | flex-direction: column; 5 | align-items: center; 6 | padding: 50rpx 0; 7 | } 8 | .head-img { 9 | height: 300rpx; 10 | width: 300rpx; 11 | } 12 | form{ 13 | width: 80%; 14 | } 15 | .input-box { 16 | margin: 40rpx 0; 17 | } 18 | 19 | .weui-input,.weui-textarea,radio-group { 20 | border: 2rpx solid rgba(0, 0, 0, 0.2); 21 | border-radius: 10rpx; 22 | font-size: 0.7rem; 23 | padding-left: 20rpx; 24 | } 25 | 26 | .weui-textarea{ 27 | padding-top: 20rpx; 28 | } 29 | .weui-cell__bd 30 | { 31 | color: rgba(0, 0, 0, 0.6); 32 | } 33 | .weui-textarea-counter 34 | { 35 | font-size: 0.7rem; 36 | } 37 | .weui-uploader__input-box 38 | { 39 | width: 100%; 40 | } 41 | .up-img-box 42 | { 43 | display: flex; 44 | justify-content: center; 45 | } 46 | .up-img 47 | { 48 | height: 200rpx; 49 | width: 200rpx; 50 | } 51 | .up-text 52 | { 53 | font-size:.7rem; 54 | color: rgba(0, 0, 0, 0.6); 55 | } 56 | .myfont1 57 | { 58 | color: rgb(4, 146, 240); 59 | } -------------------------------------------------------------------------------- /mhzqx小程序/pages/login/login.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 管理员模式 27 | 28 | @满汉子全席餐厅 29 | 30 | 31 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-searchbar/weui-searchbar.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-search-bar{position:relative;padding:8px 10px;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;background-color:#efeff4;border-top:1rpx solid #d7d6dc;border-bottom:1rpx solid #d7d6dc}.weui-icon-search{margin-right:8px;font-size:inherit}.weui-icon-search_in-box{position:absolute;left:10px;top:7px}.weui-search-bar__text{display:inline-block;font-size:14px;vertical-align:middle}.weui-search-bar__form{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;border-radius:5px;background:#fff;border:1rpx solid #e6e6ea}.weui-search-bar__box{position:relative;padding-left:30px;padding-right:30px;width:100%;box-sizing:border-box;z-index:1}.weui-search-bar__input{height:28px;line-height:28px;font-size:14px}.weui-icon-clear{position:absolute;top:0;right:0;padding:7px 8px;font-size:0}.weui-search-bar__label{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:3px;text-align:center;color:#9b9b9b;background:#fff;line-height:28px}.weui-search-bar__cancel-btn{margin-left:10px;line-height:28px;color:#09bb07;white-space:nowrap} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-animate/weui-animate.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | @-webkit-keyframes a{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes a{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.weui-animate-slide-up{-webkit-animation:a ease .3s forwards;animation:a ease .3s forwards}@-webkit-keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.weui-animate-slide-down{-webkit-animation:b ease .3s forwards;animation:b ease .3s forwards}@-webkit-keyframes c{0%{opacity:0}to{opacity:1}}@keyframes c{0%{opacity:0}to{opacity:1}}.weui-animate-fade-in{-webkit-animation:c ease .3s forwards;animation:c ease .3s forwards}@-webkit-keyframes d{0%{opacity:1}to{opacity:0}}@keyframes d{0%{opacity:1}to{opacity:0}}.weui-animate-fade-out{-webkit-animation:d ease .3s forwards;animation:d ease .3s forwards} -------------------------------------------------------------------------------- /mhzqx小程序/pages/pay/pay.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 支付剩余时间 4 | ¥\t{{sumprice}} 5 | 订单详情>> 6 | 7 | 8 | 9 | 10 | 11 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/severinfo/severinfo.wxss: -------------------------------------------------------------------------------- 1 | /* client/pages/info/info.wxss */ 2 | 3 | page { 4 | margin: 0; 5 | padding: 0; 6 | min-height: 100%; 7 | } 8 | 9 | .container { 10 | width: 100%; 11 | display: flex; 12 | flex-direction: column; 13 | align-items: center; 14 | } 15 | 16 | .page-head { 17 | display: flex; 18 | flex-direction: column; 19 | align-items: center; 20 | border-bottom: 1rpx solid rgba(0, 0, 0, 0.3); 21 | margin: 50rpx; 22 | } 23 | 24 | .food-img { 25 | width: 200rpx; 26 | height: 200rpx; 27 | } 28 | 29 | .page-content-box { 30 | width: 90%; 31 | display: flex; 32 | flex-direction: column; 33 | } 34 | 35 | .info-box { 36 | width: 100%; 37 | } 38 | 39 | .appraise-content { 40 | display: flex; 41 | flex-direction: column; 42 | align-items: center; 43 | margin: 50rpx; 44 | width: 80%; 45 | } 46 | 47 | .appraise-item-box { 48 | display: flex; 49 | flex-direction: row; 50 | justify-content: space-between; 51 | align-items: center; 52 | width: 100%; 53 | } 54 | 55 | .weui-progress__bar-box { 56 | width: 40%; 57 | } 58 | 59 | .myfont1 { 60 | font-size: smaller; 61 | opacity: 0.7; 62 | } 63 | .cut-btn 64 | { 65 | width: 100%; 66 | margin-bottom: 20rpx; 67 | } 68 | .myfont2 { 69 | font-style: oblique; 70 | color: rgb(199, 25, 25); 71 | } 72 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-cell.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cells{position:relative;margin-top:1.17647059em;background-color:#fff;line-height:1.41176471;font-size:17px}.weui-cells:before{top:0;border-top:1rpx solid #d9d9d9}.weui-cells:after,.weui-cells:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-cells:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-cells__title{margin-top:.77em;margin-bottom:.3em;padding-left:15px;padding-right:15px;color:#999;font-size:14px}.weui-cells_after-title{margin-top:0}.weui-cells__tips{margin-top:.3em;color:#999;padding-left:15px;padding-right:15px;font-size:14px}.weui-cell{padding:10px 15px;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cell:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-cell:first-child:before{display:none}.weui-cell_active{background-color:#ececec}.weui-cell_primary{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.weui-cell__bd{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-cell__ft{text-align:right;color:#999} -------------------------------------------------------------------------------- /mhzqx小程序/pages/usermenu/usermenu.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 满汉子,满30元送扎啤~ 5 | 6 | 7 | 客官,这是您的菜单 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | {{item.gname}}\n\n 18 | \n*{{item.gcount}} 19 | 20 | {{item.gprice*item.gcount}} 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 总计: 29 | {{sumprice}} 30 | 31 | 去结账 32 | 33 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/severadmin/severadmin.js: -------------------------------------------------------------------------------- 1 | // pages/severadmin/severadmin.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | adminlist: [{ 9 | id: '1', 10 | avtar: "../img/uservatar.png", 11 | name: "张三宝" 12 | }, { 13 | id: '2', 14 | avtar: "../img/uservatar.png", 15 | name: "欧阳甩锅" 16 | }, { 17 | id: '3', 18 | avtar: "../img/uservatar.png", 19 | name: "彭于艳" 20 | }, ], 21 | addflag: false, 22 | }, 23 | 24 | /** 25 | * 生命周期函数--监听页面加载 26 | */ 27 | onLoad: function(options) { 28 | 29 | }, 30 | 31 | /** 32 | * 生命周期函数--监听页面初次渲染完成 33 | */ 34 | onReady: function() { 35 | 36 | }, 37 | 38 | /** 39 | * 生命周期函数--监听页面显示 40 | */ 41 | onShow: function() { 42 | 43 | }, 44 | 45 | /** 46 | * 生命周期函数--监听页面隐藏 47 | */ 48 | onHide: function() { 49 | 50 | }, 51 | 52 | /** 53 | * 生命周期函数--监听页面卸载 54 | */ 55 | onUnload: function() { 56 | 57 | }, 58 | submitadd: function(e) { 59 | var admin = { 60 | id: '3', 61 | avtar: "../img/uservatar.png", 62 | name: "" 63 | } 64 | admin.id = e.detail.value.id; 65 | admin.name = e.detail.value.id; 66 | this.data.adminlist.push(admin); 67 | this.setData({ 68 | adminlist: this.data.adminlist, 69 | addflag: false, 70 | }) 71 | }, 72 | subtract: function(e) { 73 | console.log(e.target.dataset.id) 74 | }, 75 | add: function() { 76 | this.setData({ 77 | addflag: true 78 | }) 79 | }, 80 | }) -------------------------------------------------------------------------------- /mhzqx小程序/pages/severinfo/severinfo.js: -------------------------------------------------------------------------------- 1 | var app = getApp() 2 | // client/pages/info/info.js 3 | Page({ 4 | 5 | /** 6 | * 页面的初始数据 7 | */ 8 | data: { 9 | foodinfo: {}, 10 | serveraddr: '', 11 | }, 12 | 13 | /** 14 | * 生命周期函数--监听页面加载 15 | */ 16 | onLoad: function(e) { 17 | this.setData({ 18 | foodinfo: JSON.parse(e.foodinfo), 19 | serveraddr: app.globalData.serveraddr, 20 | }) 21 | }, 22 | 23 | /** 24 | * 生命周期函数--监听页面初次渲染完成 25 | */ 26 | onReady: function() { 27 | 28 | }, 29 | 30 | /** 31 | * 生命周期函数--监听页面显示 32 | */ 33 | onShow: function() { 34 | 35 | }, 36 | 37 | /** 38 | * 生命周期函数--监听页面隐藏 39 | */ 40 | onHide: function() { 41 | 42 | }, 43 | 44 | /** 45 | * 生命周期函数--监听页面卸载 46 | */ 47 | onUnload: function() { 48 | 49 | }, 50 | // 自定义函数 51 | cut: function() { 52 | 53 | console.log(this.data.foodinfo.GID) 54 | wx.request({ 55 | url: app.globalData.serveraddr + '/foodadmin/uninstall', 56 | data: { 57 | foodinfo:this.data.foodinfo.GID, 58 | }, 59 | success(res) { 60 | if (res.data.result.code == 200) { 61 | wx.showToast({ 62 | title: '下架成功', 63 | icon: 'success', 64 | duration: 3000 65 | }); 66 | wx.reLaunch({ 67 | url: '../severmenu/severmenu', 68 | }) 69 | } else { 70 | wx.showToast({ 71 | title: '下架失败', 72 | icon: 'success', 73 | duration: 3000 74 | }); 75 | } 76 | } 77 | }) 78 | } 79 | }) -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-media-box/weui-media-box.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-media-box{padding:15px;position:relative}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #e5e5e5;color:#e5e5e5;left:15px}.weui-media-box:first-child:before{display:none}.weui-media-box__title{font-weight:400;font-size:17px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-wrap:break-word;word-break:break-all}.weui-media-box__desc{color:#999;font-size:13px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weui-media-box__info{margin-top:15px;padding-bottom:5px;font-size:13px;color:#cecece;line-height:1em;list-style:none;overflow:hidden}.weui-media-box__info__meta{float:left;padding-right:1em}.weui-media-box__info__meta_extra{padding-left:1em;border-left:1px solid #cecece}.weui-media-box__title_in-text{margin-bottom:8px}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-media-box__thumb{width:100%;height:100%;vertical-align:top}.weui-media-box__hd_in-appmsg{margin-right:.8em;width:60px;height:60px;line-height:60px;text-align:center}.weui-media-box__bd_in-appmsg{-webkit-box-flex:1;-webkit-flex:1;flex:1;min-width:0}.weui-media-box_small-appmsg{padding:0}.weui-cells_in-small-appmsg{margin-top:0}.weui-cells_in-small-appmsg:before{display:none} -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-uploader.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-uploader__hd{display:-webkit-box;display:-webkit-flex;display:flex;padding-bottom:10px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-uploader__title{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-uploader__info{color:#b2b2b2}.weui-uploader__bd{margin-bottom:-4px;margin-right:-9px;overflow:hidden}.weui-uploader__file{float:left;margin-right:9px;margin-bottom:9px}.weui-uploader__img{display:block;width:79px;height:79px}.weui-uploader__file_status{position:relative}.weui-uploader__file_status:before{content:" ";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.weui-uploader__file-content{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff}.weui-uploader__input-box{float:left;position:relative;margin-right:9px;margin-bottom:9px;width:77px;height:77px;border:1px solid #d9d9d9}.weui-uploader__input-box:after,.weui-uploader__input-box:before{content:" ";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#d9d9d9}.weui-uploader__input-box:before{width:2px;height:39.5px}.weui-uploader__input-box:after{width:39.5px;height:2px}.weui-uploader__input-box:active{border-color:#999}.weui-uploader__input-box:active:after,.weui-uploader__input-box:active:before{background-color:#999}.weui-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0} -------------------------------------------------------------------------------- /mhzqx小程序/pages/info/info.wxss: -------------------------------------------------------------------------------- 1 | /* client/pages/info/info.wxss */ 2 | 3 | page { 4 | margin: 0; 5 | padding: 0; 6 | min-height: 100%; 7 | } 8 | 9 | .container { 10 | width: 100%; 11 | display: flex; 12 | flex-direction: column; 13 | align-items: center; 14 | } 15 | 16 | .page-head { 17 | display: flex; 18 | flex-direction: column; 19 | align-items: center; 20 | border-bottom: 1rpx solid rgba(0, 0, 0, 0.3); 21 | margin: 50rpx; 22 | } 23 | 24 | .food-img { 25 | width: 200rpx; 26 | height: 200rpx; 27 | } 28 | 29 | .page-content-box { 30 | width: 90%; 31 | display: flex; 32 | flex-direction: column; 33 | } 34 | 35 | /* 轮播 */ 36 | .swiper-container{ 37 | width: 100%; 38 | height: 100%; 39 | } 40 | swiper { 41 | height: 200rpx; 42 | width: 100%; 43 | } 44 | swiper-item { 45 | width: 100%; 46 | height: 100%; 47 | display: flex; 48 | flex-direction: row; 49 | justify-content: center; 50 | } 51 | .img 52 | { 53 | height:100rpx; 54 | width: 100rpx; 55 | } 56 | .swiper-container .swiper{ 57 | height: 150rpx; 58 | } 59 | 60 | .info-box { 61 | width: 100%; 62 | } 63 | 64 | .appraise-content { 65 | display: flex; 66 | flex-direction: column; 67 | align-items: center; 68 | margin: 50rpx; 69 | width: 80%; 70 | } 71 | 72 | .appraise-item-box { 73 | display: flex; 74 | flex-direction: row; 75 | justify-content: space-between; 76 | align-items: center; 77 | width: 100%; 78 | } 79 | 80 | .weui-progress__bar-box { 81 | width: 40%; 82 | } 83 | 84 | .myfont1 { 85 | font-size: smaller; 86 | opacity: 0.7; 87 | } 88 | 89 | .myfont2 { 90 | font-style: oblique; 91 | color: rgb(199, 25, 25); 92 | } 93 | -------------------------------------------------------------------------------- /mhzqxNODE后台/app.js: -------------------------------------------------------------------------------- 1 | var createError = require('http-errors'); 2 | var express = require('express'); 3 | var path = require('path'); 4 | var cookieParser = require('cookie-parser'); 5 | var logger = require('morgan'); 6 | 7 | var indexRouter = require('./routes/index'); 8 | var usersRouter = require('./routes/users'); 9 | var customerRouter = require('./routes/customer') 10 | var menuRouter = require('./routes/menu') 11 | var orderRouter = require('./routes/order') 12 | var adminRouter = require('./routes/admin') 13 | var foodadminRouter = require('./routes/foodadmin') 14 | 15 | var app = express(); 16 | 17 | // view engine setup 18 | app.set('views', path.join(__dirname, 'views')); 19 | app.set('view engine', 'ejs'); 20 | 21 | app.use(logger('dev')); 22 | app.use(express.json()); 23 | app.use(express.urlencoded({ extended: false })); 24 | app.use(cookieParser()); 25 | app.use(express.static(path.join(__dirname, 'public'))); 26 | app.use(express.static('addGoodsImg')) 27 | 28 | app.use('/', indexRouter); 29 | app.use('/users', usersRouter); 30 | app.use('/customer', customerRouter); 31 | app.use('/menu', menuRouter); 32 | app.use('/order', orderRouter); 33 | app.use('/admin', adminRouter); 34 | app.use('/foodadmin', foodadminRouter); 35 | 36 | // catch 404 and forward to error handler 37 | app.use(function(req, res, next) { 38 | next(createError(404)); 39 | }); 40 | 41 | // error handler 42 | app.use(function(err, req, res, next) { 43 | // set locals, only providing error in development 44 | res.locals.message = err.message; 45 | res.locals.error = req.app.get('env') === 'development' ? err : {}; 46 | 47 | // render the error page 48 | res.status(err.status || 500); 49 | res.render('error'); 50 | }); 51 | 52 | module.exports = app; 53 | -------------------------------------------------------------------------------- /mhzqx小程序/style/widget/weui-cell/weui-form/weui-form-preview.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-form-preview{position:relative;background-color:#fff}.weui-form-preview:before{top:0;border-top:1rpx solid #d9d9d9}.weui-form-preview:after,.weui-form-preview:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-form-preview:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-form-preview__value{font-size:14px}.weui-form-preview__value_in-hd{font-size:26px}.weui-form-preview__hd{position:relative;padding:10px 15px;text-align:right;line-height:2.5em}.weui-form-preview__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-form-preview__bd{padding:10px 15px;font-size:.9em;text-align:right;color:#999;line-height:2}.weui-form-preview__ft{position:relative;line-height:50px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-form-preview__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__item{overflow:hidden}.weui-form-preview__label{float:left;margin-right:1em;min-width:4em;color:#999;text-align:justify;text-align-last:justify}.weui-form-preview__value{display:block;overflow:hidden;word-break:normal;word-wrap:break-word}.weui-form-preview__btn{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3cc51f;text-align:center}.weui-form-preview__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__btn:first-child:after{display:none}.weui-form-preview__btn_active{background-color:#eee}.weui-form-preview__btn_default{color:#999}.weui-form-preview__btn_primary{color:#0bb20c} -------------------------------------------------------------------------------- /mhzqx小程序/pages/usermenu/usermenu.js: -------------------------------------------------------------------------------- 1 | // client/pages/pay/pay.js 2 | var app = getApp() 3 | Page({ 4 | 5 | /** 6 | * 页面的初始数据 7 | */ 8 | data: { 9 | myfoodsList: [], 10 | sumprice: 0, 11 | serveraddr: app.globalData.serveraddr 12 | }, 13 | 14 | /** 15 | * 生命周期函数--监听页面加载 16 | */ 17 | onLoad: function(e) { 18 | this.setData({ 19 | myfoodsList: JSON.parse(e.foodslist), 20 | }) 21 | }, 22 | 23 | /** 24 | * 生命周期函数--监听页面初次渲染完成 25 | */ 26 | onReady: function() { 27 | var sum = 0; 28 | for (var i = 0; i < this.data.myfoodsList.length; i++) { 29 | sum = sum + this.data.myfoodsList[i].gcount * this.data.myfoodsList[i].gprice; 30 | } 31 | console.log(this.data.myfoodsList.length); 32 | this.setData({ 33 | sumprice: sum, 34 | }) 35 | }, 36 | 37 | /** 38 | * 生命周期函数--监听页面显示 39 | */ 40 | onShow: function() { 41 | 42 | }, 43 | 44 | /** 45 | * 生命周期函数--监听页面隐藏 46 | */ 47 | onHide: function() { 48 | 49 | }, 50 | 51 | /** 52 | * 生命周期函数--监听页面卸载 53 | */ 54 | onUnload: function() { 55 | 56 | }, 57 | 58 | /** 59 | * 页面相关事件处理函数--监听用户下拉动作 60 | */ 61 | onPullDownRefresh: function() { 62 | 63 | }, 64 | 65 | /** 66 | * 页面上拉触底事件的处理函数 67 | */ 68 | onReachBottom: function() { 69 | 70 | }, 71 | 72 | /** 73 | * 用户点击右上角分享 74 | */ 75 | onShareAppMessage: function() { 76 | 77 | }, 78 | goinfo: function(e) { 79 | var list = this.data.myfoodsList; 80 | for (var i = 0; i < list.length; i++) { 81 | if (list[i].gid == e.currentTarget.dataset.gid) { 82 | wx.navigateTo({ 83 | url: '../info/info?foodinfo=' + JSON.stringify(list[i]) 84 | }) 85 | } 86 | } 87 | }, 88 | gopay: function() { 89 | wx.redirectTo({ 90 | url: '../pay/pay?sumprice=' + this.data.sumprice + '&foodlist=' + JSON.stringify(this.data.myfoodsList), 91 | }) 92 | } 93 | }) -------------------------------------------------------------------------------- /mhzqx小程序/pages/order/order.wxss: -------------------------------------------------------------------------------- 1 | /* pages/order/order.wxss */ 2 | 3 | .contioner { 4 | margin: 0; 5 | display: flex; 6 | flex-direction: column; 7 | justify-content: space-between; 8 | background-color: #f6f6f6; 9 | } 10 | 11 | .img-box { 12 | width: 100%; 13 | background-color: white; 14 | margin-bottom: 20rpx; 15 | display: flex; 16 | justify-content: center; 17 | } 18 | 19 | .head-img { 20 | height: 200rpx; 21 | width: 200rpx; 22 | margin: 0 auto; 23 | } 24 | 25 | .page-head-box { 26 | padding: 30rpx 40rpx; 27 | background-color: white; 28 | } 29 | 30 | .page-info-down { 31 | display: flex; 32 | flex-direction: row; 33 | justify-content: flex-end; 34 | } 35 | 36 | .order-list-box { 37 | margin: 50rpx 0; 38 | background-color: white; 39 | padding: 0 50rpx; 40 | } 41 | 42 | .order-head-box { 43 | display: flex; 44 | justify-content: space-between; 45 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); 46 | padding: 40rpx 0; 47 | } 48 | 49 | .order-body-box { 50 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); 51 | } 52 | 53 | .body-item-box { 54 | display: flex; 55 | justify-content: space-between; 56 | margin: 50rpx 0; 57 | } 58 | 59 | .body-r { 60 | width: 70%; 61 | } 62 | .item-food-box 63 | { 64 | display: flex; 65 | } 66 | .order-bottom-box { 67 | padding: 40rpx 0; 68 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); 69 | } 70 | 71 | .bottom-text { 72 | text-align: center; 73 | } 74 | 75 | /* 字体 */ 76 | 77 | .myfont1 { 78 | /* font-size: smaller; */ 79 | opacity: 0.7; 80 | } 81 | 82 | .myfont3 { 83 | font-size: smaller; 84 | opacity: 0.7; 85 | } 86 | 87 | .myfont4 { 88 | font-size: 0.7rem; 89 | opacity: 0.7; 90 | } 91 | 92 | .myfont5 { 93 | font-size: 0.8rem; 94 | color: #71d381; 95 | } 96 | 97 | .myfont2 { 98 | font-style: oblique; 99 | color: rgb(199, 25, 25); 100 | } 101 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/severinfo/severinfo.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{foodinfo.GNAME}} 6 | {{foodinfo.GPRICE}} 7 | ¥/份儿 8 | 9 | 10 | 11 | 12 | 详细信息: 13 | 14 | 菜品描述 15 | {{foodinfo.GINFO}} 16 | 17 | 18 | 19 | 20 | 用户评价 21 | 233条评论 22 | 23 | 24 | 25 | 本月热度 26 | 27 | 28 | 29 | 30 | 31 | 90 32 | 33 | 34 | 好评率 35 | 36 | 37 | 38 | 39 | 40 | 70% 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /mhzqxNODE后台/bin/www: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * Module dependencies. 5 | */ 6 | 7 | var app = require('../app'); 8 | var debug = require('debug')('mhzqx:server'); 9 | var http = require('http'); 10 | 11 | /** 12 | * Get port from environment and store in Express. 13 | */ 14 | 15 | var port = normalizePort(process.env.PORT || '3000'); 16 | app.set('port', port); 17 | 18 | /** 19 | * Create HTTP server. 20 | */ 21 | 22 | var server = http.createServer(app); 23 | 24 | /** 25 | * Listen on provided port, on all network interfaces. 26 | */ 27 | 28 | server.listen(port); 29 | server.on('error', onError); 30 | server.on('listening', onListening); 31 | 32 | /** 33 | * Normalize a port into a number, string, or false. 34 | */ 35 | 36 | function normalizePort(val) { 37 | var port = parseInt(val, 10); 38 | 39 | if (isNaN(port)) { 40 | // named pipe 41 | return val; 42 | } 43 | 44 | if (port >= 0) { 45 | // port number 46 | return port; 47 | } 48 | 49 | return false; 50 | } 51 | 52 | /** 53 | * Event listener for HTTP server "error" event. 54 | */ 55 | 56 | function onError(error) { 57 | if (error.syscall !== 'listen') { 58 | throw error; 59 | } 60 | 61 | var bind = typeof port === 'string' 62 | ? 'Pipe ' + port 63 | : 'Port ' + port; 64 | 65 | // handle specific listen errors with friendly messages 66 | switch (error.code) { 67 | case 'EACCES': 68 | console.error(bind + ' requires elevated privileges'); 69 | process.exit(1); 70 | break; 71 | case 'EADDRINUSE': 72 | console.error(bind + ' is already in use'); 73 | process.exit(1); 74 | break; 75 | default: 76 | throw error; 77 | } 78 | } 79 | 80 | /** 81 | * Event listener for HTTP server "listening" event. 82 | */ 83 | 84 | function onListening() { 85 | var addr = server.address(); 86 | var bind = typeof addr === 'string' 87 | ? 'pipe ' + addr 88 | : 'port ' + addr.port; 89 | debug('Listening on ' + bind); 90 | } 91 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/login/login.js: -------------------------------------------------------------------------------- 1 | // client/pages/login.js 2 | const app = getApp() 3 | 4 | Page({ 5 | data: { 6 | userInfo: {}, 7 | hasUserInfo: false, 8 | canIUse: wx.canIUse('button.open-type.getUserInfo'), 9 | isAdmin: false 10 | }, 11 | 12 | onLoad: function () { 13 | getApp().watch((value) => { 14 | this.setData({ 15 | isAdmin: value 16 | }) 17 | }) 18 | var that = this 19 | app.getOpenId().then(function (res) { 20 | if (app.globalData.userInfo) { 21 | that.setData({ 22 | userInfo: res.userInfo, 23 | hasUserInfo: true 24 | }) 25 | } else if (this.data.canIUse) { 26 | // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回 27 | // 所以此处加入 callback 以防止这种情况 28 | app.userInfoReadyCallback = res => { 29 | that.setData({ 30 | userInfo: res.userInfo, 31 | hasUserInfo: true 32 | }) 33 | } 34 | } else { 35 | // 在没有 open-type=getUserInfo 版本的兼容处理 36 | wx.getUserInfo({ 37 | success: res => { 38 | app.globalData.userInfo = res.userInfo 39 | that.setData({ 40 | userInfo: res.userInfo, 41 | hasUserInfo: true 42 | }) 43 | } 44 | }) 45 | } 46 | }) 47 | }, 48 | joinPage: function (e) { 49 | if (app.globalData.isLogin) { 50 | //成功,后续逻辑:判断用户是否有正在处理的订单,如果有,那么跳转到订单页面;如果没有跳转到菜单页面。 51 | if (app.globalData.isHaveOrder) { 52 | wx.navigateTo({ 53 | url: '../order/order' 54 | }) 55 | } else { 56 | wx.navigateTo({ 57 | url: '../menu/menu' 58 | }) 59 | } 60 | } 61 | // } else { 62 | // //失败 63 | // wx.showToast({ 64 | // title: '登录信息获取失败!', 65 | // icon: "none", 66 | // duration: 1000, 67 | // mask: true 68 | // }) 69 | // } 70 | }, 71 | openadmin: function () { 72 | wx.navigateTo({ 73 | url: '../severmenu/severmenu' 74 | }) 75 | }, 76 | }) -------------------------------------------------------------------------------- /mhzqxNODE后台/routes/menu.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | var mysql = require('mysql') 4 | var dbConfig = require('../db/dbConfig') 5 | var uuid = require('node-uuid') 6 | var menuSql = require('../db/menuSql') 7 | 8 | var pool = mysql.createPool(dbConfig.mysql) 9 | var responseJSON = function (res, ret) { 10 | if (typeof ret === 'undefined') { 11 | res.json({ 12 | code: '-200', 13 | msg: '操作失败' 14 | }) 15 | } else { 16 | res.json(ret) 17 | } 18 | } 19 | 20 | router.get('/', function (req, res) { 21 | pool.getConnection(function (err, connection) { 22 | var gtList = [] 23 | var _res = res 24 | var data = {} 25 | connection.query(menuSql.queryGoodsTypeAll, function(err, resp) { 26 | if (resp) { 27 | resp.forEach(element => { 28 | var menuNav = { 29 | gt: {}, 30 | goodslist: [] 31 | } 32 | menuNav.gt.gtid = element.GTID 33 | menuNav.gt.gtname = element.GTNAME 34 | menuNav.gt.gtstate = element.GTSTATE 35 | 36 | gtList.push(menuNav) 37 | }) 38 | connection.query(menuSql.queryGoodsAll, function (err, respon) { 39 | if (respon) { 40 | respon.forEach(element => { 41 | for (let i = 0; i < gtList.length; i++) { 42 | if (gtList[i].gt.gtid == element.GTID) { 43 | var goods = {} 44 | goods.gid = element.GID 45 | goods.gtid = element.GTID 46 | goods.gname = element.GNAME 47 | goods.gprice = element.GPRICE 48 | goods.gstate = element.GSTATE 49 | goods.gcontent = element.GCONTENT 50 | goods.gimg = element.GIMG 51 | goods.gtime = element.GTIME 52 | goods.gcount = element.GCOUNT 53 | 54 | gtList[i].goodslist.push(goods) 55 | } 56 | } 57 | }) 58 | data.gtlist = gtList 59 | responseJSON(_res, data) 60 | connection.release() 61 | } 62 | }) 63 | } 64 | }) 65 | }) 66 | }) 67 | 68 | module.exports = router; -------------------------------------------------------------------------------- /mhzqx小程序/pages/order/order.js: -------------------------------------------------------------------------------- 1 | // pages/order/order.js 2 | var app = getApp() 3 | Page({ 4 | 5 | /** 6 | * 页面的初始数据 7 | */ 8 | data: { 9 | foodlist: [], 10 | overlist: [] 11 | }, 12 | 13 | /** 14 | * 生命周期函数--监听页面加载 15 | */ 16 | onLoad: function() { 17 | wx.request({ 18 | url: app.globalData.serveraddr + '/order/getOrders', 19 | data: { 20 | cusid: app.globalData.cusid 21 | }, 22 | success: res => { 23 | this.setData({ 24 | overlist: res.data.overOrder.reverse() 25 | }) 26 | console.log(this.data.overlist) 27 | var foodlist = [] 28 | var orderlist = [] 29 | for (let i = 0; i < res.data.order.length; i++) { 30 | var order = { 31 | orderid: '', 32 | orderPrice: 0, 33 | foods: [] 34 | } 35 | order.orderid = res.data.order[i].ORDERID 36 | order.orderPrice = res.data.order[i].ORDERTOTLEPRICE 37 | order.orderTime = res.data.order[i].ORDERTIME 38 | order.orderNum = res.data.order[i].ORDERNUM 39 | order.orderState = res.data.order[i].ORDERSTATE 40 | order.orderSort = res.data.order[i].orderSort 41 | for (let k = 0; k < res.data.orderDetailAll.length; k++) { 42 | for (let j = 0; j < res.data.orderDetailAll[k].length; j++) { 43 | if (order.orderid == res.data.orderDetailAll[k][j].ORDERID) { 44 | order.foods.push(res.data.orderDetailAll[k][j].GNAME + '*' + res.data.orderDetailAll[k][j].GCOUNT) 45 | } 46 | } 47 | } 48 | foodlist.push(order) 49 | } 50 | for (let i = 0; i < foodlist.length; i++) { 51 | if (foodlist[i].orderState == 1) { 52 | orderlist.push(foodlist[i]) 53 | } 54 | } 55 | this.setData({ 56 | foodlist: orderlist.reverse() 57 | }) 58 | } 59 | }) 60 | }, 61 | 62 | /** 63 | * 生命周期函数--监听页面初次渲染完成 64 | */ 65 | onReady: function() { 66 | 67 | }, 68 | 69 | /** 70 | * 生命周期函数--监听页面显示 71 | */ 72 | onShow: function() { 73 | 74 | }, 75 | 76 | /** 77 | * 生命周期函数--监听页面隐藏 78 | */ 79 | onHide: function() { 80 | 81 | }, 82 | 83 | /** 84 | * 生命周期函数--监听页面卸载 85 | */ 86 | onUnload: function() { 87 | 88 | }, 89 | agin: function() { 90 | wx.redirectTo({ 91 | url: '../menu/menu', 92 | }) 93 | } 94 | }) -------------------------------------------------------------------------------- /mhzqx小程序/pages/usermenu/usermenu.wxss: -------------------------------------------------------------------------------- 1 | /* client/pages/pay/pay.wxss */ 2 | 3 | page { 4 | margin: 0; 5 | padding: 0; 6 | min-height: 100%; 7 | } 8 | 9 | .contioner { 10 | margin: 0 50rpx; 11 | } 12 | 13 | .page-head-box { 14 | display: flex; 15 | flex-direction: row; 16 | justify-content: center; 17 | align-items: center; 18 | background-color: #f6f6f6; 19 | } 20 | 21 | .head-img { 22 | width: 100rpx; 23 | height: 100rpx; 24 | } 25 | 26 | .wel-title { 27 | font-weight: 700; 28 | font-size: 30rpx; 29 | } 30 | 31 | .page-info-down { 32 | display: flex; 33 | flex-direction: row; 34 | justify-content: flex-start; 35 | margin: 30rpx 0; 36 | padding: 10rpx; 37 | } 38 | 39 | /* item */ 40 | .menu-box 41 | { 42 | margin-bottom:100rpx; 43 | } 44 | .list-box { 45 | box-sizing: border-box; 46 | width: 100%; 47 | padding: 20rpx; 48 | border-bottom: 1px solid rgba(177, 175, 175, 0.3); 49 | } 50 | 51 | .list-item-box { 52 | display: flex; 53 | flex-direction: row; 54 | justify-content: space-between; 55 | align-items: center; 56 | } 57 | 58 | .item-img { 59 | width: 100rpx; 60 | height: 100rpx; 61 | margin: 30rpx; 62 | } 63 | 64 | .item-info-box { 65 | display: flex; 66 | flex-direction: column; 67 | align-items: flex-start; 68 | width: 40%; 69 | } 70 | 71 | .item-name { 72 | font-weight: 700; 73 | } 74 | 75 | .item-type { 76 | opacity: 0.5; 77 | font-size: 25rpx; 78 | color: black; 79 | font-style: normal; 80 | } 81 | 82 | .item-price { 83 | font-style: oblique; 84 | color: rgb(199, 25, 25); 85 | } 86 | 87 | .gtime-tex { 88 | opacity: 0.8; 89 | } 90 | 91 | /* 底部 */ 92 | 93 | .page-bottom { 94 | display: flex; 95 | flex-direction: column; 96 | margin: 0; 97 | position: fixed; 98 | bottom: 20rpx; 99 | width: 90%; 100 | background-color: white; 101 | } 102 | 103 | .container-bottom-box { 104 | display: flex; 105 | flex-direction: row; 106 | text-align: center; 107 | box-shadow: 5rpx 5rpx rgb(141, 140, 140); 108 | border-radius: 50rpx; 109 | overflow: hidden; 110 | z-index: 2; 111 | } 112 | .container-bottom-l { 113 | width: 60%; 114 | padding: 20rpx 0; 115 | } 116 | .container-bottom-r { 117 | width: 40%; 118 | padding: 20rpx; 119 | font-weight: 700; 120 | opacity: 0.8; 121 | } 122 | 123 | /* 字体 */ 124 | 125 | .myfont1 { 126 | /* font-size: smaller; */ 127 | opacity: 0.7; 128 | } 129 | 130 | .myfont2 { 131 | font-style: oblique; 132 | color: rgb(199, 25, 25); 133 | } 134 | -------------------------------------------------------------------------------- /mhzqx小程序/pages/severalertfood/severalertfood.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 11 | 12 | 菜品名称 : 13 | 14 | 15 | 16 | 17 | 选择菜品类别: 18 | 19 | 27 | 28 | 添加更多菜品种类: 29 | 30 | 31 | 32 | 33 | 34 | 新类别名称 : 35 | 36 | 37 | 38 | 39 |
40 | 41 | 42 | 菜品价格 : 43 | 44 | 45 | 46 | 供应时间 : 47 | 48 | 49 | 50 | 添加描详细述 : 51 |