Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks-h5
Commits
4a1fd6a4
Commit
4a1fd6a4
authored
Dec 12, 2022
by
徐光星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 获取数美id
parent
b52e32cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
index.ts
app/web/page/activity/view/activity/index.ts
+12
-12
No files found.
app/web/page/activity/view/activity/index.ts
View file @
4a1fd6a4
...
@@ -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: {},
});
// });
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment