diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 8eb9589..01ae133 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -53,13 +53,8 @@ const webpackConfig = merge(baseWebpackConfig, { new UglifyJsPlugin({ uglifyOptions: { compress: { - warnings: false, - drop_console: true, // 移除console - pure_funcs: ['console.log','console.info'] // 移除console.log - }, - output: { - comments: true // 移除所有注释 - } + warnings: false + } }, sourceMap: config.build.productionSourceMap, parallel: true diff --git a/src/api/wallet.js b/src/api/wallet.js index 0e08861..4f743eb 100644 --- a/src/api/wallet.js +++ b/src/api/wallet.js @@ -148,8 +148,17 @@ class Wallet { } // 撤销订单 static cancelWithdraw(data){ - return server.post('/user/cancelWithdraw ',data,{loading:true}) - } + return server.post('/user/cancelWithdraw',data,{loading:true}) + } + static advices(data){ + return server.get('/user/advices',{params:data}) + } + static adviceDetail(data){ + return server.get('/user/adviceDetail',{params:data}) + } + static addAdvice(data){ + return server.post('/user/addAdvice',data,{loading:true}) + } } export default Wallet; diff --git a/src/components/CommonFooter.vue b/src/components/CommonFooter.vue index 5d76d5d..09b19ad 100644 --- a/src/components/CommonFooter.vue +++ b/src/components/CommonFooter.vue @@ -2,10 +2,10 @@