### 开源地址 码云: [https://gitee.com/ZhongBangKeJi/CRMEB-H5-v3.0](https://gitee.com/ZhongBangKeJi/CRMEB-H5-v3.0) github: [https://github.com/crmeb/CRMEB-H5-v3.0](https://github.com/crmeb/CRMEB-H5-v3.0) ## 公众号和H5页面说明 ``` ├─api 接口目录 │ ├─activity.js 活动接口 │ ├─admin.js 管理员订单接口 │ ├─order.js 订单接口 │ ├─public.js 公共接口 │ ├─store.js 产品接口 │ └─user.js 用户接口 ├─assets 静态资源目录 │ ├─css 样式目录 │ ├─iconfont 图标目录 │ ├─images 图片目录 │ └─js js文件目录 ├─components 组件目录 ├─libs │ ├─chat.js │ ├─order.js │ └─wechat.js ├─mixins │ └─SendVerifyCode.js ├─router 路由目录 │ ├─module 路由目录 │ │ ├─activity.js 活动页面路由 │ │ ├─admin.js 管理员订单页面路由 │ │ ├─index.js │ │ ├─order.js 订单页面路由 │ │ └─user.js 用户页面路由 │ └─index.js 路由文件 ├─store Vuex目录 │ ├─module │ ├─getters.js │ └─index.js ├─utils 工具目录 │ ├─store 操作cookie,localStorage助手方法 │ ├─bc.js 高精度计算 │ └─dialog.js 弹窗 │ └─emoji.js 聊天表情 │ └─index.js │ └─loading.js 下拉加载 │ └─request.js 发送请求 │ └─validate.js 数据验证 ├─views 页面目录 │ └─activity 活动目录 │ └─home 首页目录 │ └─order 订单目录 │ └─orderAdmin 管理员订单目录 │ └─shop 商城目录 │ └─user 用户目录 │ └─NotDefined.vue 404页面 ├─App.vue ├─main.js ``` ### 调试 ```sh npm run serve ``` ### 打包 ```sh npm run build ``` ### 配置说明 `.env.production` ```sh VUE_APP_API_URL#接口地址,例如 http://www.abc.com/api VUE_APP_WS_URL #长连接服务地址,例如 ws://www.abc.com:20003 VUE_APP_NAME #商城名称 ``` ### 放置目录 请把打包好的页面文件上传到public目录中 ### 页面路径文档 | | | | | | | --- | --- | --- | --- | --- | |  页面        |    名字   |  路径 |  带参路径例子  |  参数解释  | | 首页     |      Index       |   /    |     |      | | 客服聊天     | CustomerService       |  /customer/chat/:id    |/customer/chat/166     | id: 客服聊天人id     | | 产品分类     | GoodsClass       |   /category/:pid?    |  /category   |   pid一级分类   | | 收藏商品     | GoodsCollection       |   /collection    |     |      | | 搜索商品     | GoodSearch       |   /search    |     |      | | 新闻详情     | NewsDetail       |   /news\_detail/:id    |  /news\_detail/65   |id:新闻id      | | 新闻     | NewsList       |   /news\_list    |     |     | | 商品评分     | EvaluateList       |  /evaluate\_list/:id    | /evaluate\_list/3    |   id:商品id  | | 商品评价     | GoodsEvaluate       |  /goods\_evaluate/:id    | /evaluate\_list/4578784545    |   id:购物车和订单号MD5加密的唯一值  | | 促销单品     | GoodsPromotion       |   /promotion    |     |     | | 热门榜单/ 精品推荐/ 首发新品  | HotNewGoods       |   /hot\_new\_goods/:type    |  /hot\_new\_goods/1    |  区分列表:1为精品推荐、2为热门榜单、3为首发新品   | | 商品详情     | GoodsCon       |   /detail/:id    |  /detail/9    | 产品id  | | 购物车     | ShoppingCart       |   /cart    |      |  | | 商品列表     | GoodsList       |   /goods\_list    |      |  | | 注册     | Register       |   /register    |      |  | | 修改密码     | ChangePassword       |   /change\_password    |      |  | | 找回密码     | RetrievePassword       |   /retrieve\_password    |      |  | | 登录     | Login       |   /login    |      |  | | 页面找不到     | NotDefined       |   \*   |      |  | | 海报     | Poster       |  /activity/poster/:id/:type   |   /activity/poster/3/1    |id:拼团id或者砍价id; type:1为拼团、2为砍价 | | 砍价详情     | DargainDetails       | /activity/dargain\_detail/:id/:partake?   |  /activity/dargain\_detail/14/0    |id:砍价产品编号;partake:用户编号 | | 砍价列表     | GoodsBargain       |   /activity/bargain   |      |  | | 砍价记录     | BargainRecord       |  /activity/bargain/record   |     |  | | 拼团列表     | GoodsGroup       |  /activity/group   |     |  | | 拼团详情     | GroupDetails       |  /activity/group\_detail/:id   |  /activity/group\_detail/13 | id:拼团产品编号 | | 拼团     | GroupRule       |  /activity/group\_rule/:id | /activity/group\_rule/17 |id:拼团编号 | | 限时抢购     | GoodsSeckill |  /activity/goods\_seckill | | | | 抢购详情页     | SeckillDetails | /activity/seckill\_detail/:id?/:time |/activity/seckill\_detail/11/1569232800 |id:秒杀产品编号;time:秒杀结束时间| | 订单首页     | OrderIndex       |  /customer/index   |     |  | | 订单列表     | AdminOrderList       |  /customer/orders/:types?   |  /customer/orders/0| type:0为待付款、1为待发货、2为待收货、3为待评价、-3为退款| | 订单发货     | GoodsDeliver |  /customer/delivery/:oid? | /customer/delivery/14 | oid:订单编号| | 订单详情     | AdminOrder |  /customer/orderdetail/:oid? | /customer/orderdetail/14 | oid:订单编号| | 订单数据统计 | Statistics |  /customer/statistics/:type/:time? | /customer/statistics/price/today | type:price:成交额,order:订单数;time:today:今天、yesterday:昨天、month:本月;| | 订单核销   | OrderCancellation | /order/order\_cancellation   | |  | | 我的订单   | MyOrder | /order/list/:type?  | /order/list/0 |type: 0为待付款、1为待发货、2为待收货、3为待评价、4为已完成、-1为退款中、-2为已退款、-3为退款、无参数为全部订单;| | 物流信息   | Logistics | /order/logistics/:id | /order/logistics/X47855496654|id:订单号| | 订单详情   | OrderDetails | /order/detail/:id | /order/detail/X47855496654| id:订单号 | | 提交订单   | OrderSubmission |/order/submit/:id | /order/submit/12| id:购物车编号 | | 支付状态   | PaymentStatus |/order/status | | | | 申请退货   | GoodsReturn |/order/refund/:id|/order/refund/X47855496654|id:订单号 | | 退货列表   | ReturnList | /order/refund\_list | | | | 个人中心   | User | /user | | | | 绑定手机   | BindingPhone | /user/binding | | | | 添加收货地址   | AddAddress | /user/add\_address/:id? | /user/add\_address/14|id:地址编号;无id时为新增地址| | 我的账户   | UserAccount | /user/account | | | | 地址管理   | AddressManagement | /user/add\_manage | | | | 分销海报   | Poster | /user/poster | | | | 签到   | Sign | /user/sign | | | | 签到记录   | SignRecord | /user/sign\_record | | | | 提现   | UserCash | /user/cash | | | | 提现审核   | CashAudit |/user/audit| | | | 推广人订单   | PromoterOrder |/user/promoter\_order| | | | 推广人列表   | PromoterList |/user/promoter\_list| | | | 我的推广   | UserPromotion |/user/user\_promotion| | | | 账单明细   | UserBill |/user/bill/:types?| /user/bill/:types?|type:0为账单记录、1为消费记录、2为充值记录| | 提现记录   | CashRecord |/user/cashrecord| | | | 佣金明细   | CommissionDetails |/user/commission| | | | 积分详情   | Integral |/user/integral| | | | 会员中心   | UserVip |/user/vip| | | | 个人资料   | PersonalData |/user/data| | | | 我的优惠券   | UserCoupon |/user/user\_coupon| | | | 领取优惠券   | GetCoupon |/user/get\_coupon| | | | 申请提现   | UserCash |/user/user\_cash| | | | 客服列表   | CustomerList |/customer/list| | | | 余额充值   | Recharge |/user/Recharge| | | | 推广人排行   | PromoterRank |/user/promoter\_rank| | | | 佣金排行   | CommissionRank |/user/commission/rank| | |