├── comUtils ├── request.js ├── axios.js ├── transforms.js └── api-requester.js ├── components ├── Nav_L.js ├── Nav_R.js ├── view │ ├── Nav_L.js │ ├── Nav_R.js │ ├── Footer.js │ ├── Layout.js │ └── Header.js ├── next-seo │ ├── utils │ │ └── markup.js │ ├── index.js │ ├── meta │ │ ├── defaultSEO.jsx │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── buildTags.test.jsx.snap │ │ │ └── buildTags.test.jsx │ │ └── buildTags.jsx │ └── jsonld │ │ ├── course.jsx │ │ ├── blog.jsx │ │ └── article.jsx ├── Footer.js ├── Layout.js ├── Header.js └── order-kefu │ ├── index.js │ └── style.css ├── pages ├── active │ ├── _componentsA.js │ └── index.js ├── error.js ├── _app.js ├── _document.js ├── index.js └── _error.js ├── .vscode └── settings.json ├── .next ├── static │ ├── webpack │ │ └── d2f734234e2340b8923b.hot-update.json │ ├── chunks │ │ ├── 0.js.map │ │ ├── 0.js │ │ ├── styles.js.map │ │ └── styles.js │ └── css │ │ └── static │ │ └── development │ │ └── pages │ │ ├── index.js.chunk.css.map │ │ └── index.js.chunk.css ├── server │ ├── ssr-module-cache.js │ ├── pages-manifest.json │ └── static │ │ └── development │ │ └── pages │ │ ├── _document.js.map │ │ ├── _error.js.map │ │ ├── _error.js │ │ ├── _document.js │ │ ├── _app.js.map │ │ └── index.js.map ├── react-loadable-manifest.json └── build-manifest.json ├── .gitignore ├── asserts ├── css │ ├── antd-custom.less │ ├── footer.less │ ├── styles.less │ ├── home.less │ ├── kefu.less │ ├── reset.css │ └── header.less └── images │ ├── header.jpg │ ├── page-1.jpg │ ├── page-2.jpg │ ├── page-3.jpg │ ├── page-4.jpg │ ├── page-5.jpg │ └── page-6.jpg ├── static ├── images │ ├── ssr.jpg │ ├── ssr1.jpg │ ├── header.jpg │ ├── logoh2.png │ ├── page-1.jpg │ ├── page-2.jpg │ ├── page-3.jpg │ ├── page-4.jpg │ ├── page-5.jpg │ └── page-6.jpg ├── js │ ├── kefu.js │ └── jquery.fullPage.min.js └── css │ └── jquery.fullPage.css ├── .babelrc ├── config └── index.js ├── stores ├── index.js ├── home │ └── index.js └── withStore.js ├── env ├── .env.testing ├── .env.development └── .env.production ├── seo ├── base-seo.js └── home-seo.js ├── next.config.js ├── README.md ├── package.json └── server.js /comUtils/request.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/Nav_L.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/Nav_R.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/view/Nav_L.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/view/Nav_R.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pages/active/_componentsA.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "git.ignoreLimitWarning": true 3 | } -------------------------------------------------------------------------------- /.next/static/webpack/d2f734234e2340b8923b.hot-update.json: -------------------------------------------------------------------------------- 1 | {"h":"585e2fe9d9d571bad90a","c":{}} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .vscode 3 | *.log 4 | package-lock.json 5 | yarn.lock 6 | node_modules/* 7 | .next/ 8 | -------------------------------------------------------------------------------- /asserts/css/antd-custom.less: -------------------------------------------------------------------------------- 1 | @primary-color: #fff; 2 | @layout-header-height: 40px; 3 | @border-radius-base: 0px; 4 | -------------------------------------------------------------------------------- /components/next-seo/utils/markup.js: -------------------------------------------------------------------------------- 1 | const markup = jsonld => ({ __html: jsonld }); 2 | 3 | export default markup; 4 | -------------------------------------------------------------------------------- /static/images/ssr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/ssr.jpg -------------------------------------------------------------------------------- /static/images/ssr1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/ssr1.jpg -------------------------------------------------------------------------------- /.next/static/chunks/0.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"static/chunks/0.js","sources":[],"mappings":";;;;;;;;;;;;;;A","sourceRoot":""} -------------------------------------------------------------------------------- /asserts/images/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/header.jpg -------------------------------------------------------------------------------- /asserts/images/page-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/page-1.jpg -------------------------------------------------------------------------------- /asserts/images/page-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/page-2.jpg -------------------------------------------------------------------------------- /asserts/images/page-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/page-3.jpg -------------------------------------------------------------------------------- /asserts/images/page-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/page-4.jpg -------------------------------------------------------------------------------- /asserts/images/page-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/page-5.jpg -------------------------------------------------------------------------------- /asserts/images/page-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/asserts/images/page-6.jpg -------------------------------------------------------------------------------- /static/images/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/header.jpg -------------------------------------------------------------------------------- /static/images/logoh2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/logoh2.png -------------------------------------------------------------------------------- /static/images/page-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/page-1.jpg -------------------------------------------------------------------------------- /static/images/page-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/page-2.jpg -------------------------------------------------------------------------------- /static/images/page-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/page-3.jpg -------------------------------------------------------------------------------- /static/images/page-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/page-4.jpg -------------------------------------------------------------------------------- /static/images/page-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/page-5.jpg -------------------------------------------------------------------------------- /static/images/page-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1degrees/next-react-mobx-antd-boilerplate/HEAD/static/images/page-6.jpg -------------------------------------------------------------------------------- /.next/server/ssr-module-cache.js: -------------------------------------------------------------------------------- 1 | 2 | /* This cache is used by webpack for instantiated modules */ 3 | module.exports = {} 4 | -------------------------------------------------------------------------------- /asserts/css/footer.less: -------------------------------------------------------------------------------- 1 | @import "~antd/dist/antd.less"; 2 | @import "./antd-custom.less"; 3 | @import "./header.less"; 4 | @import "./footer.less"; -------------------------------------------------------------------------------- /components/Footer.js: -------------------------------------------------------------------------------- 1 | import Head from 'next/head' 2 | 3 | export default () => ( 4 |
12 | {this.props.statusCode 13 | ? `An error ${this.props.statusCode} occurred on server` 14 | : 'An error occurred on client'} 15 |
16 | ) 17 | } 18 | } -------------------------------------------------------------------------------- /asserts/css/styles.less: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xiao·Zhang 3 | * @Date: 2018-08-09 11:03:25 4 | * @Last Modified by: xiao·Zhang 5 | * @Last Modified time: 2018-10-10 11:57:54 6 | * @file: 页面CSS汇总样式文件 7 | */ 8 | 9 | @import "./reset.css"; 10 | @import "~antd/dist/antd.less"; 11 | @import "./antd-custom.less"; 12 | @import "./home.less"; 13 | @import "./header.less"; 14 | @import "./kefu.less"; 15 | 16 | li { 17 | list-style: none; 18 | } 19 | 20 | .link { 21 | display: inline-block; 22 | margin: 2px 6px; 23 | font-size: 14px; 24 | color:blue; 25 | cursor: pointer; 26 | } 27 | 28 | .hide { 29 | display: none !important; 30 | } -------------------------------------------------------------------------------- /components/next-seo/meta/defaultSEO.jsx: -------------------------------------------------------------------------------- 1 | import Head from 'next/head'; 2 | import PropTypes from 'prop-types'; 3 | import React from 'react'; 4 | import buildTags from './buildTags'; 5 | 6 | class DefaultSeo extends React.Component { 7 | constructor(props) { 8 | super(props); 9 | if (!props.config) { 10 | throw new Error('[next-seo] You must supply an SEO configuration'); 11 | } 12 | } 13 | 14 | render() { 15 | const { config } = this.props; 16 | return {buildTags(config)}; 17 | } 18 | } 19 | 20 | DefaultSeo.propTypes = { 21 | config: PropTypes.object.isRequired, 22 | }; 23 | 24 | export default DefaultSeo; 25 | -------------------------------------------------------------------------------- /seo/base-seo.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "title": '万师傅-中国领先的家居服务平台|家具、卫浴、灯具等配送安装维修网', 3 | "Content-Type": 'text/html; charset=utf-8', 4 | "X-UA-Compatible": 'IE=edge,chrome=1', 5 | "force-rendering": 'webkit', 6 | "renderer" : 'webkit', 7 | "viewport": 'width=device-width, initial-scale=1', 8 | "keywords": '家具拆装,家具配送,家具安装,家具维修', 9 | "description": '万师傅是全国专业家居售后服务网站,提供【家具】【晾衣架】【灯具】【卫浴】【 墙纸地毯】的拆装,搬运等服务担保交易;师傅覆盖全国600多个城市,快速,便捷,省钱,有保障!', 10 | "360-site-verification" : '5dda074586814ec11ca818e715f3f8d0', 11 | "google-site-verification" : 'uSG4Wt-p0CWw3m75z9xAKV-LH_QEyVTe-W1el-wrjv8', 12 | "author": "zhangxiao@wshifu.com", 13 | }; -------------------------------------------------------------------------------- /pages/active/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component }from 'react' 2 | import Router, { withRouter } from 'next/router' 3 | import Layout from '@components/view/Layout.js' 4 | 5 | class Index extends Component { 6 | static getInitialProps({ req, res, err }) { 7 | console.log('第二个页面getInitialProps') 8 | const statusCode = res ? res.statusCode : err ? err.statusCode : null; 9 | return { statusCode } 10 | } 11 | 12 | render() { 13 | return ( 14 |3分钟内收到师傅报价
平均5个报价可选择
任务得到完美解决