Commit 810821db authored by beisir's avatar beisir

feat:合并分享

parents b656f1da 8ab8ad42
import config from '@/config'; import config from '@/config';
import http from '@/service/httpDecorator'; import http from '@/service/httpDecorator';
import qs from 'qs';
const { talosHost } = config; const { talosHost } = config;
export default { export default {
...@@ -54,7 +55,8 @@ export default { ...@@ -54,7 +55,8 @@ export default {
}, },
// 获取小程序码 // 获取小程序码
getQrcodeUrl(params) { getQrcodeUrl(params) {
return http.get(`${talosHost}/api/kdsp/playBill/getMakePicData`, params); const qsString = qs.stringify(params);
return http.get(`${talosHost}/api/kdsp/playBill/getMakePicData?${qsString}`);
}, },
getGroupShareInfo(orderNo) { getGroupShareInfo(orderNo) {
return http.get(`${talosHost}/api/kdsp/groupShareInfo?orderNo=${orderNo}`); return http.get(`${talosHost}/api/kdsp/groupShareInfo?orderNo=${orderNo}`);
......
import config from '@/config'; import config from '@/config';
import http from '@/service/httpDecorator'; import http from '@/service/httpDecorator';
import { uiTrack } from '@/service/sa.service'; import { saDeviceId } from '@/service/sa.service';
const { talosHost } = config; const { talosHost } = config;
const PAGE = 'home'; const PAGE = 'home';
export const getBanner = () => { export const getBanner = () => {
...@@ -13,7 +13,7 @@ export const getContent = () => { ...@@ -13,7 +13,7 @@ export const getContent = () => {
}; };
export const getGoodsList = async data => { export const getGoodsList = async data => {
const scDeviceId = await uiTrack.run('saDeviceId'); const scDeviceId = await saDeviceId();
return http.get(`${talosHost}/api/kdsp/recommend/goods-list`, { return http.get(`${talosHost}/api/kdsp/recommend/goods-list`, {
params: data, params: data,
customHeader: { customHeader: {
...@@ -23,7 +23,7 @@ export const getGoodsList = async data => { ...@@ -23,7 +23,7 @@ export const getGoodsList = async data => {
}; };
export const homeSearch = async data => { export const homeSearch = async data => {
const scDeviceId = await uiTrack.run('saDeviceId'); const scDeviceId = await saDeviceId();
return http.post(`${talosHost}/api/kdsp/search/result`, data, { return http.post(`${talosHost}/api/kdsp/search/result`, data, {
customHeader: { customHeader: {
scDeviceId scDeviceId
......
import request from '@/service/httpDecorator'; import request from '@/service/httpDecorator';
import config from '@/config'; import config from '@/config';
import { uiTrack } from '@/service/sa.service'; import { saDeviceId } from '@/service/sa.service';
const { talosHost } = config; const { talosHost } = config;
const queryPayInfo = function(data) { const queryPayInfo = function(data) {
return request.post(`${talosHost}/open/checkout`, data); return request.post(`${talosHost}/open/checkout`, data);
}; };
const prepay = async function(data) { const prepay = async function(data) {
const scDeviceId = await uiTrack.run('saDeviceId'); const scDeviceId = await saDeviceId();
return request.post(`${talosHost}/open/checkout/prepay`, data, { return request.post(`${talosHost}/open/checkout/prepay`, data, {
customHeader: { customHeader: {
scDeviceId scDeviceId
...@@ -17,7 +17,7 @@ const prepay = async function(data) { ...@@ -17,7 +17,7 @@ const prepay = async function(data) {
}; };
const pay = async function(data) { const pay = async function(data) {
const scDeviceId = await uiTrack.run('saDeviceId'); const scDeviceId = await saDeviceId();
return request.post(`${talosHost}/open/checkout/pay`, data, { return request.post(`${talosHost}/open/checkout/pay`, data, {
customHeader: { customHeader: {
scDeviceId scDeviceId
...@@ -43,7 +43,7 @@ const h5AppyUrl = function() { ...@@ -43,7 +43,7 @@ const h5AppyUrl = function() {
}; };
const getCoupon = async function(params) { const getCoupon = async function(params) {
const scDeviceId = await uiTrack.run('saDeviceId'); const scDeviceId = await saDeviceId();
return request.post(`${talosHost}/open/checkout/pay_coupon_list`, params, { return request.post(`${talosHost}/open/checkout/pay_coupon_list`, params, {
customHeader: { customHeader: {
scDeviceId scDeviceId
...@@ -56,7 +56,7 @@ const ocrFaceId = function(params) { ...@@ -56,7 +56,7 @@ const ocrFaceId = function(params) {
}; };
const getGoodsList = async function(data) { const getGoodsList = async function(data) {
const scDeviceId = await uiTrack.run('saDeviceId'); const scDeviceId = await saDeviceId();
return request.get(`${talosHost}/vcc/xyqb/recommend/goods-list`, { return request.get(`${talosHost}/vcc/xyqb/recommend/goods-list`, {
params: data, params: data,
hideLoading: true, hideLoading: true,
......
src/assets/images/defeat.png

11.7 KB | W: | H:

src/assets/images/defeat.png

12.7 KB | W: | H:

src/assets/images/defeat.png
src/assets/images/defeat.png
src/assets/images/defeat.png
src/assets/images/defeat.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -59,6 +59,10 @@ export default { ...@@ -59,6 +59,10 @@ export default {
}, },
mounted() { mounted() {
EventBus.$on('goods_share_info', ({ shareInfo, type }) => { EventBus.$on('goods_share_info', ({ shareInfo, type }) => {
if (!isApp && !isWxMp) {
this.tipDialogMessage();
return;
}
this.type = type; this.type = type;
if (typeof shareInfo === 'object') { if (typeof shareInfo === 'object') {
this.sharePicData = shareInfo; this.sharePicData = shareInfo;
...@@ -211,6 +215,14 @@ export default { ...@@ -211,6 +215,14 @@ export default {
} }
}; };
this.nativeBridge.showShareView(data); this.nativeBridge.showShareView(data);
},
tipDialogMessage() {
this.$dialog({
message: '请在App或小程序中进行分享~',
title: '',
showCancelButton: false,
confirmButtonText: '我知道了'
});
} }
} }
}; };
......
...@@ -129,8 +129,8 @@ export default { ...@@ -129,8 +129,8 @@ export default {
console.log(err); console.log(err);
}, },
complete({ hash }) { complete({ hash }) {
console.log('success', config.qiniuHost, hash);
const fileLink = config.qiniuHost + hash; const fileLink = config.qiniuHost + hash;
console.log('pic create success', fileLink);
_this.$emit('outputPicUrl', fileLink); _this.$emit('outputPicUrl', fileLink);
} }
}; };
......
...@@ -17,6 +17,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页 ...@@ -17,6 +17,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰 // const talosHost = 'http://192.168.25.122:8098'; // 王永杰
// const talosHost = protocol + '//192.168.28.41'; // 超人 // const talosHost = protocol + '//192.168.28.41'; // 超人
const opapiHost = 'https://opapi-test1.liangkebang.net'; const opapiHost = 'https://opapi-test1.liangkebang.net';
const shenceUrl = protocol + '//bn.xyqb.com/sa?project=default';
const VCC_CHANNEL = ''; const VCC_CHANNEL = '';
const TERMINAL = 'H5'; const TERMINAL = 'H5';
const VERSION = '7.9.00'; const VERSION = '7.9.00';
...@@ -32,5 +33,6 @@ export default { ...@@ -32,5 +33,6 @@ export default {
TERMINAL, TERMINAL,
VERSION, VERSION,
kdspHost, kdspHost,
opapiHost opapiHost,
shenceUrl
}; };
...@@ -10,6 +10,7 @@ const kdspHost = 'https://kdsp-api.q-gp.com'; ...@@ -10,6 +10,7 @@ const kdspHost = 'https://kdsp-api.q-gp.com';
const opapiHost = `${protocol}//opapi.xyqb.com`; const opapiHost = `${protocol}//opapi.xyqb.com`;
// const localHost = 'https://mall.q-gp.com/group-buying'; // 正式环境页面地址 // const localHost = 'https://mall.q-gp.com/group-buying'; // 正式环境页面地址
const localHost = 'https://group-buy-test1.liangkebang.net'; // 正式环境页面地址 const localHost = 'https://group-buy-test1.liangkebang.net'; // 正式环境页面地址
const shenceUrl = protocol + '//bn.xyqb.com/sa?project=production';
export default { export default {
localHost, localHost,
// apiHost, // apiHost,
...@@ -22,5 +23,6 @@ export default { ...@@ -22,5 +23,6 @@ export default {
VERSION, VERSION,
qiniuHost, qiniuHost,
kdspHost, kdspHost,
opapiHost opapiHost,
shenceUrl
}; };
...@@ -21,7 +21,7 @@ if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production') ...@@ -21,7 +21,7 @@ if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production')
.install(); .install();
} }
Vue.prototype.util = new Bridge(); Vue.prototype.util = new Bridge();
Vue.prototype.$track = saService;
saService.init(router); saService.init(router);
Vue.use(lazyload); Vue.use(lazyload);
Vue.config.productionTip = false; Vue.config.productionTip = false;
......
import Vue from 'vue'; import Vue from 'vue';
import sa from 'sa-sdk-javascript'; import sa from 'sa-sdk-javascript';
import config from '@/config'; import config from '@/config';
// +==========================
import UiTrack from '@qg/ui-track-web/src/index.js';
import router from '@/router';
import { getVccChannel } from '@/service/userInfo.service';
export const uiTrack = new UiTrack({
globalVars: {
platformType: 'H5',
parent_channel_id: getVccChannel('vccChannel') || '',
son_channel_id: getVccChannel('sonVccChannel') || ''
},
useUweb: false,
shenceHost: config.shenceHost,
showLog: config.test,
router: router // router实例
});
// +============+============
export default { export default {
init: function(router) { init: function(router) {
sa.init({ sa.init({
server_url: config.shenceHost, server_url: config.shenceUrl,
heatmap: { heatmap: {
//是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭 // 是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭
clickmap: 'default', clickmap: 'default',
//是否开启触达注意力图,默认 default 表示开启,自动采集 $WebStay 事件,可以设置 'not_collect' 表示关闭 // 关闭触达注意力
scroll_notice_map: 'default' scroll_notice_map: 'not_collect'
}, },
//判断外层是否有 App 的 SDK ,如果有的话,会往 App 的 SDK 发数据。如果没有,就正常发送数据。 // TODO: app是如何判断的
use_app_track: true, // 判断外层是否有 App 的 SDK ,如果有的话,会往 App 的 SDK 发数据。如果没有,就正常发送数据。
show_log: config.test, use_app_track: false,
app_js_bridge: true show_log: config.env === 'test'
}); });
// 添加公共属性 // 添加公共属性
sa.registerPage({ sa.registerPage({ platformType: 'H5' });
platformType: 'H5',
uuid: '',
qg_device_id: '',
channel_code: '',
splitStream: ''
});
router.afterEach(() => { router.afterEach(() => {
Vue.nextTick(() => { Vue.nextTick(() => {
sa.quick('autoTrackSinglePage'); sa.quick('autoTrackSinglePage');
...@@ -48,16 +27,9 @@ export default { ...@@ -48,16 +27,9 @@ export default {
}); });
} }
}; };
export function registeredEvents(eventName, eventData, callback = () => {}) { export function saTrackEvent(name, data) {
sa.track(eventName, eventData, callback); sa.track(name, data);
}
// 用户登录神策埋点
export function loginSa(uuid = localStorage.get('uuid')) {
if (!uuid) return;
localStorage.set('uuid', uuid);
sa.login(uuid);
} }
export function saDeviceId() { export function saDeviceId() {
return new Promise(resolve => { return new Promise(resolve => {
sa.quick('isReady', function() { sa.quick('isReady', function() {
...@@ -65,3 +37,7 @@ export function saDeviceId() { ...@@ -65,3 +37,7 @@ export function saDeviceId() {
}); });
}); });
} }
// 设置公共属性
export function setRegisterPage(registerPageObj) {
sa.registerPage(registerPageObj);
}
...@@ -43,6 +43,18 @@ ...@@ -43,6 +43,18 @@
.goods { .goods {
&-share-button{
width: 40px;
height: 40px;
position: fixed;
right: 0;
bottom: 120px;
z-index: 3;
/deep/ img {
width: 40px;
height: 40px;
}
}
&-container { &-container {
padding-bottom: 60px; padding-bottom: 60px;
box-sizing: border-box; box-sizing: border-box;
......
<template> <template>
<div v-if="showPage" class="goods" style="height: 100%"> <div v-if="showPage" class="goods" style="height: 100%">
<div class="goods-share-button">
<cr-image
src="@/assets/images/share-icon.png"
width=""
height=""
class="goods-share-button-img"
/>
</div>
<!-- 主体 --> <!-- 主体 -->
<div class="goods-container"> <div class="goods-container">
<!-- 轮播图 --> <!-- 轮播图 -->
......
...@@ -167,8 +167,8 @@ ...@@ -167,8 +167,8 @@
width: 80px; width: 80px;
height: 80px; height: 80px;
position: absolute; position: absolute;
right: -3px; right: -13px;
top: -20px; top: -18px;
z-index: 2; z-index: 2;
} }
} }
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
/> />
</div> </div>
</div> </div>
<bottom-nav v-if="showButtonNav" :status="2" :disabled="false" @share="shareTo" /> <bottom-nav v-if="showButtonNav" :status="2" :disabled="false" @share="setShareData" />
<sharePic ref="sharePic" :share-pic-data="sharePicData" @outputPicUrl="outputPicUrl" /> <sharePic ref="sharePic" :share-pic-data="sharePicData" @outputPicUrl="outputPicUrl" />
</div> </div>
</template> </template>
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
this.shareInfo = { this.shareInfo = {
title: this.detailInfo.goodsName, title: this.detailInfo.goodsName,
desc: '', desc: '',
link: link || '', // 页面地址 link: config.localHost + link || '', // 页面地址
imgUrl: this.detailInfo.thumbImageUrl, // 图片地 imgUrl: this.detailInfo.thumbImageUrl, // 图片地
posterUrl: res || '' posterUrl: res || ''
}; };
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</dl> </dl>
</template> </template>
<script> <script>
import { registeredEvents } from '@/service/sa.service'; import { saTrackEvent } from '@/service/sa.service';
export default { export default {
name: 'GoodsCard', name: 'GoodsCard',
props: { props: {
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
} = this.goodsItem; } = this.goodsItem;
const { s } = this.btnByStatus; const { s } = this.btnByStatus;
if (s === 2) { if (s === 2) {
registeredEvents('H5_GroupZeroYuanPurchaseActivityPageOpenGroupImmediatelyBtnClick', { saTrackEvent('H5_GroupZeroYuanPurchaseActivityPageOpenGroupImmediatelyBtnClick', {
skuNo skuNo
}); });
this.$router.push({ this.$router.push({
......
...@@ -115,9 +115,7 @@ export default { ...@@ -115,9 +115,7 @@ export default {
isShowShare() { isShowShare() {
return this.$store.state.pay.isPrimordialBrowser; return this.$store.state.pay.isPrimordialBrowser;
}, },
goodsShareInfo() {
return this.$store.state.pay.goodsShareInfo;
},
isShowSwiper() { isShowSwiper() {
const { hasStart, hasStop } = this.goodsTemp; const { hasStart, hasStop } = this.goodsTemp;
return (!hasStart && !hasStop) || (hasStart && hasStop); return (!hasStart && !hasStop) || (hasStart && hasStop);
...@@ -131,14 +129,6 @@ export default { ...@@ -131,14 +129,6 @@ export default {
return +new Date(endTime || 0); return +new Date(endTime || 0);
} }
}, },
watch: {
goodsShareInfo: {
immediate: false,
handler(val) {
this.$route.name === 'groupBuyList' && this.onShareEventChange(val);
}
}
},
created() { created() {
this.reload = true; this.reload = true;
}, },
...@@ -203,27 +193,6 @@ export default { ...@@ -203,27 +193,6 @@ export default {
// activity_id // activity_id
// }); // });
}, },
async onShareEventChange({ ev, nativeBridge }) {
const vm = this;
let shareDic = await vm.getShareData();
if (ev === 'pic') {
nativeBridge.openNewUrl({
newUrl: `/pages/goodshare/index?url=${encodeURIComponent(
JSON.stringify(shareDic.posterUrl)
)}`
});
}
if (ev === 'weixin') {
// 分享朋友派发微信postMessage事件
nativeBridge.run({
event: 'showShareView',
data: {
shareDic
}
});
}
},
async getShareData() { async getShareData() {
const { const {
sharePosterTemplateUrl, sharePosterTemplateUrl,
......
...@@ -116,7 +116,6 @@ export default { ...@@ -116,7 +116,6 @@ export default {
if (addressList) { if (addressList) {
this.handleAddressChange(addressList); this.handleAddressChange(addressList);
} }
// this.$track.registeredEvents('H5_2B_OrderConfirmPageExposure');
}, },
handleToAddress() { handleToAddress() {
if (this.orderInfo.addrReceiverInfo) { if (this.orderInfo.addrReceiverInfo) {
......
...@@ -101,7 +101,7 @@ import countDown from '@/components/countDown'; ...@@ -101,7 +101,7 @@ import countDown from '@/components/countDown';
import { isWxMp, isApp } from '@/service/validation.service'; import { isWxMp, isApp } from '@/service/validation.service';
import Bridge from '@qg/js-bridge'; import Bridge from '@qg/js-bridge';
import MpBridge from '@/service/mp'; import MpBridge from '@/service/mp';
import { registeredEvents } from '@/service/sa.service'; import { saTrackEvent } from '@/service/sa.service';
import groupBuyApi from '@/api/groupBuy'; import groupBuyApi from '@/api/groupBuy';
export default { export default {
name: 'OrderSkuList', name: 'OrderSkuList',
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
// this.shareInfo = skuInfo; // this.shareInfo = skuInfo;
// this.$store.dispatch('goods_share_open'); // this.$store.dispatch('goods_share_open');
registeredEvents('H5_MyPuzzlePageGroupOrderBtnClick', { saTrackEvent('H5_MyPuzzlePageGroupOrderBtnClick', {
sku_no: '', sku_no: '',
leader_user_id: '' leader_user_id: ''
}); });
......
import cookies from '@/service/cookieStorage.service'; import cookies from '@/service/cookieStorage.service';
export const goUrlExtends = { export const goUrlExtends = {
methods: { methods: {
goHome(payStatus) { goHome() {
// 商城地址 // 商城地址
if (payStatus) {
this.$track?.registeredEvents('h5_RechargeResultPageClick', {
pay_status: payStatus,
buttons_name: '返回首页'
});
}
setTimeout(() => { setTimeout(() => {
this.$router.replace({ name: 'home' }); this.$router.replace({ name: 'home' });
}, 500); }, 500);
}, },
goOrderList(payStatus) { goOrderList() {
if (payStatus) {
this.$track?.registeredEvents('h5_RechargeResultPageClick', {
pay_status: payStatus,
buttons_name: '查看订单'
});
}
setTimeout(() => { setTimeout(() => {
this.$router.replace({ name: 'orderList', params: { status: 0 } }); this.$router.replace({ name: 'orderList', params: { status: 0 } });
}, 500); }, 500);
......
...@@ -124,7 +124,7 @@ import { ...@@ -124,7 +124,7 @@ import {
import { import {
pay, pay,
prepay, prepay,
// getCoupon, getCoupon,
ocrFaceId, ocrFaceId,
queryPayInfo, queryPayInfo,
kaGetNextUrl, kaGetNextUrl,
...@@ -227,12 +227,10 @@ export default { ...@@ -227,12 +227,10 @@ export default {
// 先支付再查询信息 // 先支付再查询信息
this.pay(this.payInfo?.paramsData, 'ocr', cookies.get('ocrflag')); this.pay(this.payInfo?.paramsData, 'ocr', cookies.get('ocrflag'));
} }
// !this.$route?.query?.ocrflag && this.$track?.registeredEvents('h5_CheckOutCouterExposure');
const vccToken = localStorage.get('vccToken'); const vccToken = localStorage.get('vccToken');
Current_Url = `${window.location.origin}/payWaiting?vccToken=${vccToken}&orderNo=${this.orderNo}`; Current_Url = `${window.location.origin}/payWaiting?vccToken=${vccToken}&orderNo=${this.orderNo}`;
this.queryPayInfo(); this.queryPayInfo();
// this.getCouponList(this.orderNo); this.getCouponList(this.orderNo);
// this.$track.registeredEvents('H5_2B_CashierPageExposure');
}, },
methods: { methods: {
/* 查询支付信息 */ /* 查询支付信息 */
...@@ -380,22 +378,22 @@ export default { ...@@ -380,22 +378,22 @@ export default {
} }
}, },
/* 获取优惠券信息 */ /* 获取优惠券信息 */
// async getCouponList(orderNo) { async getCouponList(orderNo) {
// const [data] = await getCoupon({ orderNo: orderNo }); const [data] = await getCoupon({ orderNo: orderNo });
// this.payCouponList = []; this.payCouponList = [];
// if (data && data.coupons) { if (data && data.coupons) {
// data.coupons.forEach(item => { data.coupons.forEach(item => {
// // 享花券 // 享花券
// if (item.couponCategory === 21) { if (item.couponCategory === 21) {
// this.payCouponList.push({ this.payCouponList.push({
// ...item, ...item,
// id: item.pickupId, id: item.pickupId,
// pickupAble: 1 pickupAble: 1
// }); });
// } }
// }); });
// } }
// }, },
nextAction: throttle(function() { nextAction: throttle(function() {
const trackParams = { const trackParams = {
order_id: this.orderNo, order_id: this.orderNo,
...@@ -404,8 +402,6 @@ export default { ...@@ -404,8 +402,6 @@ export default {
buttons_name: this.accountS.text buttons_name: this.accountS.text
}; };
cookies.set('payTrackInfo', trackParams); cookies.set('payTrackInfo', trackParams);
// this.$track?.registeredEvents('h5_CheckOutCounterConfirmPayClick', trackParams);
// this.$track?.registeredEvents('H5_2BCashierPageConfirmPaymentBtnClick', trackParams);
if (this.isShowProtocol) { if (this.isShowProtocol) {
if (!this.isCheckAgreement) { if (!this.isCheckAgreement) {
this.$toast('请仔细阅读并同意相关协议'); this.$toast('请仔细阅读并同意相关协议');
...@@ -562,15 +558,9 @@ export default { ...@@ -562,15 +558,9 @@ export default {
openCouponModal() { openCouponModal() {
this.random = Math.random(); this.random = Math.random();
this.couponPopup = true; this.couponPopup = true;
// this.$track?.registeredEvents('h5_CheckOutCouterCouponBannerClick');
}, },
/* 选取优惠券 */ /* 选取优惠券 */
handleSelectCoupon(id, selectedCoupon) { handleSelectCoupon(id, selectedCoupon) {
// this.$track?.registeredEvents('h5_CheckOutCounterCouponPopupWindowClick', {
// coupon_type: '享花券',
// check_or_not: id ? '勾选' : '取消',
// coupon_id: id
// });
this.selectedCoupon = selectedCoupon || {}; this.selectedCoupon = selectedCoupon || {};
this.getBtnStatus(this.isRiskLimit()); this.getBtnStatus(this.isRiskLimit());
this.couponPopup = false; this.couponPopup = false;
......
...@@ -172,7 +172,9 @@ export default { ...@@ -172,7 +172,9 @@ export default {
return this.$toast('获取分享数据失败'); return this.$toast('获取分享数据失败');
} }
this.sharePicData = res; this.sharePicData = res;
this.$refs.sharePic.createAndUploadPic(); this.$nextTick(() => {
this.$refs.sharePic.createAndUploadPic();
});
}, },
goPage(type) { goPage(type) {
if (type == 1) { if (type == 1) {
......
...@@ -60,28 +60,12 @@ export default { ...@@ -60,28 +60,12 @@ export default {
} }
}, },
mounted() { mounted() {
this.$track?.registeredEvents('h5_RechargeResultPageExposure', {
pay_status: '正在支付'
});
const amount = cookies.get('amount') || {};
const payTrackInfo = cookies.get('payTrackInfo') || {};
this.$track?.registeredEvents('H5_2BPaymentPageExposure', {
order_no: this.orderNo,
pay_result: '正在支付',
vcc_state: payTrackInfo.vcc_state,
pay_method: payTrackInfo.pay_method,
pay_amount: amount.finalAmt
});
this.$dialog({ this.$dialog({
message: '请确认订单已完成支付', message: '请确认订单已完成支付',
confirmButtonText: '已完成支付', confirmButtonText: '已完成支付',
cancelButtonText: '重新支付', cancelButtonText: '重新支付',
confirmButtonColor: '#EC1500', confirmButtonColor: '#EC1500',
onCancel: () => { onCancel: () => {
this.$track?.registeredEvents('h5_RechargeResultPageClick', {
pay_status: '正在支付',
buttons_name: '重新支付'
});
this.goPay(); this.goPay();
}, },
onConfirm: () => { onConfirm: () => {
......
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