Authored by 张文文

活动规则链接跳转修改

... ... @@ -48,14 +48,13 @@ export default class InviteYoho extends Component {
_renderHeader() {
let { resourceInfo } = this.props;
let imgHeight = 0, imageUrl = '', url = '';
let imgHeight = 0, imageUrl = '';
resourceInfo.resourceList && resourceInfo.resourceList.forEach(item => {
item = item && item.toJS();
if (item.template_name === 'splitJointImg' && item.data) {
imageUrl = item.data.src;
url = item.data.urls[0];
let imageWidth = item.image_width;
let imageHeight = item.image_height;
... ... @@ -68,7 +67,7 @@ export default class InviteYoho extends Component {
<View style={styles.topImageView}>
<YH_Image url={YH_Image.getSlicedUrl(imageUrl, width, imgHeight, 2)} resizeMode={'stretch'} style={{ width: width, height: imgHeight}}/>
<TouchableOpacity activeOpacity={1} style={styles.activityStyle} onPress={() => {
this.props.jumpToResourceUrl && this.props.jumpToResourceUrl(url);
this.props.jumpToResourceUrl && this.props.jumpToResourceUrl();
}}>
</TouchableOpacity>
</View>
... ...
... ... @@ -54,11 +54,9 @@ class InviteYohoListContainer extends Component {
this.props.actions.queryInviteYohoList();
}
_jumpToResourceUrl(url) {
if (!url) {
return
}
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
_jumpToResourceUrl() {
let url = 'https://activity.yoho.cn/feature/534.html?share_id=6768&title=推手新用户注册返佣';
ReactNative.NativeModules.YH_CommonHelper.goLinkUrl(url);
}
_shareForInvite() {
... ...