Commit a5c99714 authored by Xuguangxing's avatar Xuguangxing

fix

parent f58e66b9
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
type="primary" type="primary"
shape="circle" shape="circle"
:disabled="disabled" :disabled="disabled"
@click="createOrJoin(1)" @click="createOrJoin(2)"
>自己做团长</cr-button >自己做团长</cr-button
> >
<cr-button <cr-button
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
}, },
createOrJoin(mark) { createOrJoin(mark) {
// 参团 // 参团
// mark 1-> 开团 2-> 参团 // mark 1-> 开团 0-> 参团 2->自己做团长
this.$emit('buy', mark); this.$emit('buy', mark);
} }
} }
......
...@@ -207,6 +207,7 @@ import Bridge from '@qg/js-bridge'; ...@@ -207,6 +207,7 @@ import Bridge from '@qg/js-bridge';
import MpBridge from '@/service/mp'; import MpBridge from '@/service/mp';
import { isWxMp, isApp } from '@/service/validation.service'; import { isWxMp, isApp } from '@/service/validation.service';
import { EventBus } from '@/service/utils.service'; import { EventBus } from '@/service/utils.service';
import { saTrackEvent } from '@/service/sa.service';
export default { export default {
// eslint-disable-next-line vue/name-property-casing // eslint-disable-next-line vue/name-property-casing
name: 'goodDetail', name: 'goodDetail',
...@@ -370,13 +371,22 @@ export default { ...@@ -370,13 +371,22 @@ export default {
}, },
// ka渠道逻辑 // ka渠道逻辑
goVccOrDetail(res) { goVccOrDetail(res) {
const buttonNameMap = {
0: '立即参团',
1: '立即开团',
2: '自己做团长'
};
if (!this.hasLogin) { if (!this.hasLogin) {
this.checkLogin(); this.checkLogin();
return; return;
} }
if (res == 1) { if (res == 1 || res == 2) {
localStorage.remove('groupBuyGroupId'); // 开团或者自己做团长的时候需要移除groupBuyGroupId,再去调下单 localStorage.remove('groupBuyGroupId'); // 开团或者自己做团长的时候需要移除groupBuyGroupId,再去调下单
} }
saTrackEvent('H5_GroupZeroYuanPurchaseActivityDetailPageBtnClick', {
sku_no: this.detailInfo.skuNo,
buttons_name: buttonNameMap[res]
});
this.toOrder(); this.toOrder();
}, },
setStartStatus(data) { setStartStatus(data) {
...@@ -588,6 +598,14 @@ export default { ...@@ -588,6 +598,14 @@ export default {
}, },
handleParamsClick(eventType, name) { handleParamsClick(eventType, name) {
if (this.isPrimordialBrowser) return; if (this.isPrimordialBrowser) return;
if (eventType == 'sku') {
saTrackEvent(
'H5_GroupZeroYuanPurchaseActivityDetailPageSpecificationSelectionPopupConfirmBtnClick',
{
sku_no: this.detailInfo.skuNo
}
);
}
this.currentPopupType = eventType; this.currentPopupType = eventType;
this.currentPopupName = name; this.currentPopupName = name;
switch (eventType) { switch (eventType) {
......
...@@ -83,7 +83,7 @@ import { handleRemainTime, handleDateFormat } from './components/utils'; ...@@ -83,7 +83,7 @@ import { handleRemainTime, handleDateFormat } from './components/utils';
import localStorage from '@/service/localStorage.service'; import localStorage from '@/service/localStorage.service';
import goodsCheckMixin from '@/mixins/goodsCheck.mixin'; import goodsCheckMixin from '@/mixins/goodsCheck.mixin';
import { setAppTitleColor, EventBus } from '@/service/utils.service'; import { setAppTitleColor, EventBus } from '@/service/utils.service';
// import { registeredEvents } from '@/service/sa.service'; import { saTrackEvent } from '@/service/sa.service';
import { isNull } from '@/service/validation.service'; import { isNull } from '@/service/validation.service';
let topicIndex; let topicIndex;
export default { export default {
...@@ -192,6 +192,9 @@ export default { ...@@ -192,6 +192,9 @@ export default {
// registeredEvents('H5_GroupZeroYuanPurchaseActivityPageSharePopupBtnClick', { // registeredEvents('H5_GroupZeroYuanPurchaseActivityPageSharePopupBtnClick', {
// activity_id // activity_id
// }); // });
saTrackEvent('H5_GroupZeroYuanPurchaseActivityPageSharePopupBtnClick', {
activity_id: this.activityId
});
}, },
async getShareData() { async getShareData() {
const { const {
......
...@@ -58,6 +58,7 @@ import { HAS_DISCOUNT } from '@/constants/order'; ...@@ -58,6 +58,7 @@ import { HAS_DISCOUNT } from '@/constants/order';
import cookies from '@/service/cookieStorage.service'; import cookies from '@/service/cookieStorage.service';
import { isApp, isWxMp } from '@/service/validation.service'; import { isApp, isWxMp } from '@/service/validation.service';
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { saTrackEvent } from '@/service/sa.service';
export default { export default {
name: 'CreateOrder', name: 'CreateOrder',
components: { components: {
...@@ -178,6 +179,9 @@ export default { ...@@ -178,6 +179,9 @@ export default {
}); });
return; return;
} }
saTrackEvent('H5_UserClickOrderConfirmPageSubmitOrderBtnClick', {
order_type: '0元购'
});
const { const {
addrReceiverInfo: { addrReceiverId: receiverId }, addrReceiverInfo: { addrReceiverId: receiverId },
calcFeeInfo: { totalFreightFee, totalPayFee: totalFee }, calcFeeInfo: { totalFreightFee, totalPayFee: totalFee },
......
...@@ -130,6 +130,7 @@ import { ...@@ -130,6 +130,7 @@ import {
kaGetNextUrl, kaGetNextUrl,
reissueContract reissueContract
} from '@/api/pay.api.js'; } from '@/api/pay.api.js';
import { saTrackEvent } from '@/service/sa.service';
const VCC_CHANNEL = localStorage.get('vccChannel'); const VCC_CHANNEL = localStorage.get('vccChannel');
let Current_Url = null; let Current_Url = null;
export default { export default {
...@@ -409,6 +410,9 @@ export default { ...@@ -409,6 +410,9 @@ export default {
} }
this.reissueContract(); this.reissueContract();
} }
saTrackEvent('H5_CheckOutCounterConfirmPayBtnClick', {
order_type: '0元购'
});
this.accountS.fn(); this.accountS.fn();
}, 1000), }, 1000),
/* 预支付 */ /* 预支付 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment