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
971bbd47
Commit
971bbd47
authored
Dec 12, 2022
by
徐光星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整数美key
parent
4a1fd6a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
editor.api.ts
app/web/api/editor.api.ts
+1
-1
index.ts
app/web/component/layout/activity/index.ts
+2
-2
index.ts
app/web/page/activity/view/activity/index.ts
+10
-8
No files found.
app/web/api/editor.api.ts
View file @
971bbd47
...
...
@@ -50,7 +50,7 @@ export default {
return
http
.
get
(
`
${
config
.
apiHost
}
/editor/getServerTime`
);
},
get
TongDun
IdByKey
(
params
)
{
get
Shumei
IdByKey
(
params
)
{
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/fraud/getDeviceId`
,
params
);
},
};
\ No newline at end of file
app/web/component/layout/activity/index.ts
View file @
971bbd47
...
...
@@ -54,8 +54,8 @@ if (EASY_ENV_IS_BROWSER) {
if
(
json
.
event
===
'
getTokenSuccess
'
)
{
EventBus
.
$emit
(
'
NATIVE_EVENT_GET_TOKEN
'
,
json
);
}
if
(
json
.
event
===
'
get
Tongdun
IdSuccess
'
)
{
EventBus
.
$emit
(
'
NATIVE_EVENT_GET_
TDONGDUN
_ID
'
,
json
);
if
(
json
.
event
===
'
get
ShuMei
IdSuccess
'
)
{
EventBus
.
$emit
(
'
NATIVE_EVENT_GET_
SHUMEI
_ID
'
,
json
);
}
};
}
...
...
app/web/page/activity/view/activity/index.ts
View file @
971bbd47
...
...
@@ -178,30 +178,32 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
// 获取优惠券弹窗相关配置
if
(
this
.
pageData
?.
props
?.
couponModal
&&
this
.
pageData
?.
props
?.
couponModal
.
length
)
{
const
couponPushIdList
=
this
.
pageData
.
props
.
couponModal
.
join
(
'
,
'
);
let
tongdun
DeviceId
=
''
;
let
shumei
DeviceId
=
''
;
// 先获取同盾ID,再调用优惠券弹窗推送接口
if
(
EASY_ENV_IS_BROWSER
)
{
if
(
isApp
)
{
// app的时候通过事件获取同盾id
EventBus
.
$on
(
'
NATIVE_EVENT_GET_
TDONGDUN
_ID
'
,
res
=>
{
console
.
log
(
'
get
Tongdun
IdInAppSuccess
'
,
JSON
.
stringify
(
res
));
tongdunDeviceId
=
res
.
data
.
tongdun
DeviceId
||
''
;
this
.
getCouponModalDetailReq
(
couponPushIdList
,
tongdun
DeviceId
);
EventBus
.
$on
(
'
NATIVE_EVENT_GET_
SHUMEI
_ID
'
,
res
=>
{
console
.
log
(
'
get
ShuMei
IdInAppSuccess
'
,
JSON
.
stringify
(
res
));
shumeiDeviceId
=
res
.
data
.
shumei
DeviceId
||
''
;
this
.
getCouponModalDetailReq
(
couponPushIdList
,
shumei
DeviceId
);
});
const
bridge
=
new
Bridge
();
bridge
.
run
({
event
:
'
get
Tongdun
Id
'
,
event
:
'
get
ShuMei
Id
'
,
data
:
{},
});
}
}
}
}
,
async
getCouponModalDetailReq
(
couponPushIdList
)
{
}
async
getCouponModalDetailReq
(
couponPushIdList
,
shumeiDeviceId
)
{
// 获取推送弹窗数据
shumeiDeviceId
=
shumeiDeviceId
||
''
;
if
(
!
couponPushIdList
)
{
return
;
}
const
[
res
,
err
]
=
await
modalApi
.
getCouponModal
({
couponPushIdList
,
shumeiDeviceId
});
if
(
err
)
{
return
;
}
if
(
res
&&
Object
.
keys
(
res
).
length
)
{
...
...
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