## 公眾號頁面說明
~~~
├─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
~~~
### 調試
~~~
npm run serve
~~~
### 打包
~~~
npm run build
~~~
### 配置說明`.env.production`
~~~
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 | |
- 序言
- 系統簡介
- 系統簡介
- 安裝流程
- 運行環境
- URL重寫
- 一鍵安裝
- 前端腦圖
- 定時任務
- 長連接
- 服務器配置及程序搭建
- 服務器購買
- 服務器配置
- 寶塔配置
- 域名購買
- 域名配置
- 創建網站
- DDMAL程序安裝
- https域名配置
- 系統設置
- 開發說明
- 開發規范
- 目錄結構
- 數據庫
- 事件
- 路由
- 系統配置
- 常用函數
- 后臺表單說明
- 公眾號配置
- 授權域名配置
- 公眾號授權配置
- 支付授權域名配置
- 小程序和公眾號跳轉路徑
- 前端說明
- 公眾號說明
- H5頁面說明
- 小程序頁面說明
- 常見問題
- 客服消息長連接問題
- 長連接無法連接
- 公眾號無限刷新登陸
- windows下點擊workerman.bat文件閃退
- 多項目部署Socket鏈接失敗