Commit 569192ed by hank

移动端上传h5视频

parent eb9efefb
{
"name": "wandasuinipai",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "mamingqun <maxrocky@maxrocky.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "cross-env NODE_ENV=production node build/build.js",
"buildtest": "cross-env BUILD_ENV=dev NODE_ENV=development node build/build.js",
"rename": "node tools.js",
"postbuild": ""
},
"dependencies": {
"axios": "^0.18.0",
"fastclick": "^1.0.6",
"jquery": "^3.3.1",
"mint-ui": "^2.2.13",
"normalize.css": "^8.0.0",
"vue": "^2.5.2",
"vue-lazyload": "^1.2.6",
"vue-router": "^3.0.1",
"vue-waterfall-easy": "^2.4.1",
"vuex": "^3.0.1",
"vux": "^2.9.2",
"weixin-js-sdk": "^1.4.0-test"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-component": "^1.1.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"cross-env": "^5.2.0",
"css-loader": "^0.28.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^2.0.0",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"less": "^3.8.1",
"less-loader": "^4.1.0",
"node-notifier": "^5.1.2",
"node-sass": "^4.9.3",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-px2rem": "^0.3.0",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"sass-loader": "^7.1.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^1.1.2",
"vconsole": "^3.2.0",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"vux-loader": "^1.2.9",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
"name": "wandasuinipai",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "mamingqun <maxrocky@maxrocky.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "cross-env NODE_ENV=production node build/build.js",
"buildtest": "cross-env BUILD_ENV=dev NODE_ENV=development node build/build.js",
"rename": "node tools.js",
"postbuild": ""
},
"dependencies": {
"ali-oss": "^6.1.1",
"axios": "^0.18.0",
"fastclick": "^1.0.6",
"jquery": "^3.3.1",
"mint-ui": "^2.2.13",
"normalize.css": "^8.0.0",
"vue": "^2.5.2",
"vue-lazyload": "^1.2.6",
"vue-router": "^3.0.1",
"vue-waterfall-easy": "^2.4.1",
"vuex": "^3.0.1",
"vux": "^2.9.2",
"weixin-js-sdk": "^1.4.0-test"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-component": "^1.1.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"cross-env": "^5.2.0",
"css-loader": "^0.28.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^2.0.0",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"less": "^3.8.1",
"less-loader": "^4.1.0",
"node-notifier": "^5.1.2",
"node-sass": "^4.9.3",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-px2rem": "^0.3.0",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"sass-loader": "^7.1.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^1.1.2",
"vconsole": "^3.2.0",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"vux-loader": "^1.2.9",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
......@@ -39,8 +39,9 @@ axios.interceptors.request.use(
// respone拦截器
axios.interceptors.response.use(
response => {
if (response.data.code === '0000' || response.data.code === '4010' || response.data.code === 0) {
if (response.data.code === '0000' || response.data.code === '4010' || response.data.code == 0 || !response.data.code) {
// 1041 公司存在报错
console.log(response.data)
return response
} else {
response.status = 400
......@@ -50,7 +51,7 @@ axios.interceptors.response.use(
// duration: 2 * 1000
// })
if(response.data.code == 100100 || response.data.code == 100101) {
store.dispatch('getAuth').then()
store.dispatch('getAuth')
}
return Promise.reject(new Error({
response
......
......@@ -3,6 +3,7 @@ import Router from 'vue-router'
import Shouye from '../Shouye'
import Detail from '../../../components/Detail.vue'
import ImgUp from '../ImgUp.vue';
import ImgUp2 from '../ImgUp2.vue';
import Description from '../../../components/Description.vue';
import Address from '../../user/Address.vue';
......@@ -24,7 +25,7 @@ export default new Router({
{
path: '/imgup',
name: 'ImgUp',
component: ImgUp
component: ImgUp2
},
{
path: '/description',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment