视频演示
以下演示为手机真机录屏
微信小程序商品系统功能演示
1、功能列表
该微信商城系统实现的主要如下图所示 ![在这里插入图片描述](https://img-blog.csdnimg.cn/890fe83f22744a26af0a0077c087ac09.png#pic_center)
2、项目结构
zhengShop
├─ .eslintrc.js
├─ app.js
├─ app.json
├─ app.wxss
├─ components
│ ├─ SearchInput
│ │ ├─ SearchInput.js
│ │ ├─ SearchInput.json
│ │ ├─ SearchInput.less
│ │ ├─ SearchInput.wxml
│ │ └─ SearchInput.wxss
│ ├─ Tabs
│ │ ├─ Tabs.js
│ │ ├─ Tabs.json
│ │ ├─ Tabs.wxml
│ │ └─ Tabs.wxss
│ └─ UpImg
│ ├─ UpImg.js
│ ├─ UpImg.json
│ ├─ UpImg.wxml
│ └─ UpImg.wxss
├─ icons
│ ├─ cart.png
│ ├─ cart_after.png
│ ├─ category_after.png
│ ├─ cateory.png
│ ├─ fenxiang.png
│ ├─ gouwuche.png
│ ├─ home.png
│ ├─ home_after.png
│ ├─ info.png
│ └─ info_after.png
├─ lib
├─ pages
│ ├─ auth
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ cart
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ category
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ collect
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ feedback
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ goods_detail
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ goods_list
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ index
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ login
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ order
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ pay
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ ├─ search
│ │ ├─ index.js
│ │ ├─ index.json
│ │ ├─ index.less
│ │ ├─ index.wxml
│ │ └─ index.wxss
│ └─ user
│ ├─ index.js
│ ├─ index.json
│ ├─ index.less
│ ├─ index.wxml
│ └─ index.wxss
├─ project.config.json
├─ project.private.config.json
├─ request
│ └─ index.js
├─ sitemap.json
├─ styles
│ └─ iconfont.wxss
└─ utils
└─ asyncWx.js
3、具体页面展示
3.1 首页
首页基本构成:1、顶部搜索页;2、轮播图(点击轮播图可跳转);3、导航栏分类(点击可跳转)。4、商品分类图集(点击页面可跳转);
![在这里插入图片描述](https://img-blog.csdnimg.cn/913e1f38a7b24f4c9d2b76fa3bcabb37.png)
3.2 商品分类
页面基本构成:1、搜索框。2、商品分类(点击左侧不同分类,右方展示不同商品)。3、点击右方商品,可以跳转到对应的商品列表页面
![在这里插入图片描述](https://img-blog.csdnimg.cn/09445fb16bf049f9938d407517248c47.png)
3.3 商品列表
页面基本构成:1、搜索框。2、商品列表(点击商品会跳转)。3、触底后,会加载新的数据。 ![在这里插入图片描述](https://img-blog.csdnimg.cn/88ab5612edc34c9584fb68e9156335ec.png)
3.4 商品详情
页面基本构成:1、商品轮播图展示。2、商品具体描述。3、点击收藏,会将该商品加入收藏列表中。4、点击加入购物车,可以将该商品加入购物车中。图文详情,找不到好的素材,暂时用1代替喽。你可以自己填充对应的数据
![在这里插入图片描述](https://img-blog.csdnimg.cn/8e18945917a84004b281949ad5259694.png)
3.5 购物车
页面基本构成:1、收获地址。(调用接口获取)2、商品详情。3、可以添加商品数量。4、总价和数量会随着选中的商品变化。
![在这里插入图片描述](https://img-blog.csdnimg.cn/66a48fb2d8f84dcc94de79680fdbdd0e.png)
3.6 商品支付
页面基本构成:1、如果没选地址,先选择收获地址。2、购买的商品详情,及订单总价。3、如果要开通微信支付,调用支付接口就行,需要给APPID授权。比较麻烦,这里模拟支付。
![在这里插入图片描述](https://img-blog.csdnimg.cn/776024bebda84bf184cebf00b6501ddb.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/011190a15cce49a7a04e11b71281f49f.png)
3.7 订单查询
订单只展示部分数据 ![在这里插入图片描述](https://img-blog.csdnimg.cn/e70d0a50243244abad349263b3d56d08.png)
3.8 个人中心
1、这里收藏的商品数量,是真实的。点击可以进入商品收藏列表。2、我的订单,也可以跳转到订单页面。3、意见反馈也可以用 ![在这里插入图片描述](https://img-blog.csdnimg.cn/8bf5073714ca4757800a0e424ab26892.png)
3.9 商品收藏
点击我的收藏,这里有收藏的商品 ![在这里插入图片描述](https://img-blog.csdnimg.cn/e8b3829ce95e47889413a1addb4e0288.png)
3.10 意见反馈
![在这里插入图片描述](https://img-blog.csdnimg.cn/d09981129aad44159f9147feaee15246.png)
4、部分源码
首页页面源码
|