GitPedia

Mpvue xbyjShop

前端mpvue🚀后端nodejs🔋+thinkjs+mysql📂微信小程序商城(准备用uniapp重构并适配多端)

From yllg·Updated May 28, 2026·View on GitHub·

> mpvue + mpvue-router-patch + mpvue-entry + vuex + webpack + ES6/7 + flyio + mpvue-wxparse The project is written primarily in Vue, first published in 2018. It has gained significant community traction with 1,041 stars and 427 forks on GitHub. Key topics include: flyio, mpvue, mysql, nodejs, thinkjs.

mpvue-xbyjShop

基于mpvue的微信小程序商城(小程序端,服务端)

小程序端

技术栈

mpvue + mpvue-router-patch + mpvue-entry + vuex + webpack + ES6/7 + flyio + mpvue-wxparse

项目运行

微信开发中工具选中mpvue-xbyjShop/buyer作为项目目录即可

功能列表

页面

  • 首页 -- 完成
  • 分类商品 -- 完成
  • 商家品牌、品牌详情 -- 完成
  • 新品首发 -- 完成
  • 人气推荐 -- 完成
  • 专题商品、专题详情 -- 完成
  • 分类首页 -- 完成
  • 搜索页 -- 完成
  • 商品详情 -- 完成
  • 评论页 -- 完成
  • 购物车 -- 完成
  • 下单页 -- 完成
  • 支付页、支付结果页 -- 完成
  • 我的订单、订单详情页 -- 完成
  • 优惠卷
  • 我的收藏 -- 完成
  • 我的足迹 -- 完成
  • 地址管理页 -- 完成
  • 意见反馈
  • 物流查询

组件

  • 商品筛选组件 -- 综合、价格、分类

功能

  • 专题评论
  • 搜索商品
  • 商品收藏
  • 加入购物车
  • 购物车商品的编辑、删除、批量操作
  • 浏览记录
  • 收货地址的增、删、改
  • 下单支付
    .....

效果展示

首页、商品分类页

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/1.%E9%A6%96%E9%A1%B5.gif" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/2.%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB.png" width="320" height="619"/>

品牌详情页、人气推荐页

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/3.%E5%93%81%E7%89%8C%E8%AF%A6%E6%83%85%E9%A1%B5.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/4.%E4%BA%BA%E6%B0%94%E6%8E%A8%E8%8D%90.gif" width="320" height="619"/>

专题、专题详情

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/5.%E4%B8%93%E9%A2%98.gif" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/6.%E4%B8%93%E9%A2%98%E8%AF%A6%E6%83%85.gif" width="320" height="619"/>

分类首页、搜索页

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/7.%E5%88%86%E7%B1%BB%E9%A6%96%E9%A1%B5.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/8.%E6%90%9C%E7%B4%A2.gif" width="320" height="619"/>

商品详情、购物车

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/9.%E5%95%86%E5%93%81%E8%AF%A6%E6%83%85.gif" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/10.%E8%B4%AD%E7%89%A9%E8%BD%A6.gif" width="320" height="619"/>

确认订单、付款页

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/11.%E7%A1%AE%E8%AE%A4%E8%AE%A2%E5%8D%95.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/12.%E4%BB%98%E6%AC%BE%E9%A1%B5.png" width="320" height="619"/>

付款结果、个人中心

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/13.%E4%BB%98%E6%AC%BE%E7%BB%93%E6%9E%9C.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/14.%E4%B8%AA%E4%BA%BA%E4%B8%AD%E5%BF%83.png" width="320" height="619"/>

我的订单、订单详情

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/15.%E6%88%91%E7%9A%84%E8%AE%A2%E5%8D%95.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/16.%E8%AE%A2%E5%8D%95%E8%AF%A6%E6%83%85.png" width="320" height="619"/>

优惠卷、我的收藏

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/17.%E4%BC%98%E6%83%A0%E5%8D%B7.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/18.%E6%88%91%E7%9A%84%E6%94%B6%E8%97%8F.png" width="320" height="619"/>

我的足迹、地址管理

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/19.%E6%88%91%E7%9A%84%E8%B6%B3%E8%BF%B9.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/20.%E5%9C%B0%E5%9D%80%E7%AE%A1%E7%90%86.gif" width="320" height="619"/>

意见反馈、物流查询

<img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/21.%E6%84%8F%E8%A7%81%E5%8F%8D%E9%A6%88.png" width="320" height="619"/> <img src="https://github.com/yllg/mpvue-xbyjShop/blob/master/screenshots/22.%E7%89%A9%E6%B5%81%E6%9F%A5%E8%AF%A2.png" width="320" height="619"/>

服务端

服务端api基于Node.js+ThinkJS+MySQL

项目运行

创建数据库xbyjshop

导入mpvue-xbyjShop/server目录下的xbyjShop.sql数据

修改两个配置文件,见下面

安装依赖 npm install

启动项目 npm start

修改数据库配置文件

server/src/common/config/database.js

const mysql = require('think-model-mysql');

module.exports = {
    handle: mysql,
    database: 'xbyjshop',
    prefix: 'xbyjshop_',
    encoding: 'utf8mb4',
    host: '127.0.0.1',
    port: '3306',
    user: 'root',
    password: '你的密码',
    dateStrings: true
};

修改微信登录和微信支付配置文件

server/src/common/config/config.js

// default config
module.exports = {
  default_module: 'api',
  weixin: {
    appid: '', // 小程序 appid
    secret: '', // 小程序密钥
    mch_id: '', // 商户帐号ID
    partner_key: '', // 微信支付密钥
    notify_url: '' // 微信异步通知
  }
};

上线部署

腾讯云ECS CentOS 7.3 64
PM2管理nodejs进程
Nginx反向代理
配置HTTPS(微信小程序接口必须是HTTPS)

数据接口: https://www.xuanbiyijue.com/api/
具体的步骤,之后有空详细补一篇吧;

说明

如果本项目对您有帮助,欢迎 "Star" 支持一下 谢谢~

参考的原生微信小程序 tumobi/nideshop-mini-program

最后

1、欢迎关注我的公众号,还有个技术交流群(备注自己github账号哦)

公众号、技术交流群

<img src="https://github.com/yllg/xbyjMusic/blob/master/screenshots/13.%E5%85%AC%E4%BC%97%E5%8F%B7.jpg" width="200" height="200"/> <img src="https://github.com/yllg/xbyjMusic/blob/master/screenshots/14.%E5%BE%AE%E4%BF%A1%E7%BE%A4.png" width="250" height="312"/>

2、捐赠 Donate</br>
如果我的项目对你有帮助,也可以给我打赏一下哦~

支付宝和微信支付

<img src="https://github.com/yllg/xbyjMusic/blob/master/screenshots/15.%E6%94%AF%E4%BB%98%E5%AE%9D.jpg" width="250" height="312"/> <img src="https://github.com/yllg/xbyjMusic/blob/master/screenshots/16.%E5%BE%AE%E4%BF%A1%E6%94%AF%E4%BB%98.png" width="250" height="312"/>

License

[GPL]

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from yllg/mpvue-xbyjShop via the GitHub API.Last fetched: 6/23/2026