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
07dac285
Commit
07dac285
authored
Jul 15, 2021
by
liguokang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
⚡
parent
e7aadbfc
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
88 additions
and
84 deletions
+88
-84
.eslintrc.js
+3
-2
common/api/hello.js
+2
-1
common/utils/auth.js
+3
-2
common/utils/headers.js
+3
-2
common/utils/index.js
+3
-2
components/CarouselArea.jsx
+6
-5
components/Footer.jsx
+33
-50
components/SiderBar.jsx
+10
-6
pages/wheat-school/index.jsx
+6
-5
redux/action/action-types/index.js
+6
-3
redux/reducer/index.js
+6
-3
redux/store.js
+7
-3
No files found.
.eslintrc.js
View file @
07dac285
/*
* @Author: liguokang
* @Date: 2021-0
5-27 11:32:32
* @Date: 2021-0
7-14 20:38:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-1
4 20:41:52
* @LastEditTime: 2021-07-1
5 10:25:01
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
// http://eslint.org/docs/user-guide/configuring
module
.
exports
=
{
...
...
common/api/hello.js
View file @
07dac285
...
...
@@ -2,10 +2,11 @@
* @Author: liguokang
* @Date: 2021-07-14 21:28:01
* @LastEditors: liguokang
* @LastEditTime: 2021-07-1
4 21:28:39
* @LastEditTime: 2021-07-1
5 10:26:57
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import
request
from
'@/utils/request'
;
import
{
getHeaders
}
from
'@/utils/headers'
;
...
...
common/utils/auth.js
View file @
07dac285
/*
* @Author: liguokang
* @Date: 2021-0
6-03 10:01:31
* @Date: 2021-0
7-14 20:59:44
* @LastEditors: liguokang
* @LastEditTime: 2021-0
6-03 17:24:54
* @LastEditTime: 2021-0
7-15 10:25:10
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
const
appId
=
window
.
getParameterByName
(
'appid'
)
||
Cache
.
get
(
'appid'
)
||
window
.
LS
.
getItem
(
'appid'
);
export
function
getToken
()
{
...
...
common/utils/headers.js
View file @
07dac285
/*
* @Author: liguokang
* @Date: 2021-0
6-03 13:46:20
* @Date: 2021-0
7-14 20:59:44
* @LastEditors: liguokang
* @LastEditTime: 2021-0
6-16 15:24:26
* @LastEditTime: 2021-0
7-15 10:27:15
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
{
getToken
}
from
'@/utils/auth'
;
import
User
from
'@/core/user'
;
...
...
common/utils/index.js
View file @
07dac285
/*
* @Author: liguokang
* @Date: 2021-0
6-10 11:59:2
4
* @Date: 2021-0
7-14 20:59:4
4
* @LastEditors: liguokang
* @LastEditTime: 2021-07-
06 15:11:39
* @LastEditTime: 2021-07-
15 10:25:22
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
export
function
formatSecond
(
second
)
{
const
days
=
Math
.
floor
(
second
/
86400
);
const
hours
=
Math
.
floor
((
second
%
86400
)
/
3600
);
...
...
components/CarouselArea.jsx
View file @
07dac285
/*
* @Author:
zhujiape
ng
* @Date: 2021-0
6-03 16:50:59
* @Author:
liguoka
ng
* @Date: 2021-0
7-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-1
4 20:43:58
* @Description:
轮播图
* @Copyrigh
t
: ©2021 杭州杰竞科技有限公司 版权所有
* @LastEditTime: 2021-07-1
5 10:25:29
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
{
Carousel
}
from
'antd'
;
import
'./CarouselArea.less'
;
...
...
components/Footer.jsx
View file @
07dac285
/*
* @Author:
zhujiape
ng
* @Date: 2021-0
6-03 15:13:39
* @LastEditors:
zhujiape
ng
* @LastEditTime: 2021-0
6-07 14:14:29
* @Description:
页脚
* @Copyrigh
t
: ©2021 杭州杰竞科技有限公司 版权所有
* @Author:
liguoka
ng
* @Date: 2021-0
7-14 20:36:28
* @LastEditors:
liguoka
ng
* @LastEditTime: 2021-0
7-15 10:25:37
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
Link
from
'next/link'
;
import
{
useEffect
}
from
'react'
;
import
lottie
from
"lottie-web"
;
import
lottie
from
'lottie-web'
;
import
'./Footer.less'
;
interface
FooterProps
{
isTrial
?:
boolean
;
...
...
@@ -18,26 +18,25 @@ interface FooterProps {
export
default
function
Footer
(
props
:
FooterProps
)
{
useEffect
(()
=>
{
if
(
props
.
isTrial
)
{
generateAnimation
()
generateAnimation
()
;
}
},
[]);
// 生成动画
function
generateAnimation
()
{
lottie
.
loadAnimation
({
container
:
document
.
getElementById
(
"big-img-svg"
),
path
:
"https://image.xiaomaiketang.com/xm/JPpibc4xdD.json"
,
renderer
:
"svg"
,
container
:
document
.
getElementById
(
'big-img-svg'
),
path
:
'https://image.xiaomaiketang.com/xm/JPpibc4xdD.json'
,
renderer
:
'svg'
,
loop
:
true
,
autoplay
:
true
,
name
:
"Hello World"
,
name
:
'Hello World'
,
});
}
return
(
<
footer
>
{
props
.
isTrial
&&
{
props
.
isTrial
&&
(
<
div
className=
"content-module content-module-8"
>
<
div
className=
"module-model"
>
<
div
className=
"center"
>
...
...
@@ -47,11 +46,14 @@ export default function Footer(props: FooterProps) {
<
div
className=
"text"
>
体验教育信息化新模式
</
div
>
<
div
className=
"module-img"
>
<
span
className=
"btn-wrap"
>
<
div
className=
"btn-click free-trial"
id=
"btn-free-try"
<
div
className=
"btn-click free-trial"
id=
"btn-free-try"
onClick=
{
()
=>
{
// window.WEBTRACING('WebG_foot_clickEvent_clickFreeUse', 'WebG_页面底部_点击事件_点击免费试用',
{
page
:
this
.
props
.
page
})
this
.
renderModal
(
true
);
}
}
>
}
}
>
免费试用
</
div
>
</
span
>
...
...
@@ -62,7 +64,7 @@ export default function Footer(props: FooterProps) {
</
div
>
</
div
>
</
div
>
}
)
}
<
div
className=
"center"
>
<
div
className=
"footer-middle"
>
<
ul
>
...
...
@@ -73,8 +75,7 @@ export default function Footer(props: FooterProps) {
<
span
>
小麦助教
</
span
>
</
Link
>
<
Link
href=
"/cloud-class"
>
<
span
>
云课堂
</
span
>
<
span
>
云课堂
</
span
>
</
Link
>
<
Link
href=
"/xm-school-info"
>
<
span
>
小麦校讯通
</
span
>
...
...
@@ -83,7 +84,7 @@ export default function Footer(props: FooterProps) {
<
span
>
微官网
</
span
>
</
Link
>
</
div
>
<
div
className=
"fr"
style=
{
{
marginLeft
:
"30px"
}
}
>
<
div
className=
"fr"
style=
{
{
marginLeft
:
'30px'
}
}
>
<
Link
href=
"/xm-show"
>
<
span
>
小麦秀
</
span
>
</
Link
>
...
...
@@ -120,11 +121,7 @@ export default function Footer(props: FooterProps) {
<
Link
href=
"/join-us"
>
<
span
>
加入我们
</
span
>
</
Link
>
<
a
href=
"https://image.xiaomaiketang.com/xm/XGSwRGwacP.pdf"
target=
"_blank"
rel=
"noopener noreferrer"
>
<
a
href=
"https://image.xiaomaiketang.com/xm/XGSwRGwacP.pdf"
target=
"_blank"
rel=
"noopener noreferrer"
>
<
span
>
隐私声明
</
span
>
</
a
>
</
li
>
...
...
@@ -152,50 +149,36 @@ export default function Footer(props: FooterProps) {
<
div
className=
"footer-bottom"
>
<
p
>
©2015-2021
杭州杰竞科技有限公司
<
a
target=
"_blank"
rel=
"noopener noreferrer"
href=
"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010602006090"
>
<
a
target=
"_blank"
rel=
"noopener noreferrer"
href=
"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010602006090"
>
<
img
src=
"https://image.xiaomaiketang.com/xm/6mH2HnzP3k.png"
alt=
""
style=
{
{
width
:
"16px"
,
height
:
"16px"
,
display
:
"inline-block"
,
margin
:
"0 4px 0 0"
,
verticalAlign
:
"-3px"
,
width
:
'16px'
,
height
:
'16px'
,
display
:
'inline-block'
,
margin
:
'0 4px 0 0'
,
verticalAlign
:
'-3px'
,
}
}
/>
浙公网安备33010602006090号
</
a
>
<
a
style=
{
{
marginLeft
:
"20px"
}
}
target=
"_blank"
rel=
"noopener noreferrer"
href=
"https://beian.miit.gov.cn/#/Integrated/index"
>
<
a
style=
{
{
marginLeft
:
'20px'
}
}
target=
"_blank"
rel=
"noopener noreferrer"
href=
"https://beian.miit.gov.cn/#/Integrated/index"
>
浙ICP备15025826号-2
</
a
>
<
a
style=
{
{
marginLeft
:
"20px"
}
}
target=
"_blank"
rel=
"noopener noreferrer"
href=
"https://image.xiaomaiketang.com/xm/ffXeG5fXn8.jpg"
>
<
a
style=
{
{
marginLeft
:
'20px'
}
}
target=
"_blank"
rel=
"noopener noreferrer"
href=
"https://image.xiaomaiketang.com/xm/ffXeG5fXn8.jpg"
>
增值电信业务经营许可证:浙B2-20180802
</
a
>
</
p
>
<
p
>
<
span
style=
{
{
marginLeft
:
"20px"
}
}
>
教APP备3300311号
</
span
>
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
教APP备3300311号
</
span
>
<
span
style=
{
{
marginLeft
:
"20px"
}
}
>
教APP备3300313号
</
span
>
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
教APP备3300313号
</
span
>
<
span
style=
{
{
marginLeft
:
"20px"
}
}
>
教APP备3300315号
</
span
>
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
教APP备3300315号
</
span
>
</
p
>
</
div
>
</
div
>
...
...
components/SiderBar.jsx
View file @
07dac285
/*
* @Author:
zhujiape
ng
* @Date: 2021-0
6-04 14:01:52
* @Author:
liguoka
ng
* @Date: 2021-0
7-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-1
4 20:43:47
* @Description:
侧边导航栏
* @Copyrigh
t
: ©2021 杭州杰竞科技有限公司 版权所有
* @LastEditTime: 2021-07-1
5 10:25:45
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
'./SiderBar.less'
;
...
...
@@ -17,7 +17,11 @@ export default function SiderBar() {
<
p
>
咨询热线
</
p
>
<
div
className=
"content"
>
<
div
className=
"consult-img fl"
></
div
>
<
div
className=
"title fl"
>
了解产品和优惠
<
br
/>
免费拨打
</
div
>
<
div
className=
"title fl"
>
了解产品和优惠
<
br
/>
免费拨打
</
div
>
<
div
className=
"detail fl"
>
400-6677-456
</
div
>
</
div
>
</
div
>
...
...
pages/wheat-school/index.jsx
View file @
07dac285
/*
* @Description:
* @Author: zangsuyun
* @Date: 2020-07-23 13:38:22
* @Author: liguokang
* @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:15:28
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
* @LastEditTime: 2021-07-15 10:26:52
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
React
from
"react"
;
import
{
Carousel
,
Modal
}
from
"antd"
;
import
Header
from
'../../components/Header'
;
...
...
redux/action/action-types/index.js
View file @
07dac285
/*
* @Author: liguokang
* @Date: 2021-07-15 10:12:48
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:24:26
* @Description:
* @Date: 2020-03-18 18:19:52
* @LastEditTime: 2021-04-19 13:50:38
* @LastEditors: JamosLi
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
export
const
actionTypes
=
{
CHANGE_CITY
:
'CHANGE_CITY'
,
};
redux/reducer/index.js
View file @
07dac285
/*
* @Description:
* @Date: 2020-03-18 18:19:52
* @LastEditTime: 2021-07-15 10:17:35
* @Author: liguokang
* @Date: 2021-07-15 10:12:48
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:26:23
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
{
actionTypes
}
from
'../action/action-types'
;
let
initState
=
{
...
...
redux/store.js
View file @
07dac285
/*
* @Author: liguokang
* @Date: 2021-07-15 10:12:48
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:26:17
* @Description:
* @Date: 2020-03-18 18:19:52
* @LastEditTime: 2021-04-19 13:50:30
* @LastEditors: JamosLi
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import
{
createStore
}
from
'redux'
;
import
Reducer
from
'./reducer'
;
...
...
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