Showing
5 changed files
with
4 additions
and
14 deletions
1 | import httpService from '../../../common/httpService' | 1 | import httpService from '../../../common/httpService' |
2 | -import config from '../config' | 2 | +import config from '../../../config' |
3 | 3 | ||
4 | let conf = params => httpService.postJson(config.domain + '/api/activity/wheelSurf/conf', params); | 4 | let conf = params => httpService.postJson(config.domain + '/api/activity/wheelSurf/conf', params); |
5 | let start = params => httpService.postJson(config.domain + '/api/activity/wheelSurf/start', params); | 5 | let start = params => httpService.postJson(config.domain + '/api/activity/wheelSurf/start', params); |
app/wheelSurf/config/index.js
deleted
100644 → 0
1 | -module.exports = { | ||
2 | - production: { | ||
3 | - routerPath: '/html5/2018/10/wheelSurf', | ||
4 | - domain: 'https://action.yoho.cn' | ||
5 | - }, | ||
6 | - development: { | ||
7 | - routerPath: '/html5/test/2018/10/wheelSurf', | ||
8 | - domain: '//yoho-activity-platform.test3.ingress.dev.yohocorp.com' | ||
9 | - } | ||
10 | -}[process.env.NODE_ENV || 'development'] |
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import {render} from 'react-dom'; | 2 | import {render} from 'react-dom'; |
3 | -import config from '../../config/index'; | 3 | +import config from '../../config'; |
4 | 4 | ||
5 | import {BrowserRouter, Route, Switch, HashRouter, hashHistory, browserHistory} from 'react-router-dom'; | 5 | import {BrowserRouter, Route, Switch, HashRouter, hashHistory, browserHistory} from 'react-router-dom'; |
6 | 6 |
@@ -2,7 +2,7 @@ import React, {PureComponent} from 'react'; | @@ -2,7 +2,7 @@ import React, {PureComponent} from 'react'; | ||
2 | import './index.scss' | 2 | import './index.scss' |
3 | import {conf, start} from '../../api' | 3 | import {conf, start} from '../../api' |
4 | import yaSDK from 'yoho-activity-sdk'; | 4 | import yaSDK from 'yoho-activity-sdk'; |
5 | -import config from '../../config'; | 5 | +import config from '../../../../config'; |
6 | import cookie from 'react-cookies'; | 6 | import cookie from 'react-cookies'; |
7 | import LazyLoad from 'react-lazy-load' | 7 | import LazyLoad from 'react-lazy-load' |
8 | import { | 8 | import { |
@@ -2,7 +2,7 @@ import React, {PureComponent} from 'react'; | @@ -2,7 +2,7 @@ import React, {PureComponent} from 'react'; | ||
2 | import './index.scss' | 2 | import './index.scss' |
3 | import {prize} from '../../api'; | 3 | import {prize} from '../../api'; |
4 | import yaSDK from 'yoho-activity-sdk'; | 4 | import yaSDK from 'yoho-activity-sdk'; |
5 | -import config from '../../config'; | 5 | +import config from '../../../../config'; |
6 | import wx from 'weixin-js-sdk'; | 6 | import wx from 'weixin-js-sdk'; |
7 | import TipModal from '../components/tip-modal'; | 7 | import TipModal from '../components/tip-modal'; |
8 | import moment from 'moment'; | 8 | import moment from 'moment'; |
-
Please register or login to post a comment