From 353225e8ea06aff7b526fbde3d5f01f24ceea8c5 Mon Sep 17 00:00:00 2001 From: wbb <1975655432@qq.com> Date: Wed, 9 Nov 2022 20:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scr/food/.eslintrc.js | 31 +++++ scr/food/README.md | 12 ++ scr/food/app.js | 20 +++ scr/food/app.json | 52 +++++++ scr/food/app.wxss | 30 ++++ scr/food/custom-tab-bar/index.js | 45 ++++++ scr/food/custom-tab-bar/index.json | 3 + scr/food/custom-tab-bar/index.wxml | 8 ++ scr/food/custom-tab-bar/index.wxss | 38 +++++ scr/food/envList.js | 6 + scr/food/images/home-active.png | Bin 0 -> 1502 bytes scr/food/images/home.png | Bin 0 -> 1707 bytes scr/food/images/logo.jpg | Bin 0 -> 8078 bytes scr/food/images/message-active.png | Bin 0 -> 1785 bytes scr/food/images/message.png | Bin 0 -> 2035 bytes scr/food/images/perfer.jpg | Bin 0 -> 7662 bytes scr/food/images/search.png | Bin 0 -> 1888 bytes scr/food/images/zhuanpang.jpg | Bin 0 -> 7410 bytes scr/food/pages/cart/cart.js | 66 +++++++++ scr/food/pages/cart/cart.json | 3 + scr/food/pages/cart/cart.wxml | 2 + scr/food/pages/cart/cart.wxss | 1 + scr/food/pages/detail/detail.js | 106 ++++++++++++++ scr/food/pages/detail/detail.json | 3 + scr/food/pages/detail/detail.wxml | 3 + scr/food/pages/detail/detail.wxss | 1 + scr/food/pages/fourm/fourm.js | 66 +++++++++ scr/food/pages/fourm/fourm.json | 3 + scr/food/pages/fourm/fourm.wxml | 2 + scr/food/pages/fourm/fourm.wxss | 1 + scr/food/pages/index/index.js | 120 ++++++++++++++++ scr/food/pages/index/index.json | 5 + scr/food/pages/index/index.wxml | 38 +++++ scr/food/pages/index/index.wxss | 162 ++++++++++++++++++++++ scr/food/pages/usercenter/usercenter.js | 66 +++++++++ scr/food/pages/usercenter/usercenter.json | 3 + scr/food/pages/usercenter/usercenter.wxml | 2 + scr/food/pages/usercenter/usercenter.wxss | 1 + scr/food/project.config.json | 79 +++++++++++ scr/food/project.private.config.json | 60 ++++++++ scr/food/sitemap.json | 7 + scr/food/uploadCloudFunction.bat | 1 + 42 files changed, 1046 insertions(+) create mode 100644 scr/food/.eslintrc.js create mode 100644 scr/food/README.md create mode 100644 scr/food/app.js create mode 100644 scr/food/app.json create mode 100644 scr/food/app.wxss create mode 100644 scr/food/custom-tab-bar/index.js create mode 100644 scr/food/custom-tab-bar/index.json create mode 100644 scr/food/custom-tab-bar/index.wxml create mode 100644 scr/food/custom-tab-bar/index.wxss create mode 100644 scr/food/envList.js create mode 100644 scr/food/images/home-active.png create mode 100644 scr/food/images/home.png create mode 100644 scr/food/images/logo.jpg create mode 100644 scr/food/images/message-active.png create mode 100644 scr/food/images/message.png create mode 100644 scr/food/images/perfer.jpg create mode 100644 scr/food/images/search.png create mode 100644 scr/food/images/zhuanpang.jpg create mode 100644 scr/food/pages/cart/cart.js create mode 100644 scr/food/pages/cart/cart.json create mode 100644 scr/food/pages/cart/cart.wxml create mode 100644 scr/food/pages/cart/cart.wxss create mode 100644 scr/food/pages/detail/detail.js create mode 100644 scr/food/pages/detail/detail.json create mode 100644 scr/food/pages/detail/detail.wxml create mode 100644 scr/food/pages/detail/detail.wxss create mode 100644 scr/food/pages/fourm/fourm.js create mode 100644 scr/food/pages/fourm/fourm.json create mode 100644 scr/food/pages/fourm/fourm.wxml create mode 100644 scr/food/pages/fourm/fourm.wxss create mode 100644 scr/food/pages/index/index.js create mode 100644 scr/food/pages/index/index.json create mode 100644 scr/food/pages/index/index.wxml create mode 100644 scr/food/pages/index/index.wxss create mode 100644 scr/food/pages/usercenter/usercenter.js create mode 100644 scr/food/pages/usercenter/usercenter.json create mode 100644 scr/food/pages/usercenter/usercenter.wxml create mode 100644 scr/food/pages/usercenter/usercenter.wxss create mode 100644 scr/food/project.config.json create mode 100644 scr/food/project.private.config.json create mode 100644 scr/food/sitemap.json create mode 100644 scr/food/uploadCloudFunction.bat diff --git a/scr/food/.eslintrc.js b/scr/food/.eslintrc.js new file mode 100644 index 0000000..115cc02 --- /dev/null +++ b/scr/food/.eslintrc.js @@ -0,0 +1,31 @@ +/* + * Eslint config file + * Documentation: https://eslint.org/docs/user-guide/configuring/ + * Install the Eslint extension before using this feature. + */ +module.exports = { + env: { + es6: true, + browser: true, + node: true, + }, + ecmaFeatures: { + modules: true, + }, + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + }, + globals: { + wx: true, + App: true, + Page: true, + getCurrentPages: true, + getApp: true, + Component: true, + requirePlugin: true, + requireMiniProgram: true, + }, + // extends: 'eslint:recommended', + rules: {}, +} diff --git a/scr/food/README.md b/scr/food/README.md new file mode 100644 index 0000000..e097b0c --- /dev/null +++ b/scr/food/README.md @@ -0,0 +1,12 @@ +# 云开发 quickstart + +这是云开发的快速启动指引,其中演示了如何上手使用云开发的三大基础能力: + +- 数据库:一个既可在小程序前端操作,也能在云函数中读写的 JSON 文档型数据库 +- 文件存储:在小程序前端直接上传/下载云端文件,在云开发控制台可视化管理 +- 云函数:在云端运行的代码,微信私有协议天然鉴权,开发者只需编写业务逻辑代码 + +## 参考文档 + +- [云开发文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html) + diff --git a/scr/food/app.js b/scr/food/app.js new file mode 100644 index 0000000..8668b59 --- /dev/null +++ b/scr/food/app.js @@ -0,0 +1,20 @@ +// app.js + +App({ + onLaunch: function () { + if (!wx.cloud) { + console.error('请使用 2.2.3 或以上的基础库以使用云能力'); + } else { + wx.cloud.init({ + // env 参数说明: + // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源 + // 此处请填入环境 ID, 环境 ID 可打开云控制台查看 + // 如不填则使用默认环境(第一个创建的环境) + // env: 'my-env-id', + traceUser: true, + }); + } + + this.globalData = {}; + } +}); diff --git a/scr/food/app.json b/scr/food/app.json new file mode 100644 index 0000000..4735720 --- /dev/null +++ b/scr/food/app.json @@ -0,0 +1,52 @@ +{ + "pages": [ + "pages/index/index", + "pages/fourm/fourm", + "pages/cart/cart", + "pages/usercenter/usercenter", + "pages/detail/detail" + + ], + "tabBar": { + "custom": true, + + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "/images/home.png", + "selectedIconPath": "/images/home-active.png" + }, + { + "pagePath": "pages/fourm/fourm", + "text": "论坛", + "iconPath": "/images/message.png", + "selectedIconPath": "/images/message-active.png" + }, + { + "pagePath": "pages/cart/cart", + "text": "购物车", + "iconPath": "/images/message.png", + "selectedIconPath": "/images/message-active.png" + }, + { + "pagePath": "pages/usercenter/usercenter", + "text": "我的", + "iconPath": "/images/message.png", + "selectedIconPath": "/images/message-active.png" + } + ] + + }, + "window": { + "backgroundColor": "#F6F6F6", + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#F6F6F6", + "navigationBarTitleText": "节时不节食", + "navigationBarTextStyle": "black" + }, + "sitemapLocation": "sitemap.json", + "style": "v2" +} \ No newline at end of file diff --git a/scr/food/app.wxss b/scr/food/app.wxss new file mode 100644 index 0000000..755acec --- /dev/null +++ b/scr/food/app.wxss @@ -0,0 +1,30 @@ +/**app.wxss**/ +.container { + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; + padding: 200rpx 0; + box-sizing: border-box; +} + +button { + background: initial; +} + +button:focus{ + outline: 0; +} + +button::after{ + border: none; +} + + +page { + background: #f6f6f6; + display: flex; + flex-direction: column; + justify-content: flex-start; +} \ No newline at end of file diff --git a/scr/food/custom-tab-bar/index.js b/scr/food/custom-tab-bar/index.js new file mode 100644 index 0000000..19ca8b1 --- /dev/null +++ b/scr/food/custom-tab-bar/index.js @@ -0,0 +1,45 @@ +Component({ + data: { + selected: 0, + color: "#7A7E83", + selectedColor: "#3cc51f", + "list": [ + { + "pagePath": "/pages/index/index", + "text": "首页", + "iconPath": "/images/home.png", + "selectedIconPath": "/images/home-active.png" + }, + { + "pagePath": "/pages/fourm/fourm", + "text": "论坛", + "iconPath": "/images/message.png", + "selectedIconPath": "/images/message-active.png" + }, + {"pagePath": "/pages/cart/cart", + "text": "购物车", + "iconPath": "/images/message.png", + "selectedIconPath": "/images/message-active.png" + }, + { + "pagePath": "/pages/usercenter/usercenter", + "text": "我的", + "iconPath": "/images/message.png", + "selectedIconPath": "/images/message-active.png" + } + + ] + }, + attached() { + }, + methods: { + switchTab(e) { + const data = e.currentTarget.dataset + const url = data.path + wx.switchTab({url}) + this.setData({ + selected: data.index + }) + } + } +}) \ No newline at end of file diff --git a/scr/food/custom-tab-bar/index.json b/scr/food/custom-tab-bar/index.json new file mode 100644 index 0000000..32640e0 --- /dev/null +++ b/scr/food/custom-tab-bar/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/scr/food/custom-tab-bar/index.wxml b/scr/food/custom-tab-bar/index.wxml new file mode 100644 index 0000000..29d1b9e --- /dev/null +++ b/scr/food/custom-tab-bar/index.wxml @@ -0,0 +1,8 @@ + + + + + + {{item.text}} + + diff --git a/scr/food/custom-tab-bar/index.wxss b/scr/food/custom-tab-bar/index.wxss new file mode 100644 index 0000000..0cd91e7 --- /dev/null +++ b/scr/food/custom-tab-bar/index.wxss @@ -0,0 +1,38 @@ +.tab-bar { + position: fixed; + bottom: 0; + left: 0; + right: 0; + height: 48px; + background: white; + display: flex; + padding-bottom: env(safe-area-inset-bottom); +} + +.tab-bar-border { + background-color: rgba(0, 0, 0, 0.33); + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 1px; + transform: scaleY(0.5); +} + +.tab-bar-item { + flex: 1; + text-align: center; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +.tab-bar-item cover-image { + width: 27px; + height: 27px; +} + +.tab-bar-item cover-view { + font-size: 10px; +} diff --git a/scr/food/envList.js b/scr/food/envList.js new file mode 100644 index 0000000..ac946fa --- /dev/null +++ b/scr/food/envList.js @@ -0,0 +1,6 @@ +const envList = [{"envId":"cloud1-8g5wmepxce8a3b8a","alias":"cloud1"}] +const isMac = false +module.exports = { + envList, + isMac +} \ No newline at end of file diff --git a/scr/food/images/home-active.png b/scr/food/images/home-active.png new file mode 100644 index 0000000000000000000000000000000000000000..a7b1e9a6eed9db9eb192b6ad7c3eca569950056d GIT binary patch literal 1502 zcmeAS@N?(olHy`uVBq!ia0vp^RzPgR!3HF6Z`6(eQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?>+ELn2Bde0{8v^K*7iAWdWaj57fJ{tG z$}cUkRRX#c;)UD-UthSvdBxCx0tT6WMPh-zp`L+$ZZ61QVAaJXL8%C5U{zflQdy9y zACy|0Us{w5jE^*Bm}X$u;kO8+5a=2!|DsG_q$K9J=_k zQ_~DA%u;mC%#F--O$?Gub(1WC0cdP)VQFTNY-*mGmI5;en|@<6OG|SnOGgU}M-xLs zS93=*3v*{zLkmksV@FF1Crg-K&%EN2#JuEGnBAE`yP1T{es1@X5_YEfocYKmJ?ey##Iq^&ZsxPrJ4 zfap&lHw5*8j?xDu7o_9^69T455EGsmfE;*sO3ef2p(0>rxiT|q4Fdz?A5Ry@kcwMx zW?6bOJ4&>fOPMAJHcL5PaT8g)_khx^j6~Ils-(A_8JTYx=WVTMn%c@0Rgqv5@R33L zpnbw}M;GpiKlu6tRIQ5U!zpdHasV&2oeR6_`uBX!?6|Y5E$NyeG z_k3EzH{n4!y!&c0l0-lXiky*iQ@JEj%#|$Kr4QJ}7s>m*t|G zUgWCH`{iPqxzxM)nsp!a7RCr#u*&)ge{BdgI2iBXc0Q7AbJ&%&qKke$;Mnr_^B=nn z`n&R6yTh8b1B9QKzB<6WA|!B&D9cY_(TPq4Oje4%^QKIkziaIz&07q5jys>k?PS>S)N?w|MaB)MtHZ4iy($wt zGkayU@gm6tMxWUkOly4j=jZ=ba{YWj@kLn9OvwkO(Yjt!zAoI_wQgnP-Mr&pHC2^f z*Q^wk43j@QX{l3!&Z%$gfr}Pf6=!&CdcmFVH|777r06?B@4xcNm4;c%tW4Zhza3Iy35PfxW}6o?%%v2r>R70SK%?&|L;@+g;WEDrq0l3WMlX* W;NvW96$L7{89ZJ6T-G@yGywp2#T+mI literal 0 HcmV?d00001 diff --git a/scr/food/images/home.png b/scr/food/images/home.png new file mode 100644 index 0000000000000000000000000000000000000000..d172a01d930ef56b53bb937099deaf5dfe1dd5cc GIT binary patch literal 1707 zcmeAS@N?(olHy`uVBq!ia0vp^RzPgR!3HF6Z`6(eQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?>+ELn2Bde0{8v^K*7iAWdWaj57fJ{tG z$}cUkRRX#c;)UD-UthSvdBxCx0tT6WMPh-zp`L+$ZZ61QVAaJXL8%C5U{zflQdy9y zACy|0Us{w5jE^*Bm}X$u;kO8+5a=2!|DsG_q$K9J=_k zQ_~DA%u;mC%#F--O$?Gub(1WC0cdP)VQFTNY-*mGmI5;en|=c)7dIy-7gGxhM-xLs zS93=*3v*{zLkmksV@FF1Crg-K&%EN2#JuEGnBAE`yP1T{es1@X5_YEfocYKmJ?ey##Iq^&ZsxPrJ4 zfap&lHw5*8j?xDu7o_9^69T455EGsmfE;*sO3ef2p(0>rxg1fmhJk_Uq^FBxNX4x; zw_-bd3MGzzoVoEhpgXee8H8!^1|M}CO`IfsMR@lgC zwRN?0Ey)RxzQV>^Hg!q0lZn*X*#;XU&d6Q#;H$fzSaa-_6R(xP^$pxlcQiQH)w1nx z>T{CLDioah;z(Z1@dZvCR3@&cABx|EKbL!u98XH&!a&dV6_Kj@qi`ET2@X$*=Zu?2`L#z+zp%{Mg`3 z`-HTtsHI=8uDP0S8ZhTdkVxU>fICxW=ABddb4NvS?NrfOv3pl##T4Dx=6k=xYLnoX zskf>l=N~^?Y89G1f4ZZ$a9Kh1{M`F7Ju}udmn}3r`S>ZHnGzA$kA( zZ7QU%Z&nQvHgv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zK$v^6K{B@EX%Z`VA3jV3k{eDWiV>4gm6L9pvw~VuHp=s1KkDp+Ea_d}Dc;b-kgXbr~!1tKYQKo{*A1&_py5e&&v7t(RE7OdPLoyC6DxRf? z5Qv%kdmg>=gcZP*GWXfjpo&UG2A1?^g*u(-(|z-YM#B<`r!wd zc=rulA_}3j^XVi@S17Y~#a+tSy{0%+RDxF3?Vg5Y!vx4b z3}%WAA)TDnScHxz@F0PplD^-iZr*FAb=A*>!UBYuM<$2R(%o$jSIvWW2P!A@q9xZG z48a`VUD*x6z<)RVmm+I?`|yU>o}Wg&RA>uI-2qWx_SyqvLrInV7Xh-5JeExG9(mKQ z$-^FxXp`RfPUi7eXe~Zk8CbCt;Hqk_=)bMv!djnD60gJO)9#A%Kkwl`PAWDC|CfI3 Ozw&Ya%f^_AWB&$*l%p*G literal 0 HcmV?d00001 diff --git a/scr/food/images/message-active.png b/scr/food/images/message-active.png new file mode 100644 index 0000000000000000000000000000000000000000..71693bc25a5239e3ec1f8d68ad0612a7009a760b GIT binary patch literal 1785 zcmbVNc~BE)6b}dp0#g-HP|=-$5{o$@$1X&h6JiNs3>v6aa%@Zr$;M(QGo&?7L}q@EkeA23LX>+inP|EGgZ3bu>HevI^CJw@B7~Oe((6b_hz%A zqryFB%%6e7;XFkVdGJ+jU45odHARaA7Mg2Dvf;Mgax9S*vH`pPoIB2ec|S zemz}G5gT~0MjMf8gx97GJgxdI5YK$rm?jLHFvE>UlSENuL^T?pIT#bi7% zu7W18@e@JG#L)l`F~R_y#2_lE!7P9YlBjf$MGILD&?r;}nF5ljAw&ulqJR*E3QRtD z%$rfAh9rF9q%Z8m#%oa20FlXNvzcTLCLzYnWGV=PWD1Q;qY*I;qA5j>$}L2_$$!cM zA2unCS_7&@^nl%>T!AE^Y&;g}L<%~CSp3GY-ZV)RMj6>6H;}0$3R$PK=QXZvLM8A& zVZ2q_Buz2EWC?6Sl8j2M9%}z7Fvi`x9oZGJXrR?bEmjnHA|FvE>0mu7;&azO!$#R;KO1xyZu z#pDU7ERYk-0a;vd3MuMBccPwnTE7)iQ>O8Fo9S7Uk1roP-J_%{HuMY zL|9MSw{M04JG>buSdYz+5gV4As(v9hgY!guj?~imxKO0=ruww>$9y#E?VTN(-9E^f zMSO7AQ@~+Y&C78VfS5gZ!m&bcM=it{#ZIYpN zJv_aZJX(Q59by*$SZvFCSBO^ zgZnG)BU8%J!iqA2W5)+nAIBL@$jGd!ZHu#RYcBaXtjo9=zl`9JnF@~iS)BCS6M8eB zlsw~jR^a@38<_jCysuhS%yCv?~;uMP;-WIzhtDV07`(sW!fBd!Avp4hZua$Q!AaSB@}RWlnJ^^iUv+SFdQpD^)1OdYee;{ci%{q8Oi3fuwn$NXgYl_v zP|7{MVSnDC%+i#;fXYL8Ux8$=u>6d0OmuMclKHR5=+`!L(OheJ zZ2kk!0o(J$(}ms6j2ku{n)>|7d<_AKXmSyyY%hD~I( zm#n2fYxtaN!}Ro*pFIkvGGCs|Fs^B^#g-O3h^ZQNN0<9@>)yTlu8!mihghAe`)yp4 zZFRjsduN~~vZ{%%{$qc6c+I7tHq9r08hy5&;iHQK2||9?#ejB~haQ0oh3kDZzI~SM z`QN4F(i^Sq9Xp0*?`?2r?9iS*RucPK7^ko{JnpLj8^h~l@W%&E7JFp^Sx<0%z2&VJ zg}Y}r6^ezWz|pM!7v{kjqzqqw$J~9*&lV6}%*=6HV0B;o@D{hrFE06(G`VB{i(iUk zdXIcN6sWe;HHUNtyx&*oyR?G7ioelPr{l#Hr5&$>2|4YNkDOSJX>P4uTie;x`MLM6 z=Q7emxmT0CyiV+C8%m~}+SSVJeDJ(9qHfF?Es3&aL2Izi^lwRbaKXjA%47GKn#1is NBatAAf07%&{ckwju@3+M literal 0 HcmV?d00001 diff --git a/scr/food/images/message.png b/scr/food/images/message.png new file mode 100644 index 0000000000000000000000000000000000000000..4eb424969ed34dff4763919f83d4ff0a6e992147 GIT binary patch literal 2035 zcmeAS@N?(olHy`uVBq!ia0vp^RzPgR!3HF6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btM*U>sq)b7p+bb@bAKD_L|G)Qy{q3E9{rk5CM6b}j0?d_H@7Hk~FzDaC Vb?nEJumzxM*wfX|Wt~$(698}CHEjR@ literal 0 HcmV?d00001 diff --git a/scr/food/images/perfer.jpg b/scr/food/images/perfer.jpg new file mode 100644 index 0000000000000000000000000000000000000000..235ed66280857daffc71754d3c51f2e6914dbe90 GIT binary patch literal 7662 zcmbVRdmz+#*T<^Jwl#9k-A>Hxk_r{ZEtfH2#?RE-DpVd@(WK-Oxvz*Yrbe}{Q^sXf z)D|8iY-($pRx$=f$ZnI247rA8=KcO=klM@hKJOo5W}5Rm-*Z0abI$pEQwbg}t5#~P zl#-HK<%)HLq@<)#;BP;<<>24j*&BJ_m-Gq9#X+j#iRK`9A$!o?-Cj!SCRyRb{$=2` z{4wlzC#0klL*XCk-tTozN=a$`;Ob~kJn1{!(_Q&}gwMm{BI(urEUOXLrmw|9Mm9Br+bYEc^>5TMh`x~kIl#mD~nvtm{dVqZ)Jc_oWi_P{}-FDgdDSIu( z>&C>5y@jDMO@_98LDxr4JZl;M@)~~ZNpH*kDeKL{u>sesrhkj}t2we^t~1W6BY!5j zCah9a7ZDmaci~putzO|}eqrC_Bfi!{6COWi^k)Bek1rVS$?9r*f)R}^V+1^2310jm z#|ZLxvC*1&rnBotbok#@ANlU6ecV@@z_|yGozpojYWwizb~BZJuZ&TKv(!%g=yHTjHn5-6x*OQqy6vBy@CZTRd$leT zNH?Y04l`3s)NNd+ZwU-0Gb+P-282n{frN-6TI?uzmIpe4RS_4~iHV$uTiwOaih9WtZV@3xI%RFEP~!8aik&q`f1nR%c)^0i zxHw^(66d4fk$Egcma0$V)W)dR(}wtS??+u@&AL}XH4W#FL*kUct}RXdm76e-K0D~= zkJ-9S28STvu(e*nnl{gC8jD}~P%xg-vY4}-D}c$VEao5E(_42h0jQWt$`N+iav=4eG2POV zhxtQHTw;UqP!g3XxF(%CS*=Ac5bhG$KEZEx_MfLXytz!71pcsfP)>i58rk_;mmn;2 zA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8@u0e7B^q$-= zia|e+KUd+TUThIpNi95YTxB9&5!#)u)#Ol>jo$a&TUA%>_cacn3V2_uj z1|~3X3M-Y{s#B;_H~j)WRYb&#_eZHktO?BT@t?~hVyOizZ{po4M4t0bXOL+)q8`6H zxZ8;*ys9Qv10^qGGu`^kRY8hS>r>$y*AiC z>Ghw*Ay~RxR8#*>6J8WX#2pt&s1ZJoZ~DI52I?w~yT2v_OqPr4m_*WB)Pn!XG`u5! ztOND3AYTh0k7X`L4f{7X>3WK(`J;v-UcUhcfAm(OCoDOwL|xNEAL-PD0D_)%~EsJ4F;gchWo&maNxX7Ro!9%xR+$xc2^?)!1Il{fwN!G<0k zp+Nc%Iw*z(!E|2ZgmtaY&%dByFDhrS=)OqXJ|~>x(x$on=VR-vqUd+l3Hwj2n^&H7 zbKr?!UQ+)%xeVwu@c0NomZu~gHWZYCA1iv!&tgwRWEGC@=(hh%)A~#OerXQHh?9tJ z5^Q-`*4GU@8+{ZL+HDN=4zyTfB%03Wq5QjJgWG_mm|7=1cD*q?Ab)rTYPfgDT;H>c zo4~{Y#4PcZg(O-3oj8i{z-{%JYO1IkF}P>=?r60w-C8hQFe2LcXPI!JVi#{e{wlg3 zE4FOBursWt&|G{k;=-!yHx`IA8-LcV5?>2_borB#{c{mWfCaECnYpsJYKc-StY$9y zOb=JCE-b6->(}LCPWp7l+*F-wJ7@~`?f?FE$SqSM`EZmQJHl!NJ3BGa&qrNr`?R#7 z+EP)?5PzHSMa_o2AIgPsS*oODSnQq`C1Dj!B4RGR!ub>4#AWQk()Ag;1+L~sY^H-p zF~^Q}VkUnbeH5|P>InTv7k5}vZfIC_#S0@k03Wt4({|m!|tVjR= literal 0 HcmV?d00001 diff --git a/scr/food/images/search.png b/scr/food/images/search.png new file mode 100644 index 0000000000000000000000000000000000000000..eacba27ddb7756bac8d393c0a5bf4b16689f0551 GIT binary patch literal 1888 zcmV-m2cP(fP)T4sUV>MdG=hd{LZti z@8`#|#6J=^$dcyH%++XSENDkhUD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O`1OUG46E_%;fGZ*&F`p3qq#< z8XdphCIo6KFBMV3l>sMgc}2*~6{pfC9loA5KvT(FPo>oz#)`7jr}I?cO47S( zVU95WPbIa?vqgpVKv>bW zH{&EdI9d3(ew1{^$$|0s`VQjhPhW#=$|&!Adp6$_MgWHGlpw^M1f zZGG`-C*sU#ADX#CrtH?tf$6$Cjt#kj{I_^J%RT=WZ}T$lX)I#Dobwi0tD02?zo!Ju N_8l;OyvI4>zW`lDKtTWi literal 0 HcmV?d00001 diff --git a/scr/food/pages/cart/cart.js b/scr/food/pages/cart/cart.js new file mode 100644 index 0000000..b84786f --- /dev/null +++ b/scr/food/pages/cart/cart.js @@ -0,0 +1,66 @@ +// pages/cart/cart.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/food/pages/cart/cart.json b/scr/food/pages/cart/cart.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/food/pages/cart/cart.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/food/pages/cart/cart.wxml b/scr/food/pages/cart/cart.wxml new file mode 100644 index 0000000..00f9f6d --- /dev/null +++ b/scr/food/pages/cart/cart.wxml @@ -0,0 +1,2 @@ + +pages/cart/cart.wxml diff --git a/scr/food/pages/cart/cart.wxss b/scr/food/pages/cart/cart.wxss new file mode 100644 index 0000000..b58f5e9 --- /dev/null +++ b/scr/food/pages/cart/cart.wxss @@ -0,0 +1 @@ +/* pages/cart/cart.wxss */ \ No newline at end of file diff --git a/scr/food/pages/detail/detail.js b/scr/food/pages/detail/detail.js new file mode 100644 index 0000000..64aaf22 --- /dev/null +++ b/scr/food/pages/detail/detail.js @@ -0,0 +1,106 @@ +// pages/detail/detail.js +const db = wx.cloud.database({}); +const cont = db.collection('food'); +Page({ + + /** + * 页面的初始数据 + */ + data: { + detailObj: {}, + index: null, + list:[], + clockresult:[], + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.clockData() + let id =options.id + cont.doc(id).get() + .then(res => { + console.log('22') + console.log('食物详情页', res) + this.setData({ + detailObj: res.data + }) + }) + }, + // 渲染数据 + clockData() { + var _this = this + wx.request({ + url:'/pages/index/index'+ this.data.index, //url this.data.index是id + method: 'GET', //请求方式 + header: { + 'content-type': 'application/json' + }, // 设置请求的 header + success: function (res) { + let list = []; + let box = (res.data.obj.assignDates === null) ? [] : res.data.obj.assignDates.substring(0, res.data.obj.assignDates.length - 1).replace(/,/g, " ") + //这里的效果跟上面的是一样的效果,就是不用foeEach循环了,就是另一种方法,这个较麻烦一点 + list.push((box.length <= 0) ? [] : box.split(' ')) + _this.setData({ + list, + clockresult: res.data.obj, + }) + }, + fail: function () { + app.consoleLog("请求数据失败"); + }, + complete: function () { + } + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/food/pages/detail/detail.json b/scr/food/pages/detail/detail.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/food/pages/detail/detail.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/food/pages/detail/detail.wxml b/scr/food/pages/detail/detail.wxml new file mode 100644 index 0000000..cdae942 --- /dev/null +++ b/scr/food/pages/detail/detail.wxml @@ -0,0 +1,3 @@ + +{{clockresult.food_name}} + diff --git a/scr/food/pages/detail/detail.wxss b/scr/food/pages/detail/detail.wxss new file mode 100644 index 0000000..91973ea --- /dev/null +++ b/scr/food/pages/detail/detail.wxss @@ -0,0 +1 @@ +/* pages/detail/detail.wxss */ \ No newline at end of file diff --git a/scr/food/pages/fourm/fourm.js b/scr/food/pages/fourm/fourm.js new file mode 100644 index 0000000..34b3af4 --- /dev/null +++ b/scr/food/pages/fourm/fourm.js @@ -0,0 +1,66 @@ +// pages/fourm/fourm.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/food/pages/fourm/fourm.json b/scr/food/pages/fourm/fourm.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/food/pages/fourm/fourm.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/food/pages/fourm/fourm.wxml b/scr/food/pages/fourm/fourm.wxml new file mode 100644 index 0000000..c19f7fd --- /dev/null +++ b/scr/food/pages/fourm/fourm.wxml @@ -0,0 +1,2 @@ + +pages/fourm/fourm.wxml diff --git a/scr/food/pages/fourm/fourm.wxss b/scr/food/pages/fourm/fourm.wxss new file mode 100644 index 0000000..3ca0522 --- /dev/null +++ b/scr/food/pages/fourm/fourm.wxss @@ -0,0 +1 @@ +/* pages/fourm/fourm.wxss */ \ No newline at end of file diff --git a/scr/food/pages/index/index.js b/scr/food/pages/index/index.js new file mode 100644 index 0000000..cadc3a2 --- /dev/null +++ b/scr/food/pages/index/index.js @@ -0,0 +1,120 @@ +const db = wx.cloud.database({}); +const cont = db.collection('food'); +const $ = db.command.aggregate +Page({ + + /** + * 页面的初始数据 + */ + data: { + foodlist:[], + tabs: ['主食', '甜品', '小吃','吃得快','辣','甜','清淡'], + cateList:[] + }, + + + tabSelect:function(e){ + var current = e.currentTarget.dataset.id + this.setData({ + current:current + }) + }, + //分类 + geCateListe(){ + db.collection('food').aggregate() + .group({ + _id: '$tab' + }) + .end() + .then(res => { + console.log('食物列表', res) + this.setData({ + foodList: res.list + }) + }) + }, + //跳转详情页 + toDetail: function (event) { + // 获取 event 事件对象 + + // 获取点击对应的下标 + const index = event.currentTarget.dataset.id + console.log(event) + //抓取id进行赋 + //wx.navigateTo 会触发页面隐藏onHide + console.log('11111') + wx.navigateTo({ + url:'/pages/detail/detail?id='+ index, + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + var _this = this; + const db = wx.cloud.database({ + //这个是环境ID不是环境名称 + env: 'cloud1-8g5wmepxce8a3b8a' + }) + //2、开始查询数据了 news对应的是集合的名称 + db.collection('food').get({ + //如果查询成功的话 + success: res => { + console.log(res.data) + //这一步很重要,给ne赋值,没有这一步的话,前台就不会显示值 + this.setData({ + foodlist: res.data + }) + } + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/scr/food/pages/index/index.json b/scr/food/pages/index/index.json new file mode 100644 index 0000000..c169e8c --- /dev/null +++ b/scr/food/pages/index/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + + } +} \ No newline at end of file diff --git a/scr/food/pages/index/index.wxml b/scr/food/pages/index/index.wxml new file mode 100644 index 0000000..91dd220 --- /dev/null +++ b/scr/food/pages/index/index.wxml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + {{item}} + + + + + + + + + + + + + {{item.food_name}} + {{item.price}} + {{item.food_shop}} + + + + + \ No newline at end of file diff --git a/scr/food/pages/index/index.wxss b/scr/food/pages/index/index.wxss new file mode 100644 index 0000000..b11b46b --- /dev/null +++ b/scr/food/pages/index/index.wxss @@ -0,0 +1,162 @@ +page { + background: #ffffff; + width: 100%; + height: 100%; +} + +/*分割线样式*/ +.divLine{ + background: #E0E3DA; + width: 100%; + height: 5rpx; + } + + .navbar { + + width: 100%; + height: 90rpx; + /* 文本不换行 */ + white-space: nowrap; + display: flex; + box-sizing: border-box; + border-bottom: 1rpx solid #eee; + background: #fff; + align-items: center; + /* 固定在顶部 */ + } +.nav-item { + line-height: 60rpx; + background-color: #f7f7f7; + padding-left: 25rpx; + padding-right: 25rpx; + height: 100%; + display: inline-table; + /* 普通文字大小 */ + font-size: 28rpx; +} +.nav-text { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + letter-spacing: 4rpx; + box-sizing: border-box; +} +.tab-on { + color: #000080; + /* 选中放大 */ + font-size: 38rpx !important; + font-weight: 600; + border-bottom: 4rpx solid #000080 !important; +} + + + + + + + + + +.P_input { + position: relative; +} +.P_input input { + background: white; + border-radius: 40rpx; + width: 90%; + padding: 10rpx 0; + padding-left: 40rpx; + margin: 40rpx 0 5% 20rpx; +} +.P_input image { + position: absolute; + z-index: 999999; + width: 36rpx; + height: 36rpx; + padding: 6rpx 20rpx; + right: 20rpx; + top: 12rpx; +} +.imagesize { + display: flex; + justify-content: center; + align-items: center; + width: 650rpx; + margin-left: 50rpx; + margin-right: 50rpx; + +} + +.imagesize select { + + height: 50rpx; + width: 350rpx; +} + +.imagesize select2 { + height: 180rpx; + width: 350rpx; +} +.foodist{ + margin-top:10px; +} + +.foodlist .a .img{ + float:left; + width:40%; + height:100%; +} +.foodlist .a .img image{ + width:200rpx; + height:200rpx; +} +.foodlist .a .info{ + width:59%; + float:right; + height:100px; + position:relative; +} +.foodlist .a .info .title{ + color:#333; + margin-left:10px; + font-size: 15px; +} + +.foodlist .a .info .price{ + color:#FF2727; + margin-left:10px; + margin-top:10px; + font-size:15px; +} + +.foodlist .a .info .num{ + position: absolute; + left:0px; + bottom:10px; + color:#747474; + margin-left:10px; + font-size:15px; +} +.clear{ + clear: both; + overflow: hidden; +} +navigator{ + display:inline; +} + +.nav { + position: fixed; + background: white; + color: #353535; + z-index: 999999; + max-height: 94rpx; + width: 100%; +} + +.scroll-view-containner{ + display: flex; + text-align: center; +} \ No newline at end of file diff --git a/scr/food/pages/usercenter/usercenter.js b/scr/food/pages/usercenter/usercenter.js new file mode 100644 index 0000000..4643aa5 --- /dev/null +++ b/scr/food/pages/usercenter/usercenter.js @@ -0,0 +1,66 @@ +// pages/usercenter/usercenter.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/food/pages/usercenter/usercenter.json b/scr/food/pages/usercenter/usercenter.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/food/pages/usercenter/usercenter.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/food/pages/usercenter/usercenter.wxml b/scr/food/pages/usercenter/usercenter.wxml new file mode 100644 index 0000000..d1caa31 --- /dev/null +++ b/scr/food/pages/usercenter/usercenter.wxml @@ -0,0 +1,2 @@ + +pages/usercenter/usercenter.wxml diff --git a/scr/food/pages/usercenter/usercenter.wxss b/scr/food/pages/usercenter/usercenter.wxss new file mode 100644 index 0000000..5ee4c11 --- /dev/null +++ b/scr/food/pages/usercenter/usercenter.wxss @@ -0,0 +1 @@ +/* pages/usercenter/usercenter.wxss */ \ No newline at end of file diff --git a/scr/food/project.config.json b/scr/food/project.config.json new file mode 100644 index 0000000..92f43ed --- /dev/null +++ b/scr/food/project.config.json @@ -0,0 +1,79 @@ +{ + "miniprogramRoot": "", + "cloudfunctionRoot": "cloudfunctions/", + "setting": { + "urlCheck": true, + "es6": true, + "enhance": true, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": true, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "lazyloadPlaceholderEnable": false, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "enableEngineNative": false, + "useIsolateContext": true, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "disableUseStrict": false, + "showES6CompileOption": false, + "useCompilerPlugins": false, + "minifyWXML": true + }, + "appid": "wxcc745ea897810e52", + "projectname": "quickstart-wx-cloud", + "libVersion": "2.14.1", + "cloudfunctionTemplateRoot": "cloudfunctionTemplate/", + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "miniprogram": { + "list": [ + { + "id": -1, + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide" + } + ] + } + }, + "srcMiniprogramRoot": "miniprogram/", + "compileType": "miniprogram", + "packOptions": { + "ignore": [], + "include": [] + }, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 2 + } +} \ No newline at end of file diff --git a/scr/food/project.private.config.json b/scr/food/project.private.config.json new file mode 100644 index 0000000..86ff34f --- /dev/null +++ b/scr/food/project.private.config.json @@ -0,0 +1,60 @@ +{ + "setting": { + "compileHotReLoad": true + }, + "condition": { + "miniprogram": { + "list": [ + { + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide", + "query": "" + }, + { + "name": "pages/getOpenId/index", + "pathName": "pages/getOpenId/index", + "query": "", + "scene": null + }, + { + "name": "pages/deployService/index", + "pathName": "pages/deployService/index", + "query": "", + "scene": null + }, + { + "name": "pages/selectRecord/index", + "pathName": "pages/selectRecord/index", + "query": "", + "scene": null + }, + { + "name": "pages/sumRecordResult/index", + "pathName": "pages/sumRecordResult/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecord/index", + "pathName": "pages/updateRecord/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecordResult/index", + "pathName": "pages/updateRecordResult/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecordSuccess/index", + "pathName": "pages/updateRecordSuccess/index", + "query": "", + "scene": null + } + ] + } + }, + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "food" +} \ No newline at end of file diff --git a/scr/food/sitemap.json b/scr/food/sitemap.json new file mode 100644 index 0000000..27b2b26 --- /dev/null +++ b/scr/food/sitemap.json @@ -0,0 +1,7 @@ +{ + "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", + "rules": [{ + "action": "allow", + "page": "*" + }] +} \ No newline at end of file diff --git a/scr/food/uploadCloudFunction.bat b/scr/food/uploadCloudFunction.bat new file mode 100644 index 0000000..0ebc24e --- /dev/null +++ b/scr/food/uploadCloudFunction.bat @@ -0,0 +1 @@ +"D:\С\΢web߹\cli.bat" cloud functions deploy --e cloud1-8g5wmepxce8a3b8a --n quickstartFunctions --r --project "D:\\\\food" --report_first --report \ No newline at end of file