Commit 4a1fd6a4 authored by 徐光星's avatar 徐光星

feat: 获取数美id

parent b52e32cc
...@@ -178,21 +178,21 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle ...@@ -178,21 +178,21 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
// 获取优惠券弹窗相关配置 // 获取优惠券弹窗相关配置
if (this.pageData?.props?.couponModal && this.pageData?.props?.couponModal.length) { if (this.pageData?.props?.couponModal && this.pageData?.props?.couponModal.length) {
const couponPushIdList = this.pageData.props.couponModal.join(','); const couponPushIdList = this.pageData.props.couponModal.join(',');
let tongdunDeviceId = '';
// 先获取同盾ID,再调用优惠券弹窗推送接口 // 先获取同盾ID,再调用优惠券弹窗推送接口
if (EASY_ENV_IS_BROWSER) { if (EASY_ENV_IS_BROWSER) {
if (isApp) { if (isApp) {
this.getCouponModalDetailReq(couponPushIdList); // app的时候通过事件获取同盾id
// // app的时候通过事件获取同盾id EventBus.$on('NATIVE_EVENT_GET_TDONGDUN_ID', res => {
// EventBus.$on('NATIVE_EVENT_GET_TDONGDUN_ID', res => { console.log('getTongdunIdInAppSuccess', JSON.stringify(res));
// console.log('getTongdunIdInAppSuccess', JSON.stringify(res)); tongdunDeviceId = res.data.tongdunDeviceId || '';
// tongdunDeviceId = res.data.tongdunDeviceId || ''; this.getCouponModalDetailReq(couponPushIdList, tongdunDeviceId);
// this.getCouponModalDetailReq(couponPushIdList, tongdunDeviceId); });
// }); const bridge = new Bridge();
// const bridge = new Bridge(); bridge.run({
// bridge.run({ event: 'getTongdunId',
// event: 'getTongdunId', data: {},
// data: {}, });
// });
} }
} }
} }
......
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