Commit dbe07d3a by Sweet Zhang

分享码保存

parent bf4dcee8
......@@ -36,6 +36,9 @@ export class AppComponent implements OnInit {
};
sessionStorage.setItem('campaignInfo', JSON.stringify(campaignInfo));
}
if (this.commonService.getQueryString('shareCode')) {
sessionStorage.setItem('shareCode', this.commonService.getQueryString('shareCode'))
}
this.orderQuery(orderId);
}
......
......@@ -174,6 +174,7 @@ export class LiveComponent implements OnInit {
survey: {
customerId: sessionStorage.getItem('customerId'),
orderId: sessionStorage.getItem('orderId'),
shareCode: sessionStorage.getItem('shareCode'),
pages: this.commonService.todosCopy
},
ipInfo: {
......
......@@ -66,7 +66,7 @@ export class TransitComponent implements OnInit {
// 默认的分享信息
const shareData = {
title: 'AI智能保险顾问',
link: `${environment.hostName}/questionnaire/#/index?campaign=AIRobot&task=AItask1`,
link: `${environment.hostName}/questionnaire/#/index?campaign=AIRobot&task=AItask1&shareCode=${shareCode.shareCode}`,
desc: 'AI智能家庭风险评测 、实时保障方案推荐。一分钟、搞定家庭保险。',
imgUrl: 'https://ajb-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/9/ydshare.jpg',
success: function () {
......
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