Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
aaf2c4cd
Commit
aaf2c4cd
authored
Aug 27, 2020
by
Jeff
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
353734e8
bf8c6248
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
95 deletions
+86
-95
baseUrl.js
config/baseUrl.js
+9
-9
videoChange.vue
src/components/videoCutter/videoChange.vue
+8
-8
videoControl.vue
src/components/videoCutter/videoControl.vue
+18
-18
videoPlayer.vue
src/components/videoCutter/videoPlayer.vue
+10
-10
videoCutter.vue
src/views/videoCutter.vue
+6
-6
vue.config.js
vue.config.js
+35
-44
No files found.
config/baseUrl.js
View file @
aaf2c4cd
...
...
@@ -3,17 +3,17 @@ console.log('process.env:', process.env)
console
.
log
(
'process.env.NODE_ENV:'
,
process
.
env
.
NODE_ENV
)
//
switch
(
process
.
env
.
NODE_ENV
)
{
case
'development'
:
baseUrl
=
'http://localhost:3000/development'
//开发环境url
break
case
'development'
:
baseUrl
=
'http://localhost:3000/development'
//开发环境url
break
case
'passports'
:
// 注意这里的名字要和步骤二中设置的环境名字对应起来
baseUrl
=
'http://localhost:3000/passports'
//测试环境中的url
break
case
'passports'
:
// 注意这里的名字要和步骤二中设置的环境名字对应起来
baseUrl
=
'http://localhost:3000/passports'
//测试环境中的url
break
case
'production'
:
baseUrl
=
'http://106.13.94.82:3000/production'
//生产环境url
break
case
'production'
:
baseUrl
=
'http://106.13.94.82:3000/production'
//生产环境url
break
}
export
default
baseUrl
src/components/videoCutter/videoChange.vue
View file @
aaf2c4cd
...
...
@@ -17,13 +17,13 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.video-change
{
width
:
100px
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
border
:
1px
solid
#dddddd
;
border-radius
:
4px
;
user-select
:
none
;
cursor
:
pointer
;
width
:
100px
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
border
:
1px
solid
#dddddd
;
border-radius
:
4px
;
user-select
:
none
;
cursor
:
pointer
;
}
</
style
>
src/components/videoCutter/videoControl.vue
View file @
aaf2c4cd
...
...
@@ -32,7 +32,7 @@ export default {
return
min
+
':'
+
sec
}
},
props
:
[
'duration'
,
'nowTime'
],
// eslint-disable-line
props
:
[
'duration'
,
'nowTime'
],
// eslint-disable-line
data
()
{
return
{}
},
...
...
@@ -45,27 +45,27 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.video-control
{
display
:
flex
;
justify-content
:
flex-start
;
align-self
:
center
;
width
:
200px
;
user-select
:
none
;
display
:
flex
;
justify-content
:
flex-start
;
align-self
:
center
;
width
:
200px
;
user-select
:
none
;
}
.video-play-btn
{
border
:
1px
solid
#dddddd
;
width
:
30px
;
height
:
30px
;
border-radius
:
100%
;
margin-right
:
10px
;
cursor
:
pointer
;
border
:
1px
solid
#dddddd
;
width
:
30px
;
height
:
30px
;
border-radius
:
100%
;
margin-right
:
10px
;
cursor
:
pointer
;
}
.video-time-content
{
display
:
flex
;
display
:
flex
;
>
div
,
span
{
line-height
:
30px
;
color
:
#474261
;
}
>
div
,
span
{
line-height
:
30px
;
color
:
#474261
;
}
}
</
style
>
src/components/videoCutter/videoPlayer.vue
View file @
aaf2c4cd
...
...
@@ -64,16 +64,16 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.video-player
{
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
width
:
100%
;
height
:
100%
;
background-color
:
beige
;
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
width
:
100%
;
height
:
100%
;
background-color
:
beige
;
video
{
max-width
:
100%
;
max-height
:
100%
;
}
video
{
max-width
:
100%
;
max-height
:
100%
;
}
}
</
style
>
src/views/videoCutter.vue
View file @
aaf2c4cd
...
...
@@ -81,15 +81,15 @@ export default {
<
style
scoped
lang=
"scss"
>
/* @import url(); 引入css类 */
.video-cutter
{
width
:
100%
;
height
:
100%
;
width
:
100%
;
height
:
100%
;
}
.video-content
{
width
:
100%
;
height
:
700px
;
width
:
100%
;
height
:
700px
;
}
.video-btn
{
display
:
flex
;
justify-content
:
space-between
;
display
:
flex
;
justify-content
:
space-between
;
}
</
style
>
vue.config.js
View file @
aaf2c4cd
/*
* @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.env.NODE_ENV1:'
,
process
.
env
.
NODE_ENV
)
module
.
exports
=
{
// outputDir: process.env.outputDir,
// assetsDir: 'static',
publicPath
:
'/'
,
devServer
:
{
open
:
true
,
// host: '0.0.0.0',
port
:
3018
,
https
:
false
,
hotOnly
:
false
,
proxy
:
{
webapi
:
{
target
:
'https://test2.laihua.com/'
,
ws
:
true
,
changeOrigin
:
true
,
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";'
}
}
// outputDir: process.env.outputDir,
// assetsDir: 'static',
publicPath
:
'/'
,
devServer
:
{
open
:
true
,
// host: '0.0.0.0',
port
:
3018
,
https
:
false
,
hotOnly
:
false
,
proxy
:
{
webapi
:
{
target
:
'https://test2.laihua.com/'
,
ws
:
true
,
changeOrigin
:
true
,
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";'
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment