Commit 33a178a0 by wangshuo

判断ccode

parent 1a831b1b
...@@ -45,6 +45,7 @@ class App extends Component { ...@@ -45,6 +45,7 @@ class App extends Component {
componentWillMount() { componentWillMount() {
let url = window.location.href; let url = window.location.href;
if(url.indexOf('ccode') > -1) { if(url.indexOf('ccode') > -1) {
console.log(decodeURIComponent(getParam('ccode')));
if(decodeURIComponent(getParam('ccode')) != '') { if(decodeURIComponent(getParam('ccode')) != '') {
cookie.set('ccode', getParam('ccode'), { expires: 1, domain: '.julyedu.com', path: '/' }) cookie.set('ccode', getParam('ccode'), { expires: 1, domain: '.julyedu.com', path: '/' })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment