Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-website-ssr-template
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liguokang
xiaomai-website-ssr-template
Commits
ff7d39e4
Commit
ff7d39e4
authored
Jul 29, 2021
by
liguokang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎨
parent
7dd2e318
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
40 deletions
+34
-40
.eslintrc.js
+26
-26
common/api/interfaces.js
+3
-5
components/layout/XMFooter/laFooter.js
+1
-2
components/layout/XMHeader/laHeader.js
+4
-7
No files found.
.eslintrc.js
View file @
ff7d39e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: liguokang
* @Author: liguokang
* @Date: 2021-07-14 20:38:28
* @Date: 2021-07-14 20:38:28
* @LastEditors: liguokang
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 1
4:10:07
* @LastEditTime: 2021-07-29 1
7:56:46
* @Description:
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -22,10 +22,10 @@ module.exports = {
...
@@ -22,10 +22,10 @@ module.exports = {
extends
:
'airbnb-base'
,
extends
:
'airbnb-base'
,
plugins
:
[
'html'
],
plugins
:
[
'html'
],
rules
:
{
rules
:
{
indent
:
[
'error'
,
2
],
indent
:
[
0
,
2
],
complexity
:
[
'error'
,
{
max
:
12
}],
complexity
:
[
0
,
{
max
:
12
}],
radix
:
0
,
radix
:
0
,
eqeqeq
:
[
0
]
,
eqeqeq
:
0
,
quotes
:
[
quotes
:
[
1
,
1
,
'single'
,
'single'
,
...
@@ -34,7 +34,7 @@ module.exports = {
...
@@ -34,7 +34,7 @@ module.exports = {
},
},
],
],
'import/extensions'
:
[
'import/extensions'
:
[
'error'
,
0
,
'always'
,
'always'
,
{
{
js
:
'never'
,
js
:
'never'
,
...
@@ -42,7 +42,7 @@ module.exports = {
...
@@ -42,7 +42,7 @@ module.exports = {
},
},
],
],
'import/no-extraneous-dependencies'
:
[
'import/no-extraneous-dependencies'
:
[
'error'
,
0
,
{
{
optionalDependencies
:
[
'test/unit/index.js'
],
optionalDependencies
:
[
'test/unit/index.js'
],
},
},
...
@@ -51,41 +51,41 @@ module.exports = {
...
@@ -51,41 +51,41 @@ module.exports = {
'global-require'
:
0
,
'global-require'
:
0
,
'no-param-reassign'
:
0
,
'no-param-reassign'
:
0
,
'no-plusplus'
:
0
,
'no-plusplus'
:
0
,
'max-nested-callbacks'
:
[
'error'
,
3
],
'max-nested-callbacks'
:
[
0
,
3
],
'max-depth'
:
[
'error'
,
5
],
'max-depth'
:
[
0
,
5
],
'max-len'
:
[
'error'
,
160
],
'max-len'
:
[
0
,
160
],
'no-nested-ternary'
:
2
,
'no-nested-ternary'
:
2
,
'no-alert'
:
process
.
env
.
NODE_ENV
===
'prod
uction
'
?
2
:
0
,
'no-alert'
:
process
.
env
.
NODE_ENV
===
'prod'
?
2
:
0
,
'no-console'
:
process
.
env
.
NODE_ENV
===
'prod
uction
'
?
2
:
0
,
'no-console'
:
process
.
env
.
NODE_ENV
===
'prod'
?
2
:
0
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'prod
uction
'
?
2
:
0
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'prod'
?
2
:
0
,
'default-case'
:
2
,
'default-case'
:
2
,
'no-shadow'
:
2
,
'no-shadow'
:
2
,
'no-underscore-dangle'
:
0
,
'no-underscore-dangle'
:
0
,
'react/react-in-jsx-scope'
:
0
,
'react/react-in-jsx-scope'
:
0
,
'class-methods-use-this'
:
0
,
'class-methods-use-this'
:
0
,
'no-restricted-syntax'
:
[
'error'
,
'LabeledStatement'
,
'WithStatement'
],
'no-restricted-syntax'
:
[
0
,
'LabeledStatement'
,
'WithStatement'
],
'object-shorthand'
:
[
0
]
,
'object-shorthand'
:
0
,
'func-names'
:
[
0
]
,
'func-names'
:
0
,
'no-unused-vars'
:
[
0
]
,
'no-unused-vars'
:
0
,
'spaced-comment'
:
[
0
]
,
'spaced-comment'
:
0
,
'prefer-template'
:
[
0
]
,
'prefer-template'
:
0
,
'prefer-arrow-callback'
:
[
0
]
,
'prefer-arrow-callback'
:
0
,
'no-use-before-define'
:
[
0
]
,
'no-use-before-define'
:
0
,
'arrow-body-style'
:
[
0
]
,
'arrow-body-style'
:
0
,
'no-lonely-if'
:
[
0
]
,
'no-lonely-if'
:
0
,
'no-unused-expressions'
:
[
0
]
,
'no-unused-expressions'
:
0
,
'guard-for-in'
:
[
0
]
,
'guard-for-in'
:
0
,
'no-dupe-keys'
:
2
,
'no-dupe-keys'
:
2
,
'no-duplicate-case'
:
2
,
'no-duplicate-case'
:
2
,
'no-dupe-args'
:
2
,
'no-dupe-args'
:
2
,
'no-dupe-class-members'
:
2
,
'no-dupe-class-members'
:
2
,
'no-unused-vars'
:
0
,
'no-unused-vars'
:
0
,
'no-var'
:
2
,
'no-var'
:
2
,
'no-empty'
:
[
0
]
,
'no-empty'
:
0
,
'space-before-function-paren'
:
0
,
'space-before-function-paren'
:
0
,
'no-else-return'
:
0
,
'no-else-return'
:
0
,
'no-new'
:
0
,
'no-new'
:
0
,
'linebreak-style'
:
[
0
,
'error'
,
'windows'
],
'linebreak-style'
:
[
0
,
0
,
'windows'
],
'comma-dangle'
:
[
'comma-dangle'
:
[
1
,
1
,
{
{
...
...
common/api/interfaces.js
View file @
ff7d39e4
...
@@ -2,19 +2,17 @@
...
@@ -2,19 +2,17 @@
* @Author: liguokang
* @Author: liguokang
* @Date: 2021-07-15 10:43:34
* @Date: 2021-07-15 10:43:34
* @LastEditors: liguokang
* @LastEditors: liguokang
* @LastEditTime: 2021-07-
15 10:44:45
* @LastEditTime: 2021-07-
29 17:54:02
* @Description:
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
*/
const
{
webDomain
,
apiDomain
}
=
require
(
'../webConfigs'
);
//线上
export
const
Interfaces
=
{
export
const
Interfaces
=
{
OnlineUrl
:
'https://'
,
OnlineUrl
:
'https://'
,
};
};
//静态图片根目录
//静态图片根目录
export
const
Static
=
''
;
export
const
StaticImg
=
apiDomain
+
''
;
export
const
StaticImg
=
''
;
export
default
Interfaces
;
export
default
Interfaces
;
components/layout/XMFooter/laFooter.js
View file @
ff7d39e4
/*
/*
* @Description:
* @Description:
* @Date: 2020-03-18 18:19:52
* @Date: 2020-03-18 18:19:52
* @LastEditTime: 2021-07-
15 11:50:36
* @LastEditTime: 2021-07-
29 17:54:33
* @LastEditors: liguokang
* @LastEditors: liguokang
*/
*/
import
React
from
'react'
;
import
React
from
'react'
;
import
LazyLoad
from
'react-lazyload'
;
import
Link
from
'next/link'
;
import
Link
from
'next/link'
;
import
{
StaticImg
}
from
'@/api/interfaces'
;
import
{
StaticImg
}
from
'@/api/interfaces'
;
import
style
from
'./laFooter.less'
;
import
style
from
'./laFooter.less'
;
...
...
components/layout/XMHeader/laHeader.js
View file @
ff7d39e4
...
@@ -2,18 +2,16 @@
...
@@ -2,18 +2,16 @@
* @Author: liguokang
* @Author: liguokang
* @Date: 2021-07-15 10:28:10
* @Date: 2021-07-15 10:28:10
* @LastEditors: liguokang
* @LastEditors: liguokang
* @LastEditTime: 2021-07-2
7 21:24:21
* @LastEditTime: 2021-07-2
9 17:54:46
* @Description:
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
*/
import
React
from
'react'
;
import
React
from
'react'
;
import
cookies
from
'react-cookies'
;
import
{
connect
}
from
'react-redux'
;
import
Link
from
'next/link'
;
import
Link
from
'next/link'
;
import
{
withRouter
}
from
'next/router
'
;
import
{
Button
}
from
'antd
'
;
import
{
StaticImg
}
from
'@/api/interfaces'
;
import
{
StaticImg
}
from
'@/api/interfaces'
;
import
style
from
'./laHeader.less'
;
import
style
from
'./laHeader.less'
;
import
{
Button
}
from
'antd'
;
class
LaHeader
extends
React
.
Component
{
class
LaHeader
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
...
@@ -68,6 +66,5 @@ class LaHeader extends React.Component {
...
@@ -68,6 +66,5 @@ class LaHeader extends React.Component {
);
);
}
}
}
}
// export default withRouter(LaHeader);
const
mapStateToProps
=
({
city
,
cityMap
})
=>
({
city
,
cityMap
});
export
default
LaHeader
;
export
default
LaHeader
;
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