1 Star 0 Fork 3

shech / vue-shop

forked from 孔乙己拉夫米 / vue-shop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.48 KB
一键复制 编辑 原始数据 按行查看 历史

Vue_Shop(VShop)移动端 (开发中...)

本项目使用Nuxt.js 2.x+Vant UI框架进行开发,一个仿照淘宝App端部分功能的商城项目,同时还支持SEO。本项目仅供学习使用。

预览地址

Vue_Shop

使用

  1. 使用 git 拉取本项目
D:> git clone https://gitee.com/kong_yiji_and_lavmi/vue-shop.git
  1. 安装依赖包
D:\vue_shop> npm i
# or
D:\vue_shop> cnpm i
  1. 启动
D:\vue_shop> npm run dev

浏览器输入网址 http://localhost:3333 即可

若无本地接口请使用线上接口

修改当前项目的.env-cmdrc.jsonJSON 文件

{
  "development": {
    // 开发模式
    "BASEURL": "http://127.0.0.1:8081", // ajax 请求地址
    "PORT": 3333, // 本地启动端口
    "HOST": "0.0.0.0", // 本地启动地址
    "IMG": "http://127.0.0.1:8888/" // img图片地址
  },
  "production": {
    // 生产模式
    "BASEURL": "//azhengpersonalblog.top",
    "PORT": 3333,
    "HOST": "0.0.0.0",
    "IMG": "http://127.0.0.1:8888/"
  }
}

BASEURL 使用 https://azhengpersonalblog.top。IMG 使用 https://image.azhengpersonalblog.top/

  • 文件app/common/index.jsIMG修改为https://image.azhengpersonalblog.top/
export const IMG = "https://image.azhengpersonalblog.top/";
JavaScript
1
https://gitee.com/swantb/vue-shop.git
git@gitee.com:swantb/vue-shop.git
swantb
vue-shop
vue-shop
master

搜索帮助