ソースを参照

refactor(frontend_weixin): 微信端交口调整

sunmiao 4 年 前
コミット
973b87380c

+ 88 - 0
frontend_weixin/package.json

@@ -0,0 +1,88 @@
+{
+  "name": "mobile",
+  "version": "1.0.0",
+  "description": "mobile",
+  "author": "sunmiao@dashoo.cn",
+  "private": true,
+  "scripts": {
+    "dev": "node build/dev-server.js",
+    "build": "node build/build.js",
+    "lint": "eslint --ext .js,.vue src"
+  },
+  "dependencies": {
+    "axios": "^0.16.1",
+    "element-ui": "^2.15.0",
+    "fastclick": "^1.0.6",
+    "highcharts": "^5.0.0",
+    "jquery": "^3.5.1",
+    "moment": "^2.15.0",
+    "nprogress": "^0.2.0",
+    "store": "^2.0.4",
+    "superagent": "^3.5.2",
+    "vue": "^2.2.2",
+    "vue-router": "^2.2.0",
+    "vue-source": "^1.1.1",
+    "vuex": "^2.1.1",
+    "vuex-i18n": "^1.3.1",
+    "vuex-router-sync": "^4.1.2",
+    "vux": "^2.2.0",
+    "weixin-js-sdk": "^1.6.0",
+    "weixin-jsapi": "^1.1.0"
+  },
+  "devDependencies": {
+    "autoprefixer": "^6.7.2",
+    "babel-core": "^6.22.1",
+    "babel-eslint": "^7.1.1",
+    "babel-loader": "^6.2.10",
+    "babel-plugin-transform-runtime": "^6.22.0",
+    "babel-preset-env": "^1.2.1",
+    "babel-preset-stage-2": "^6.22.0",
+    "babel-register": "^6.22.0",
+    "chalk": "^1.1.3",
+    "compression-webpack-plugin": "^0.3.2",
+    "connect-history-api-fallback": "^1.3.0",
+    "copy-webpack-plugin": "^4.0.1",
+    "css-loader": "^0.26.1",
+    "eslint": "^3.14.1",
+    "eslint-friendly-formatter": "^2.0.7",
+    "eslint-loader": "^1.6.1",
+    "eslint-plugin-html": "^2.0.0",
+    "eslint-config-standard": "^6.2.1",
+    "eslint-plugin-promise": "^3.4.0",
+    "eslint-plugin-standard": "^2.0.1",
+    "eventsource-polyfill": "^0.9.6",
+    "express": "^4.14.1",
+    "extract-text-webpack-plugin": "^2.0.0",
+    "file-loader": "^0.10.0",
+    "friendly-errors-webpack-plugin": "^1.1.3",
+    "function-bind": "^1.1.0",
+    "html-webpack-plugin": "^2.28.0",
+    "http-proxy-middleware": "^0.17.3",
+    "webpack-bundle-analyzer": "^2.2.1",
+    "semver": "^5.3.0",
+    "opn": "^4.0.2",
+    "optimize-css-assets-webpack-plugin": "^1.3.0",
+    "ora": "^1.1.0",
+    "rimraf": "^2.6.0",
+    "url-loader": "^0.5.7",
+    "yaml-loader": "^0.4.0",
+    "less": "^2.7.1",
+    "less-loader": "^2.2.3",
+    "vux-loader": "^1.0.56",
+    "vue-loader": "^11.1.4",
+    "vue-style-loader": "^2.0.0",
+    "vue-template-compiler": "^2.2.4",
+    "webpack": "^2.2.1",
+    "webpack-dev-middleware": "^1.10.0",
+    "webpack-hot-middleware": "^2.16.1",
+    "webpack-merge": "^2.6.1"
+  },
+  "engines": {
+    "node": ">= 4.0.0",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "iOS >= 7",
+    "Android >= 4.1"
+  ]
+}

+ 2 - 2
frontend_weixin/src/libraries/utils/axios.js

@@ -13,8 +13,8 @@ import axios from 'axios'
 
 const instance = axios.create({
   // // TODO: full base url
-  baseURL: '//localhost:9858/api/',
-  // baseURL: '//47.92.238.200:9858/api/',
+  // baseURL: '//localhost:9858/api/',
+  baseURL: '//1.117.158.212:9858/api/',
   timeout: 10000,
   headers: {
     // 'X-Custom-Header': 'foobar',

+ 1 - 1
frontend_weixin/src/views/profile.vue

@@ -90,7 +90,7 @@ export default {
       user: {},
       username: '',
       imageURL: '',
-      baseURL: 'http://47.92.238.200:8081',
+      baseURL: 'http://1.117.158.212:8081',
       asMenu: {
         confirm: '去绑定账号'
       },

ファイルの差分が大きいため隠しています
+ 231 - 188
frontend_weixin/yarn.lock


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません