| @@ -342,8 +342,11 @@ codePushStatusDidChange(syncStatus) { | |||||
| //aaa | //aaa | ||||
| this.setState({adType: num }) | this.setState({adType: num }) | ||||
| this.setState({ | this.setState({ | ||||
| merchantRankList: merchantRankList | |||||
| merchantRankList: merchantRankList, | |||||
| hasRankList: merchantRankList.length > 0 ? true:false | |||||
| }) | }) | ||||
| console.log(merchantRankList) | |||||
| console.log(this.state.hasRankList) | |||||
| //aaa | //aaa | ||||
| if (this.state.adType == 1 && this.state.hasRankList) { | if (this.state.adType == 1 && this.state.hasRankList) { | ||||
| let obj = { | let obj = { | ||||
| @@ -1557,7 +1560,7 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| }, | }, | ||||
| //排名的列表样式 | //排名的列表样式 | ||||
| rankItemBox: { | rankItemBox: { | ||||
| flex: 1, | |||||
| // flex: 1, | |||||
| flexDirection: 'row', | flexDirection: 'row', | ||||
| alignItems: 'center', | alignItems: 'center', | ||||
| width: '92%', | width: '92%', | ||||