Commit 5056bf49 authored by 徐光星's avatar 徐光星

Merge branch 'feat/1229' into 'master'

Feat/1229

See merge request !104
parents 68b03549 f85ad4d8
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
return http.get(`${config.apiHost}/editor/getServerTime`); return http.get(`${config.apiHost}/editor/getServerTime`);
}, },
getTongDunIdByKey(params) { getShumeiIdByKey(params) {
return http.post(`${config.kdspHost}/api/kdsp/fraud/getDeviceId`, params); return http.post(`${config.kdspHost}/api/kdsp/fraud/getDeviceId`, params);
}, },
}; };
\ No newline at end of file
...@@ -54,9 +54,9 @@ if (EASY_ENV_IS_BROWSER) { ...@@ -54,9 +54,9 @@ if (EASY_ENV_IS_BROWSER) {
if (json.event === 'getTokenSuccess') { if (json.event === 'getTokenSuccess') {
EventBus.$emit('NATIVE_EVENT_GET_TOKEN', json); EventBus.$emit('NATIVE_EVENT_GET_TOKEN', json);
} }
// if (json.event === 'getTongdunIdSuccess') { if (json.event === 'getShuMeiIdSuccess') {
// EventBus.$emit('NATIVE_EVENT_GET_TDONGDUN_ID', json); EventBus.$emit('NATIVE_EVENT_GET_SHUMEI_ID', json);
// } }
}; };
} }
@Component({ @Component({
......
...@@ -178,30 +178,32 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle ...@@ -178,30 +178,32 @@ 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(',');
// 先获取同盾ID,再调用优惠券弹窗推送接口 let shumeiDeviceId = '';
// 先获取数美ID,再调用优惠券弹窗推送接口
if (EASY_ENV_IS_BROWSER) { if (EASY_ENV_IS_BROWSER) {
if (isApp) { if (isApp) {
this.getCouponModalDetailReq(couponPushIdList); // TODO 接入小程序数美id,app的时候通过事件获取数美id, 因优惠券弹窗暂时不在小程序弹出,故搁置
// // app的时候通过事件获取同盾id EventBus.$on('NATIVE_EVENT_GET_SHUMEI_ID', res => {
// EventBus.$on('NATIVE_EVENT_GET_TDONGDUN_ID', res => { console.log('getShuMeiIdInAppSuccess', JSON.stringify(res));
// console.log('getTongdunIdInAppSuccess', JSON.stringify(res)); shumeiDeviceId = res.data.shumeiDeviceId || '';
// tongdunDeviceId = res.data.tongdunDeviceId || ''; this.getCouponModalDetailReq(couponPushIdList, shumeiDeviceId);
// this.getCouponModalDetailReq(couponPushIdList, tongdunDeviceId); });
// }); const bridge = new Bridge();
// const bridge = new Bridge(); bridge.run({
// bridge.run({ event: 'getShuMeiId',
// event: 'getTongdunId', data: {},
// data: {}, });
// });
} }
} }
} }
}, }
async getCouponModalDetailReq(couponPushIdList) { async getCouponModalDetailReq(couponPushIdList, shumeiDeviceId) {
// 获取推送弹窗数据 // 获取推送弹窗数据
shumeiDeviceId = shumeiDeviceId || '';
if (!couponPushIdList) { return; } if (!couponPushIdList) { return; }
const [res, err] = await modalApi.getCouponModal({ const [res, err] = await modalApi.getCouponModal({
couponPushIdList, couponPushIdList,
shumeiDeviceId
}); });
if (err) { return; } if (err) { return; }
if (res && Object.keys(res).length) { if (res && Object.keys(res).length) {
......
...@@ -2367,9 +2367,9 @@ ...@@ -2367,9 +2367,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.3.61", "version": "0.3.62",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.61.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.62.tgz",
"integrity": "sha512-RHwiyabltYgokRdtn/3WoDaS+zJ2bpdjyOwzaHDkSOy2DNhxWcD3gsOBidiYWewZy3sS1BRbKKk7NMw5vTSocg==", "integrity": "sha512-3GQaG9i/SnmMOOHz/NahuSB8o9t2xtTbXxmX9k5MdU4PJsFApqfN2cjLAEeKqq9/0O+d/AT+Aj/JfUHKVU6m4A==",
"requires": { "requires": {
"@better-scroll/core": "^2.1.1", "@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.23.9", "@qg/cherry-ui": "^2.23.9",
...@@ -23214,9 +23214,9 @@ ...@@ -23214,9 +23214,9 @@
} }
}, },
"sa-sdk-javascript": { "sa-sdk-javascript": {
"version": "1.24.6", "version": "1.24.7",
"resolved": "http://npmprivate.quantgroups.com/sa-sdk-javascript/-/sa-sdk-javascript-1.24.6.tgz", "resolved": "http://npmprivate.quantgroups.com/sa-sdk-javascript/-/sa-sdk-javascript-1.24.7.tgz",
"integrity": "sha512-5X/45Il9bnEAR1i8p2E/ATSZgsVKYAQ07vPv9gIJO5sVZLdYNAtNedHUWCyqsXFDbRehuKP7XR0Ma4gDXE2Qww==" "integrity": "sha512-8ESvUdrHSjCJ8sOAWWi9RG3nmvrN/ZrWMFml1GlsHRyKRn5SD6gbEgtmEOVd85DXMtB/RV3CQ7W1Iwh7/0kg7g=="
}, },
"safe-buffer": { "safe-buffer": {
"version": "5.2.1", "version": "5.2.1",
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