├── .DS_Store ├── .eslintrc.js ├── .gitignore ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── app.js ├── app ├── api │ └── v1 │ │ ├── address.js │ │ ├── banner.js │ │ ├── category.js │ │ ├── order.js │ │ ├── pay.js │ │ ├── product.js │ │ ├── theme.js │ │ ├── token.js │ │ └── user.js ├── lib │ └── enum.js ├── models │ ├── banner.js │ ├── bannerItem.js │ ├── category.js │ ├── image.js │ ├── order-product.js │ ├── order.js │ ├── product-image.js │ ├── product-property.js │ ├── product.js │ ├── theme-product.js │ ├── theme.js │ ├── user-address.js │ └── user.js ├── services │ ├── file.js │ ├── wx-pay.js │ └── wx.js └── validators │ └── validator.js ├── config └── index.js ├── core ├── db.js ├── http-exception.js ├── init.js ├── lin-validator-v2.js └── util.js ├── docs └── api.md ├── middlewares ├── auth.js └── exception.js ├── package.json ├── shop.sql ├── static └── images │ ├── 1@theme-head.png │ ├── 1@theme.png │ ├── 2@theme-head.png │ ├── 2@theme.png │ ├── 3@theme.png │ ├── banner-1a.png │ ├── banner-2a.png │ ├── banner-3a.png │ ├── banner-4a.png │ ├── category-cake.png │ ├── category-dryfruit.png │ ├── category-fry-a.png │ ├── category-rice.png │ ├── category-tea.png │ ├── category-vg.png │ ├── detail-10@1-dryfruit.png │ ├── detail-11@1-dryfruit.png │ ├── detail-12@1-dryfruit.png │ ├── detail-13@1-dryfruit.png │ ├── detail-1@1-dryfruit.png │ ├── detail-2@1-dryfruit.png │ ├── detail-3@1-dryfruit.png │ ├── detail-4@1-dryfruit.png │ ├── detail-5@1-dryfruit.png │ ├── detail-6@1-dryfruit.png │ ├── detail-7@1-dryfruit.png │ ├── detail-8@1-dryfruit.png │ ├── detail-9@1-dryfruit.png │ ├── product-cake-a@3.png │ ├── product-cake-a@4.png │ ├── product-cake@1.png │ ├── product-cake@2.png │ ├── product-dryfruit-a@6.png │ ├── product-dryfruit@1.png │ ├── product-dryfruit@2.png │ ├── product-dryfruit@3.png │ ├── product-dryfruit@4.png │ ├── product-dryfruit@5.png │ ├── product-dryfruit@7.png │ ├── product-dryfruit@8.png │ ├── product-fry@1.png │ ├── product-fry@2.png │ ├── product-fry@3.png │ ├── product-fry@4.png │ ├── product-fry@5.png │ ├── product-rice@1.png │ ├── product-rice@2.png │ ├── product-rice@3.png │ ├── product-rice@4.png │ ├── product-rice@5.png │ ├── product-rice@6.png │ ├── product-rice@7.png │ ├── product-tea@1.png │ ├── product-tea@2.png │ ├── product-tea@3.png │ ├── product-vg@1.png │ ├── product-vg@2.png │ ├── product-vg@3.png │ ├── product-vg@4.png │ └── product-vg@5.png └── yarn.lock /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/.DS_Store -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # shop 2 | 零食商贩小程序Koa2版本~ 3 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app.js -------------------------------------------------------------------------------- /app/api/v1/address.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/address.js -------------------------------------------------------------------------------- /app/api/v1/banner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/banner.js -------------------------------------------------------------------------------- /app/api/v1/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/category.js -------------------------------------------------------------------------------- /app/api/v1/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/order.js -------------------------------------------------------------------------------- /app/api/v1/pay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/pay.js -------------------------------------------------------------------------------- /app/api/v1/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/product.js -------------------------------------------------------------------------------- /app/api/v1/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/theme.js -------------------------------------------------------------------------------- /app/api/v1/token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/token.js -------------------------------------------------------------------------------- /app/api/v1/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/api/v1/user.js -------------------------------------------------------------------------------- /app/lib/enum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/lib/enum.js -------------------------------------------------------------------------------- /app/models/banner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/banner.js -------------------------------------------------------------------------------- /app/models/bannerItem.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/bannerItem.js -------------------------------------------------------------------------------- /app/models/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/category.js -------------------------------------------------------------------------------- /app/models/image.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/image.js -------------------------------------------------------------------------------- /app/models/order-product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/order-product.js -------------------------------------------------------------------------------- /app/models/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/order.js -------------------------------------------------------------------------------- /app/models/product-image.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/product-image.js -------------------------------------------------------------------------------- /app/models/product-property.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/product-property.js -------------------------------------------------------------------------------- /app/models/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/product.js -------------------------------------------------------------------------------- /app/models/theme-product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/theme-product.js -------------------------------------------------------------------------------- /app/models/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/theme.js -------------------------------------------------------------------------------- /app/models/user-address.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/user-address.js -------------------------------------------------------------------------------- /app/models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/models/user.js -------------------------------------------------------------------------------- /app/services/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/services/file.js -------------------------------------------------------------------------------- /app/services/wx-pay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/services/wx-pay.js -------------------------------------------------------------------------------- /app/services/wx.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/services/wx.js -------------------------------------------------------------------------------- /app/validators/validator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/app/validators/validator.js -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/config/index.js -------------------------------------------------------------------------------- /core/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/core/db.js -------------------------------------------------------------------------------- /core/http-exception.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/core/http-exception.js -------------------------------------------------------------------------------- /core/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/core/init.js -------------------------------------------------------------------------------- /core/lin-validator-v2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/core/lin-validator-v2.js -------------------------------------------------------------------------------- /core/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/core/util.js -------------------------------------------------------------------------------- /docs/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/docs/api.md -------------------------------------------------------------------------------- /middlewares/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/middlewares/auth.js -------------------------------------------------------------------------------- /middlewares/exception.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/middlewares/exception.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/package.json -------------------------------------------------------------------------------- /shop.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/shop.sql -------------------------------------------------------------------------------- /static/images/1@theme-head.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/1@theme-head.png -------------------------------------------------------------------------------- /static/images/1@theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/1@theme.png -------------------------------------------------------------------------------- /static/images/2@theme-head.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/2@theme-head.png -------------------------------------------------------------------------------- /static/images/2@theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/2@theme.png -------------------------------------------------------------------------------- /static/images/3@theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/3@theme.png -------------------------------------------------------------------------------- /static/images/banner-1a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/banner-1a.png -------------------------------------------------------------------------------- /static/images/banner-2a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/banner-2a.png -------------------------------------------------------------------------------- /static/images/banner-3a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/banner-3a.png -------------------------------------------------------------------------------- /static/images/banner-4a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/banner-4a.png -------------------------------------------------------------------------------- /static/images/category-cake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/category-cake.png -------------------------------------------------------------------------------- /static/images/category-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/category-dryfruit.png -------------------------------------------------------------------------------- /static/images/category-fry-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/category-fry-a.png -------------------------------------------------------------------------------- /static/images/category-rice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/category-rice.png -------------------------------------------------------------------------------- /static/images/category-tea.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/category-tea.png -------------------------------------------------------------------------------- /static/images/category-vg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/category-vg.png -------------------------------------------------------------------------------- /static/images/detail-10@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-10@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-11@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-11@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-12@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-12@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-13@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-13@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-1@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-1@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-2@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-2@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-3@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-3@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-4@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-4@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-5@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-5@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-6@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-6@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-7@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-7@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-8@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-8@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/detail-9@1-dryfruit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/detail-9@1-dryfruit.png -------------------------------------------------------------------------------- /static/images/product-cake-a@3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-cake-a@3.png -------------------------------------------------------------------------------- /static/images/product-cake-a@4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-cake-a@4.png -------------------------------------------------------------------------------- /static/images/product-cake@1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-cake@1.png -------------------------------------------------------------------------------- /static/images/product-cake@2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-cake@2.png -------------------------------------------------------------------------------- /static/images/product-dryfruit-a@6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit-a@6.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@1.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@2.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@3.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@4.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@5.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@7.png -------------------------------------------------------------------------------- /static/images/product-dryfruit@8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-dryfruit@8.png -------------------------------------------------------------------------------- /static/images/product-fry@1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-fry@1.png -------------------------------------------------------------------------------- /static/images/product-fry@2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-fry@2.png -------------------------------------------------------------------------------- /static/images/product-fry@3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-fry@3.png -------------------------------------------------------------------------------- /static/images/product-fry@4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-fry@4.png -------------------------------------------------------------------------------- /static/images/product-fry@5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-fry@5.png -------------------------------------------------------------------------------- /static/images/product-rice@1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@1.png -------------------------------------------------------------------------------- /static/images/product-rice@2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@2.png -------------------------------------------------------------------------------- /static/images/product-rice@3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@3.png -------------------------------------------------------------------------------- /static/images/product-rice@4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@4.png -------------------------------------------------------------------------------- /static/images/product-rice@5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@5.png -------------------------------------------------------------------------------- /static/images/product-rice@6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@6.png -------------------------------------------------------------------------------- /static/images/product-rice@7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-rice@7.png -------------------------------------------------------------------------------- /static/images/product-tea@1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-tea@1.png -------------------------------------------------------------------------------- /static/images/product-tea@2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-tea@2.png -------------------------------------------------------------------------------- /static/images/product-tea@3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-tea@3.png -------------------------------------------------------------------------------- /static/images/product-vg@1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-vg@1.png -------------------------------------------------------------------------------- /static/images/product-vg@2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-vg@2.png -------------------------------------------------------------------------------- /static/images/product-vg@3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-vg@3.png -------------------------------------------------------------------------------- /static/images/product-vg@4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-vg@4.png -------------------------------------------------------------------------------- /static/images/product-vg@5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/static/images/product-vg@5.png -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YpchenLove/shop/HEAD/yarn.lock --------------------------------------------------------------------------------