|
|
@@ -307,17 +307,17 @@ componentDidMount() { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
async routine() { |
|
|
|
routine() { |
|
|
|
hbRequestCount -=1; |
|
|
|
getAdDataCount -=1; |
|
|
|
pageChangeCount -=1; |
|
|
|
|
|
|
|
try { |
|
|
|
if (getAdDataCount<=0) { |
|
|
|
await this.getAdDataList(false) |
|
|
|
this.getAdDataList(false) |
|
|
|
getAdDataCount = heartConfig.dataRefreshInterval |
|
|
|
} else if (hbRequestCount<=0) { |
|
|
|
await this.hbRequest() |
|
|
|
this.hbRequest() |
|
|
|
hbRequestCount = heartConfig.heartbeatInterval |
|
|
|
} |
|
|
|
|
|
|
@@ -328,8 +328,8 @@ async routine() { |
|
|
|
this.setState({ contentDisplayStatus: true}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
await this.getBaseInfo() |
|
|
|
await this.getAdDataList(true) |
|
|
|
this.getBaseInfo() |
|
|
|
this.getAdDataList(true) |
|
|
|
} |
|
|
|
pageChangeCount = heartConfig.pageChangeInterval |
|
|
|
} |
|
|
@@ -423,7 +423,8 @@ getContentViewItem(contentItem, annomation) { |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<Image source={{uri:'data:image/png;base64,'+contentItem.qrcode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> |
|
|
|
{/* <Image source={{uri:'data:image/png;base64,'+contentItem.qrcode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> */} |
|
|
|
<Image source={{uri:contentItem.target.qrCode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> |
|
|
|
</View> |
|
|
|
{/* 优惠券底部商户名称 */} |
|
|
|
<View style={styles.contentItemBottom}> |
|
|
|