|
|
@@ -77,11 +77,17 @@ export default {
|
|
|
* @param (请求参数) {String} code 请求路径上面带的
|
|
|
* @param (请求参数) {String} merchantSign 请求路径上面带的
|
|
|
*/
|
|
|
- const res = await this.$axios.$get('/support/v5/tChannelSemInfo/getWebsiteInfo', {params});
|
|
|
+ const res = await this.$axios.$get('/public/v5/sem/channelSemInfo/getWebsiteInfo', {params});
|
|
|
|
|
|
// 查询到渠道信息后,设置页面内容显示
|
|
|
this.isShow = true; // 显示页面内容
|
|
|
this.websiteInfo = res.data; // 设置渠道信息
|
|
|
+ this.websiteInfo.code = code; // 设置渠道名称
|
|
|
+ this.websiteInfo.merchantSign = merchantSign; // 设置商户标识
|
|
|
+
|
|
|
+ this.$nextTick(()=>
|
|
|
+ this.reportSemPoint('web') // 上报埋点
|
|
|
+ )
|
|
|
} catch (error) {
|
|
|
console.error('请求渠道信息失败', error);
|
|
|
this.websiteInfo = 'none'; // 设置渠道信息为none,表示没有查询到
|
|
|
@@ -153,15 +159,15 @@ export default {
|
|
|
'web': 'website_open', // 官网打开
|
|
|
'pc': 'pc_download', // PC下载
|
|
|
'android': 'android_download', // 安卓下载
|
|
|
- 'ios': 'ios_download' // iOS下载
|
|
|
};
|
|
|
|
|
|
- let {id: semInfoId, suffixEncoding: semCode} = this.websiteInfo;
|
|
|
+ let {id: semInfoId, suffixEncoding: semCode, merchantSign} = this.websiteInfo;
|
|
|
|
|
|
- await this.$axios.$post('/support/v5/tChannelSemInfo/reportSemPoint', {
|
|
|
+ await this.$axios.$post('/public/v5/sem/channelSemInfo/reportSemPoint', {
|
|
|
pointType: em[pointType],
|
|
|
semCode, // 渠道标识
|
|
|
- semInfoId, // 获取官网落地页信息接口中返回的id
|
|
|
+ semInfoId, // 获取官网落地页信息接口中返回的id,
|
|
|
+ merchantSign, // 商户标识
|
|
|
});
|
|
|
} catch (error) {
|
|
|
console.error('上报埋点失败', error);
|