Authored by huangyi

新品活动,加init请求校验

... ... @@ -2,7 +2,6 @@ import React, {PureComponent} from 'react';
import './index.scss'
import {collectApi, checkFavApi} from '../../api/guochaoApi'
import {getQueryObj, linkToMiniApp, invokeMethod, parseUrl} from '../../../../../common/utils';
import {Link} from 'react-router-dom'
import wx from 'weixin-js-sdk';
import config from '../../config';
import cookie from 'react-cookies';
... ... @@ -13,7 +12,7 @@ export default class guochaoHome extends PureComponent {
super(props);
this.state = {
env: '',
storage: {},
storage: {1292:false, 282:false, 3082:false, 3372:false, 3548:false, 25:false, 3350:false, 1898:false, 1330:false, 1306:false, 1482:false, 992:false, 1474:false, 1472:false, 97:false, 1298:false, 1248:false, 3520:false, 2642:false, 964:false, 990:false, 1262:false, 1494:false, 292:false, 3146:false, 369:false, 720:false, 1282:false, 2312:false, 1878:false, 3210:false, 3576:false, 468:false, 3196:false, 1938:false, 3012:false},
display: false,
url: ''
}
... ... @@ -23,6 +22,9 @@ export default class guochaoHome extends PureComponent {
}
init = async () => {
if(!cookie.load('app_uid') || !parseInt(cookie.load('app_uid'))){
return;
}
let result = await checkFavApi({
uid: cookie.load('app_uid') || getQueryObj().uid || 0,
sessionKey: cookie.load('app_session_key') || getQueryObj().session_key || '',
... ...