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
32588175
Commit
32588175
authored
Aug 03, 2021
by
Jamos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎨
parent
d35e1579
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
common/api/interfaces.js
+1
-1
common/webConfigs.js
+7
-8
components/layout/XMFooter/laFooter.js
+2
-1
script.js
+3
-2
sitemap/sitemap.html
+1
-2
No files found.
common/api/interfaces.js
View file @
32588175
...
...
@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-15 10:43:34
* @LastEditors: liguokang
* @LastEditTime: 2021-0
7-29 17:54
:02
* @LastEditTime: 2021-0
8-03 20:30
:02
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
...
...
common/webConfigs.js
View file @
32588175
...
...
@@ -2,27 +2,26 @@
* @Author: liguokang
* @Date: 2021-07-29 16:19:43
* @LastEditors: liguokang
* @LastEditTime: 2021-0
7-29 16:46:20
* @LastEditTime: 2021-0
8-03 20:29:54
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
cons
t
DEPLOY_ENV
=
process
.
env
.
DEPLOY_ENV
;
le
t
DEPLOY_ENV
=
process
.
env
.
DEPLOY_ENV
;
const
webDomain
=
{
const
webDomain
s
=
{
dev
:
'https://dev.xiaomai5.com/'
,
rc
:
'https://rc.xiaomai5.com/'
,
gray
:
'https://rc.xiaomai5.com/'
,
prod
:
'https://www.xiaomai5.com/'
,
};
const
apiDomain
=
{
const
apiDomain
s
=
{
dev
:
'https://dev-heimdall.xiaomai5.com/'
,
rc
:
'https://rc-heimdall.xiaomai5.com/'
,
gray
:
'https://gray-heimdall.xiaomai5.com/'
,
prod
:
'https://heimdall.xiaomai5.com/'
,
};
let
webDomain
=
webDomains
[
DEPLOY_ENV
];
let
apiDomain
=
apiDomains
[
DEPLOY_ENV
];
exports
.
DOMAIN
=
{
webDomain
:
webDomain
[
DEPLOY_ENV
],
apiDomain
:
apiDomain
[
DEPLOY_ENV
],
};
export
{
webDomain
,
apiDomain
};
components/layout/XMFooter/laFooter.js
View file @
32588175
/*
* @Description:
* @Date: 2020-03-18 18:19:52
* @LastEditTime: 2021-0
7-29 17:54:33
* @LastEditTime: 2021-0
8-03 20:00:07
* @LastEditors: liguokang
*/
import
React
from
'react'
;
...
...
@@ -17,6 +17,7 @@ class LaFooter extends React.Component {
<
Link
href
=
"/"
>
<
div
className
=
{
style
.
title_item
}
>
<
span
>
底部底部底部底部底部
<
/span
>
{
StaticImg
+
'tttttttttttttttttttt'
}
<
img
src
=
{
StaticImg
+
'/logo.png'
}
width
=
{
121
}
alt
=
""
/>
<
/div
>
<
/Link
>
...
...
script.js
View file @
32588175
...
...
@@ -2,17 +2,18 @@
* @Author: liguokang
* @Date: 2021-07-29 16:14:30
* @LastEditors: liguokang
* @LastEditTime: 2021-0
7-29 16:46:12
* @LastEditTime: 2021-0
8-03 20:30:47
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
const
fs
=
require
(
'fs'
);
const
{
webDomain
,
apiDomain
}
=
require
(
'./common/webConfigs'
);
const
readStream
=
fs
.
createReadStream
(
'./sitemap/sitemap.html'
,
{
encoding
:
'utf8'
});
const
writeStream
=
fs
.
createWriteStream
(
'./dist/sitemap.html'
,
{
encoding
:
'utf8'
});
console
.
log
(
webDomain
,
apiDomain
,
'222222222222222222222222222222222222222222222222222222222222'
);
readStream
.
on
(
'data'
,
(
data
)
=>
{
let
reData
=
data
.
replace
(
/https
\:\/\/
www
\.
xiaomai5
\.
com
\/
/g
,
webDomain
);
reData
=
reData
.
replace
(
/https
\:\/\/
heimdall
\.
xiaomai5
\.
com
\/
/g
,
apiDomain
);
...
...
sitemap/sitemap.html
View file @
32588175
...
...
@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-29 16:15:00
* @LastEditors: liguokang
* @LastEditTime: 2021-0
7-29 16:16:0
8
* @LastEditTime: 2021-0
8-03 20:19:3
8
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
-->
...
...
@@ -175,7 +175,6 @@
contentType
:
'application/json;charset=UTF-8'
,
dataType
:
'json'
,
success
:
function
(
data
){
console
.
log
(
data
)
let
rows
=
[];
if
(
data
.
result
&&
data
.
result
.
records
)
{
for
(
let
i
of
data
.
result
.
records
)
{
...
...
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