hezhongwen пре 1 година
родитељ
комит
0e7f065d96
4 измењених фајлова са 7469 додато и 10227 уклоњено
  1. 28 24
      README.md
  2. 7404 10179
      package-lock.json
  3. 14 24
      package.json
  4. 23 0
      vue.config.js

+ 28 - 24
README.md

@@ -1,24 +1,28 @@
-# dangao
-
-## Project setup
-```
-npm install
-```
-
-### Compiles and hot-reloads for development
-```
-npm run serve
-```
-
-### Compiles and minifies for production
-```
-npm run build
-```
-
-### Lints and fixes files
-```
-npm run lint
-```
-
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+draggable    h5的属性 是否允许元素进行拖拽
+
+HeaderNav  导航组件
+HeaderMusic 导航音乐组件
+
+
+# HeaderMusic 
+    调用网易云api  请求对应的音乐数据  http://music.zzhitong.com/
+    axiso 
+    vue-aplayer   音乐插件
+        title: '标题',
+        artist: '作者',
+        src: '地址',
+        pic: '封面'
+
+    toplist/detail  获取所有榜单的id  
+        热歌榜的id   3778678
+
+    获取对应歌单/榜单详情 
+        /playlist/detail?id=3778678
+        音乐的 id,   孤勇者的id 1901371647
+
+        获取音乐 url    需要音乐的id值   
+        http://music.zzhitong.com/song/url?id=1901371647
+    
+
+    /deep/  穿透样式
+

Разлика између датотеке није приказан због своје велике величине
+ 7404 - 10179
package-lock.json


+ 14 - 24
package.json

@@ -1,39 +1,29 @@
 {
-  "name": "dangao",
+  "name": "qwe",
   "version": "0.1.0",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",
-    "build": "vue-cli-service build",
-    "lint": "vue-cli-service lint"
+    "build": "vue-cli-service build"
   },
   "dependencies": {
+    "axios": "^0.24.0",
     "core-js": "^3.6.5",
-    "vue": "^2.6.11"
+    "element-ui": "^2.15.6",
+    "vue": "^2.6.11",
+    "vue-aplayer": "^1.6.1",
+    "vue-router": "^3.2.0",
+    "vuex": "^3.4.0"
   },
   "devDependencies": {
-    "@vue/cli-plugin-babel": "~4.5.15",
-    "@vue/cli-plugin-eslint": "~4.5.15",
-    "@vue/cli-service": "~4.5.15",
-    "babel-eslint": "^10.1.0",
-    "eslint": "^6.7.2",
-    "eslint-plugin-vue": "^6.2.2",
+    "@vue/cli-plugin-babel": "~4.5.0",
+    "@vue/cli-plugin-router": "~4.5.0",
+    "@vue/cli-plugin-vuex": "~4.5.0",
+    "@vue/cli-service": "~4.5.0",
+    "less": "^3.0.4",
+    "less-loader": "^5.0.0",
     "vue-template-compiler": "^2.6.11"
   },
-  "eslintConfig": {
-    "root": true,
-    "env": {
-      "node": true
-    },
-    "extends": [
-      "plugin:vue/essential",
-      "eslint:recommended"
-    ],
-    "parserOptions": {
-      "parser": "babel-eslint"
-    },
-    "rules": {}
-  },
   "browserslist": [
     "> 1%",
     "last 2 versions",

+ 23 - 0
vue.config.js

@@ -0,0 +1,23 @@
+module.exports = {
+    devServer: {
+        proxy: {
+            '/api': {
+                target: 'http://music.zzhitong.com',
+                ws: true,
+                changeOrigin: true,
+                pathRewrite: {        //  /api 替换
+                    '^/api': ''
+                }
+            },
+            "/node":{
+                target: 'http://localhost:3000',
+                ws: true,
+                changeOrigin: true,
+                pathRewrite: {        //  /api 替换
+                    '^/node': ''
+                }
+            }
+        }
+    }
+}
+