Commit aaf2c4cd authored by Jeff's avatar Jeff

Merge remote-tracking branch 'origin/develop' into develop

parents 353734e8 bf8c6248
...@@ -3,17 +3,17 @@ console.log('process.env:', process.env) ...@@ -3,17 +3,17 @@ console.log('process.env:', process.env)
console.log('process.env.NODE_ENV:', process.env.NODE_ENV) console.log('process.env.NODE_ENV:', process.env.NODE_ENV)
// //
switch (process.env.NODE_ENV) { switch (process.env.NODE_ENV) {
case 'development': case 'development':
baseUrl = 'http://localhost:3000/development' //开发环境url baseUrl = 'http://localhost:3000/development' //开发环境url
break break
case 'passports': // 注意这里的名字要和步骤二中设置的环境名字对应起来 case 'passports': // 注意这里的名字要和步骤二中设置的环境名字对应起来
baseUrl = 'http://localhost:3000/passports' //测试环境中的url baseUrl = 'http://localhost:3000/passports' //测试环境中的url
break break
case 'production': case 'production':
baseUrl = 'http://106.13.94.82:3000/production' //生产环境url baseUrl = 'http://106.13.94.82:3000/production' //生产环境url
break break
} }
export default baseUrl export default baseUrl
...@@ -17,13 +17,13 @@ export default { ...@@ -17,13 +17,13 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.video-change { .video-change {
width: 100px; width: 100px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
text-align: center; text-align: center;
border: 1px solid #dddddd; border: 1px solid #dddddd;
border-radius: 4px; border-radius: 4px;
user-select: none; user-select: none;
cursor: pointer; cursor: pointer;
} }
</style> </style>
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
return min + ':' + sec return min + ':' + sec
} }
}, },
props: ['duration', 'nowTime'], // eslint-disable-line props: ['duration', 'nowTime'], // eslint-disable-line
data() { data() {
return {} return {}
}, },
...@@ -45,27 +45,27 @@ export default { ...@@ -45,27 +45,27 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.video-control { .video-control {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-self: center; align-self: center;
width: 200px; width: 200px;
user-select: none; user-select: none;
} }
.video-play-btn { .video-play-btn {
border: 1px solid #dddddd; border: 1px solid #dddddd;
width: 30px; width: 30px;
height: 30px; height: 30px;
border-radius: 100%; border-radius: 100%;
margin-right: 10px; margin-right: 10px;
cursor: pointer; cursor: pointer;
} }
.video-time-content { .video-time-content {
display: flex; display: flex;
> div, > div,
span { span {
line-height: 30px; line-height: 30px;
color: #474261; color: #474261;
} }
} }
</style> </style>
...@@ -64,16 +64,16 @@ export default { ...@@ -64,16 +64,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.video-player { .video-player {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: beige; background-color: beige;
video { video {
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;
} }
} }
</style> </style>
...@@ -81,15 +81,15 @@ export default { ...@@ -81,15 +81,15 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
/* @import url(); 引入css类 */ /* @import url(); 引入css类 */
.video-cutter { .video-cutter {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.video-content { .video-content {
width: 100%; width: 100%;
height: 700px; height: 700px;
} }
.video-btn { .video-btn {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
/*
* @Date: 2020-08-27 09:05:54
* @LastEditors: OBKoro1
* @LastEditTime: 2020-08-27 15:30:17
* @FilePath: /vue.config.js
* @Description: 描述
* @Author: huacong
* @
*/
// console.log(`process.env1:`, process.env); // console.log(`process.env1:`, process.env);
console.log('process.env.NODE_ENV1:', process.env.NODE_ENV) console.log('process.env.NODE_ENV1:', process.env.NODE_ENV)
module.exports = { module.exports = {
// outputDir: process.env.outputDir, // outputDir: process.env.outputDir,
// assetsDir: 'static', // assetsDir: 'static',
publicPath: '/', publicPath: '/',
devServer: { devServer: {
open: true, open: true,
// host: '0.0.0.0', // host: '0.0.0.0',
port: 3018, port: 3018,
https: false, https: false,
hotOnly: false, hotOnly: false,
proxy: { proxy: {
webapi: { webapi: {
target: 'https://test2.laihua.com/', target: 'https://test2.laihua.com/',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^/webapi': '/' } pathRewrite: { '^/webapi': '/' }
} }
}
},
chainWebpack: (config) => {
config.module
.rule('eslint')
.use('eslint-loader')
.loader('eslint-loader')
.tap((options) => {
// 保存自动eslint修复
options.fix = true
return options
})
},
css: {
loaderOptions: {
sass: {
prependData: '@import "@/assets/style/index.scss";'
}
}
} }
},
chainWebpack: (config) => {
config.module
.rule('eslint')
.use('eslint-loader')
.loader('eslint-loader')
.tap((options) => {
// 保存自动eslint修复
options.fix = true
return options
})
},
css: {
loaderOptions: {
sass: {
prependData: '@import "@/assets/style/index.scss";'
}
}
}
} }
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 to comment