...
|
...
|
@@ -50,6 +50,7 @@ class CouponCenterContainer extends Component { |
|
|
this._onGetCoupon = this._onGetCoupon.bind(this);
|
|
|
this._onPromptHidden = this._onPromptHidden.bind(this);
|
|
|
this._onNetPromptHidden = this._onNetPromptHidden.bind(this);
|
|
|
this.logEvent = this.logEvent.bind(this);
|
|
|
|
|
|
// this.subscription = NativeAppEventEmitter.addListener(
|
|
|
// 'UserDidLoginEvent',
|
...
|
...
|
@@ -67,16 +68,35 @@ class CouponCenterContainer extends Component { |
|
|
// this.subscription && this.subscription.remove();
|
|
|
}
|
|
|
|
|
|
_onPressBanner(url) {
|
|
|
_onPressBanner(url, index=0, floorIndex=0, templateId='', templateName='') {
|
|
|
this.props.actions.jumpWithUrl(url);
|
|
|
|
|
|
this.logEvent(templateId, templateName, url, floorIndex, index);
|
|
|
}
|
|
|
|
|
|
_onPressImage(url) {
|
|
|
_onPressImage(url, index=0, floorIndex=0, templateId='', templateName='') {
|
|
|
this.props.actions.jumpWithUrl(url);
|
|
|
|
|
|
this.logEvent(templateId, templateName, url, floorIndex, index);
|
|
|
}
|
|
|
|
|
|
_onPressCoupon(url) {
|
|
|
_onPressCoupon(url, index=0, floorIndex=0, templateId='', templateName='') {
|
|
|
this.props.actions.jumpWithUrl(url);
|
|
|
|
|
|
this.logEvent(templateId, templateName, url, floorIndex, index);
|
|
|
}
|
|
|
|
|
|
logEvent(templateId, templateName, url, floorIndex, index) {
|
|
|
let channel = this.props.app.channel;
|
|
|
let params = {
|
|
|
C_I: channel,
|
|
|
F_ID: templateId,
|
|
|
F_NAME: templateName,
|
|
|
F_URL: url,
|
|
|
F_INDEX: (parseInt(floorIndex) + 1) + '',
|
|
|
I_INDEX: (parseInt(index) + 1) + '',
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_LEADING_CENTER_FLR_C', params);
|
|
|
}
|
|
|
|
|
|
_onGetCoupon(couponID) {
|
...
|
...
|
|