Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh-order-h5
Project
Project
Details
Activity
Releases
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
李俊赕
wxh-order-h5
Commits
744eea64
Commit
744eea64
authored
May 26, 2020
by
ljd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化代码
parent
b99bf594
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
540 additions
and
497 deletions
+540
-497
.editorconfig
web/.editorconfig
+6
-0
.eslintrc.js
web/.eslintrc.js
+308
-290
babel.config.js
web/babel.config.js
+9
-9
package.json
web/package.json
+1
-1
index.js
web/src/store/index.js
+8
-8
Home.vue
web/src/views/Home.vue
+1
-1
layout.vue
web/src/views/common/layout/layout.vue
+0
-1
not-found.vue
web/src/views/common/not-found.vue
+32
-32
About.vue
web/src/views/haier/About.vue
+3
-3
goods.vue
web/src/views/haier/components/goods.vue
+154
-128
service.vue
web/src/views/haier/order/service.vue
+2
-6
vue.config.js
web/vue.config.js
+16
-18
No files found.
web/.editorconfig
View file @
744eea64
...
...
@@ -3,3 +3,9 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
web/.eslintrc.js
View file @
744eea64
This diff is collapsed.
Click to expand it.
web/babel.config.js
View file @
744eea64
module
.
exports
=
{
presets
:
[
'@vue/cli-plugin-babel/preset'
,
presets
:
[
'@vue/cli-plugin-babel/preset'
// '@vue/app',
// ['es2015', { 'modules': false }]
],
plugins
:
[[
"component"
,
{
"libraryName"
:
"mint-ui"
,
"style"
:
true
}
]]
],
plugins
:
[[
'component'
,
{
libraryName
:
'mint-ui'
,
style
:
true
}
]]
}
web/package.json
View file @
744eea64
...
...
@@ -17,7 +17,7 @@
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"~4.3.0"
,
"@vue/cli-plugin-eslint"
:
"
~4.3.0
"
,
"@vue/cli-plugin-eslint"
:
"
^4.3.1
"
,
"@vue/cli-plugin-pwa"
:
"~4.3.0"
,
"@vue/cli-plugin-router"
:
"~4.3.0"
,
"@vue/cli-plugin-vuex"
:
"~4.3.0"
,
...
...
web/src/store/index.js
View file @
744eea64
...
...
@@ -4,12 +4,12 @@ import Vuex from 'vuex'
Vue
.
use
(
Vuex
)
export
default
new
Vuex
.
Store
({
state
:
{
},
mutations
:
{
},
actions
:
{
},
modules
:
{
}
state
:
{
},
mutations
:
{
},
actions
:
{
},
modules
:
{
}
})
web/src/views/Home.vue
View file @
744eea64
<
template
>
<div
class=
"home"
>
<img
alt=
"Vue logo"
src=
"../assets/logo.png"
>
<img
alt=
"Vue logo"
src=
"../assets/logo.png"
/
>
<HelloWorld
msg=
"Welcome to Your Vue.js App"
/>
</div>
</
template
>
...
...
web/src/views/common/layout/layout.vue
View file @
744eea64
...
...
@@ -15,5 +15,4 @@ export default {
</
script
>
<
style
scoped
lang=
"less"
>
</
style
>
web/src/views/common/not-found.vue
View file @
744eea64
<
template
>
<div
class=
"page flex flex-column flex-xc"
>
<div
class=
"cnt"
>
<img
src=
"../../assets/img/app404.png"
>
<img
src=
"../../assets/img/app404.png"
/
>
<p>
您访问的页面不存在或链接错误
</p>
<!--
<a
href=
"/"
class=
"back-home"
>
回首页
</a>
-->
</div>
...
...
@@ -15,35 +15,35 @@ export default {
</
script
>
<
style
scoped
lang=
"less"
>
@import '../../assets/css/func.less'
;
.page {
width: 100%;
height: 100%;
text-align: center;
background-color: #fff;
}
.cnt {
align-items: center;
}
.cnt img {
width: px2rem(370);
}
.cnt p {
font-size: px2rem(30);
color: #999;
margin-top: px2rem(30);
}
.cnt a.back-home {
display: inline-block;
height: px2rem(66);
line-height: px2rem(66);
padding: 0 px2rem(60);
font-size: px2rem(30);
background-color: #3b81ff;
color: #fff;
border-radius: px2rem(60);
margin-top: px2rem(80);
margin-bottom: px2rem(180);
box-shadow: 0 px2rem(8) px2rem(40) 0 rgba(59,129,255,
.3);
}
@import "../../assets/css/func.less"
;
.page {
width: 100%;
height: 100%;
text-align: center;
background-color: #fff;
}
.cnt {
align-items: center;
}
.cnt img {
width: px2rem(370);
}
.cnt p {
font-size: px2rem(30);
color: #999;
margin-top: px2rem(30);
}
.cnt a.back-home {
display: inline-block;
height: px2rem(66);
line-height: px2rem(66);
padding: 0 px2rem(60);
font-size: px2rem(30);
background-color: #3b81ff;
color: #fff;
border-radius: px2rem(60);
margin-top: px2rem(80);
margin-bottom: px2rem(180);
box-shadow: 0 px2rem(8) px2rem(40) 0 rgba(59, 129, 255, 0
.3);
}
</
style
>
web/src/views/haier/About.vue
View file @
744eea64
<
template
>
<div
class=
"about"
>
<h1>
This is an about page
</h1>
</div>
<div
class=
"about"
>
<h1>
This is an about page
</h1>
</div>
</
template
>
web/src/views/haier/components/goods.vue
View file @
744eea64
This diff is collapsed.
Click to expand it.
web/src/views/haier/order/service.vue
View file @
744eea64
...
...
@@ -17,13 +17,9 @@ export default {
'mt-button'
:
Button
},
data
()
{
return
{
}
return
{}
},
mounted
()
{},
methods
:
{
}
methods
:
{}
}
</
script
>
web/vue.config.js
View file @
744eea64
const
path
=
require
(
'path'
)
;
//
引入path模块
function
resolve
(
dir
){
return
path
.
join
(
__dirname
,
dir
)
//
path.join(__dirname)设置绝对路径
const
path
=
require
(
'path'
)
//
引入path模块
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
//
path.join(__dirname)设置绝对路径
}
module
.
exports
=
{
devServer
:
{
...
...
@@ -10,23 +10,21 @@ module.exports = {
},
proxy
:
'http://localhost:8080'
},
lintOnSave
:
process
.
env
.
NODE_ENV
!==
'production'
,
chainWebpack
:
(
config
)
=>
{
//
lintOnSave: process.env.NODE_ENV !== 'production',
lintOnSave
:
true
,
chainWebpack
:
(
config
)
=>
{
// 设置别名
config
.
resolve
.
alias
.
set
(
'@'
,
resolve
(
'./src'
))
.
set
(
'components'
,
resolve
(
'./src/components'
))
//set第一个参数:设置的别名,第二个参数:设置的路径
},
chainWebpack
:
config
=>
{
.
set
(
'@'
,
resolve
(
'./src'
))
.
set
(
'components'
,
resolve
(
'./src/components'
))
config
.
module
.
rule
(
'eslint'
)
.
use
(
'eslint-loader'
)
.
loader
(
'eslint-loader'
)
.
tap
(
options
=>
{
options
.
fix
=
true
return
options
})
.
rule
(
'eslint'
)
.
use
(
'eslint-loader'
)
.
loader
(
'eslint-loader'
)
.
tap
(
options
=>
{
options
.
fix
=
true
return
options
})
// set第一个参数:设置的别名,第二个参数:设置的路径
}
}
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