-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mengfandong
committed
Feb 12, 2023
1 parent
50f0c4e
commit b43cb5d
Showing
29 changed files
with
226 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,89 @@ | |
|
||
- [云开发文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html) | ||
|
||
# shuguo | ||
# supermarket_applet | ||
|
||
# 搭建步骤 | ||
1 开通 云开发 | ||
![img.png](img.png) | ||
|
||
2上 传所有云函数 | ||
|
||
![img_1.png](img_1.png) | ||
|
||
timingSendGold定时更新果币信息。需要上传触发器 | ||
|
||
![img_2.png](img_2.png) | ||
|
||
3 配置数据库表 | ||
helpQuestion 帮助问题相关 | ||
swiper 轮播图相关 | ||
category 商品分类相关 | ||
goodsList 商品信息列表 | ||
order 商品订单数据 | ||
address 收获地址 | ||
deliveryTime 配送时间 | ||
opinion 意见表 | ||
applyService 订单售后信息表 | ||
shareRelation 分享的相关数据 | ||
userInfo 用户信息 | ||
management 管理员信息 | ||
|
||
直接点击添加以上表名即可 | ||
![img_3.png](img_3.png) | ||
|
||
4.完善代码内配置(全量搜索 'TODO 配置' 我在需要配置的地方加上了注解) | ||
app.js | ||
![img_4.png](img_4.png) | ||
![img_5.png](img_5.png) | ||
|
||
完成以上配置后,随便点点。除了一些静态资源找不到的报错, 控制台就没有报错信息了 | ||
![img_6.png](img_6.png) | ||
![img_7.png](img_7.png) | ||
|
||
5.下面开始完善一些基础数据。(记得修改表对应的数据权限,详见踩坑记录,可以直接用数据库json文件导入到对应表格内) | ||
swiper 轮播图相关 | ||
category 商品分类相关 | ||
deliveryTime 配送时间 | ||
![img_11.png](img_11.png) | ||
|
||
6.我的->设置->商品管理-> 右下角+号 添加商品信息 | ||
![img_10.png](img_10.png) | ||
|
||
7. 添加完成后你会发现商品列表并没有商品。说明你的商品表的的数据权限没有打开。目前就这些工作。 | ||
|
||
|
||
# 搭建踩坑记录 | ||
1.数据库表里明明有数据,但是查询是返回结果为空? | ||
答:保证表名及数据无误的情况下。查看该表的权限。基础数据可设置成 第一个 | ||
![img_8.png](img_8.png) | ||
|
||
2.显示支付成功,但是在后台查不到? | ||
答:方便测试代码内已经把支付功能给注解掉了。默认支付成功。生产逻辑是在 payCallBack这个云函数内接收支付回调信息后修改状态 | ||
所以在没有支付功能的资质下只能手动更改订单状态 | ||
0 取消 | ||
1 下单 待支付 | ||
2 支付成功,待商家接单 | ||
3 打包中 | ||
4 打包完成,待配送 | ||
5 配送中 | ||
6 订单已签收 | ||
7 售后(已经申请售后) | ||
![img_12.png](img_12.png) | ||
|
||
## 如果以上对您有帮助,您也可以通过以下方式支持我。让我们在力所能及的范围内互帮互助✌️ | ||
1. 时光伴侣 是我全职开发的一款受柳比歇夫时间统计法影响诞生的一个时间统计app, | ||
可的话捧个场,试用下,推荐给身边需要的同学,ios端的同学劳烦给个好评(让苹果爸爸给我点自然流量)!! | ||
安卓(暂时没有上应用市场)感兴趣的话可以扫码下载 | ||
![img_13.png](img_13.png) ![img_14.png](img_14.png) ![img_15.png](img_15.png) | ||
|
||
2.直接投喂(1元2元不嫌少,8元9元不嫌多) | ||
![img_16.png](img_16.png) ![img_17.png](img_17.png) | ||
|
||
3.给个小星星✨✨✨ | ||
|
||
### 联系方式 | ||
B站: 时光伴侣App | ||
邮箱: [email protected] | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"_id": "1", | ||
"categoryId": "1", | ||
"num": 1, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "时" | ||
} | ||
{ | ||
"_id": "2", | ||
"categoryId": "2", | ||
"num": 2, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "光" | ||
} | ||
{ | ||
"_id": "3", | ||
"categoryId": "3", | ||
"num": 3, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "伴" | ||
} | ||
{ | ||
"_id": "4", | ||
"categoryId": "4", | ||
"num": 4, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "侣" | ||
} | ||
{ | ||
"_id": "5", | ||
"categoryId": "5", | ||
"num": 5, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "哦" | ||
} | ||
{ | ||
"_id": "6", | ||
"categoryId": "6", | ||
"num": 6, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "吼" | ||
} | ||
{ | ||
"_id": "7", | ||
"categoryId": "7", | ||
"num": 7, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "时" | ||
} | ||
{ | ||
"_id": "8", | ||
"categoryId": "8", | ||
"num": 8, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "间" | ||
} | ||
{ | ||
"_id": "9", | ||
"categoryId": "9", | ||
"num": 9, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "统" | ||
} | ||
{ | ||
"_id": "10", | ||
"categoryId": "10", | ||
"num": 10, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "计" | ||
} | ||
{ | ||
"_id": "11", | ||
"categoryId": "11", | ||
"num": 11, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "嗯" | ||
} | ||
{ | ||
"_id": "12", | ||
"categoryId": "12", | ||
"num": 12, | ||
"imgUrl": "cloud://test-1grlfkhpfaea9d5d.7465-test-1grlfkhpfaea9d5d-1304152447/logo.jpg", | ||
"categoryName": "哼" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{"_id":"4f1d421c63e77209026d2b64469eb081","hour":"15","min":"00","day":0} | ||
{"_id":"4f1d421c63e77209026d2b64469eb080","hour":"15","min":"00","day":1} | ||
{"_id":"4f1d421c63e77209026d2b64469eb082","hour":"15","min":"00","day":2} | ||
{"_id":"4f1d421c63e77209026d2b64469eb083","hour":"15","min":"00","day":3} | ||
{"_id":"4f1d421c63e77209026d2b64469eb084","hour":"15","min":"00","day":4} | ||
{"_id":"4f1d421c63e77209026d2b64469eb085","hour":"15","min":"00","day":5} | ||
{"_id":"4f1d421c63e77209026d2b64469eb086","hour":"15","min":"00","day":6} | ||
{"_id":"4f1d421c63e77209026d2b64469eb087","hour":"15","min":"00","day":7} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"_id":"1","url":"https://7465-test-1grlfkhpfaea9d5d-1304152447.tcb.qcloud.la/logo.jpg?sign=c7dfbfeb3411b550d3f38819e3ade5fa&t=1676107500","navigateTo":"/pages/customerService/customerService"} |