From 6ef52468cf92ec68ea7900f9fe62c32a34787dbd Mon Sep 17 00:00:00 2001 From: wiwi <973366510@qq.com> Date: Wed, 15 Aug 2018 15:42:17 +0800 Subject: [PATCH] update --- server/helpers/.conf.json => .conf.json | 6 +- package.json | 2 +- src/pages/index.tsx | 456 ++++++++++++------------ 3 files changed, 232 insertions(+), 232 deletions(-) rename server/helpers/.conf.json => .conf.json (86%) diff --git a/server/helpers/.conf.json b/.conf.json similarity index 86% rename from server/helpers/.conf.json rename to .conf.json index 9e91fd7..34340af 100644 --- a/server/helpers/.conf.json +++ b/.conf.json @@ -1,3 +1,3 @@ -{ - "opne": true -} +{ + "opne": true +} diff --git a/package.json b/package.json index 77b3fd1..129fd99 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "dev": "rimraf \"config/.conf.json\" && rimraf \"src/next.config.js\" && cpx \"server/helpers/.conf.json\" \"config/\" && nodemon server/index.ts", + "dev": "rimraf \"config/.conf.json\" && rimraf \"src/next.config.js\" && cpx \".conf.json\" \"config/\" && nodemon server/index.ts", "dev:eslint": "cross-env ANALYZE=ESLINT next src", "build": "cpx \"config/next.config.js\" \"src/\" -C && delay 1 && npm run next:build && rimraf \"src/next.config.js\"", "next:build": "next build src && tsc --project tsconfig.server.json", diff --git a/src/pages/index.tsx b/src/pages/index.tsx index e9c34b8..053b057 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,228 +1,228 @@ -// This is the Link API -import React, { Component } from 'react' -import Layout from '../index' - -class Index extends Component { - /*static async getInitialProps({ req }) { - const userAgent = req ? req.headers['user-agent'] : navigator.userAgent - return { userAgent } - }*/ - constructor (props) { - super(props) - this.state = { - partner: [ - {name: '唯品会', img: 'weipinhui.png'}, - {name: '严选', img: 'yanxuan.png'}, - {name: '1药网', img: '1yaowang.png'}, - {name: '玩途旅行', img: 'wantuo.png'}, - {name: '百丽', img: 'baili.png'}, - {name: '罗森', img: 'lousen.png'}, - {name: '大润发', img: 'darunfa.png'}, - {name: '票牛', img: 'piaoniu.png'}, - {name: '春播', img: 'cunbo.png'}, - {name: '典典养车', img: 'diandian.png'}, - {name: '宝贝在书里', img: 'baobei.png'}, - {name: '来伊份', img: 'laiyifen.png'}, - {name: '1居', img: 'yiju.png'}, - {name: '洒老板', img: 'jiulaoban.png'}, - {name: '知我药妆', img: 'zhiwo.png'}, - {name: '爱启健康', img: 'aiqi.png'}, - {name: '中民', img: 'zhongming.png'}, - {name: '联华超市', img: 'lianhua.png'} - ] - } - } - render () { - return ( - -
-
-
-
- -
-
专享权益
-
专属的价格体系,配套服务与活动策划
-
-
-
- -
-
弹性福利
-
风度多样的自选福利,加以话消费场景全覆盖
-
-
-
- -
-
兜礼积分通
-
多平台多渠道无障碍的一站式购物体验
-
-
-
- -
-
新媒体服务
-
具有阅读性以及传播量的原创公众自媒体品牌
-
-
-
- - -
-
团建活动服务
-
具有参与性、互动性以及影响力整体活动管理服务
-
-
-
-
- -
-
互联网+应用服务
-
进行量身定制的工会互联网+平台技术翻新服务
-
-
-
-
-
-
竞争优势
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
服务案例
-
- -
-
-
    -
  • 宝钢金属
  • -
  • 宝钢特钢
  • -
  • 宝钢技术
  • -
  • 宝钢化工
  • -
  • 宝钢工程
  • -
  • 更多团建案例
  • -
-
-
-
-
-
合作伙伴
-
-
-
    - { - this.state.partner.map((item, index) => { - return
  • {item.name}/
  • - }) - } -
-
-
-
- - -
- ) - } -} - -export default Index +// This is the Link API +import React, { Component } from 'react' +import Layout from '../index' + +class Index extends Component { + /*static async getInitialProps({ req }) { + const userAgent = req ? req.headers['user-agent'] : navigator.userAgent + return { userAgent } + }*/ + constructor (props) { + super(props) + this.state = { + partner: [ + {name: '唯品会', img: 'weipinhui.png'}, + {name: '严选', img: 'yanxuan.png'}, + {name: '1药网', img: '1yaowang.png'}, + {name: '玩途旅行', img: 'wantuo.png'}, + {name: '百丽', img: 'baili.png'}, + {name: '罗森', img: 'lousen.png'}, + {name: '大润发', img: 'darunfa.png'}, + {name: '票牛', img: 'piaoniu.png'}, + {name: '春播', img: 'cunbo.png'}, + {name: '典典养车', img: 'diandian.png'}, + {name: '宝贝在书里', img: 'baobei.png'}, + {name: '来伊份', img: 'laiyifen.png'}, + {name: '1居', img: 'yiju.png'}, + {name: '洒老板', img: 'jiulaoban.png'}, + {name: '知我药妆', img: 'zhiwo.png'}, + {name: '爱启健康', img: 'aiqi.png'}, + {name: '中民', img: 'zhongming.png'}, + {name: '联华超市', img: 'lianhua.png'} + ] + } + } + render () { + return ( + +
+
+
+
+ +
+
专享权益
+
专属的价格体系,配套服务与活动策划
+
+
+
+ +
+
弹性福利
+
风度多样的自选福利,加以话消费场景全覆盖
+
+
+
+ +
+
兜礼积分通
+
多平台多渠道无障碍的一站式购物体验
+
+
+
+ +
+
新媒体服务
+
具有阅读性以及传播量的原创公众自媒体品牌
+
+
+
+ + +
+
团建活动服务
+
具有参与性、互动性以及影响力整体活动管理服务
+
+
+
+
+ +
+
互联网+应用服务
+
进行量身定制的工会互联网+平台技术翻新服务
+
+
+
+
+
+
竞争优势
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
服务案例
+
+ +
+
+
    +
  • 宝钢金属
  • +
  • 宝钢特钢
  • +
  • 宝钢技术
  • +
  • 宝钢化工
  • +
  • 宝钢工程
  • +
  • 更多团建案例
  • +
+
+
+
+
+
合作伙伴
+
+
+
    + { + this.state.partner.map((item, index) => { + return
  • {item.name}/
  • + }) + } +
+
+
+
+ + +
+ ) + } +} + +export default Index