提交 040d2ee4 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/zl' into 'develop'

data source

See merge request !96
...@@ -241,7 +241,8 @@ export default { ...@@ -241,7 +241,8 @@ export default {
extraData: JSON.stringify({}) extraData: JSON.stringify({})
}, },
openWebAppBtnName: '报告解读', openWebAppBtnName: '报告解读',
yunOrderNo: '' yunOrderNo: '',
action_code: ''
}; };
}, },
created() { created() {
...@@ -260,7 +261,7 @@ export default { ...@@ -260,7 +261,7 @@ export default {
targetPath: 'pagesInsurance/all-entrance/index', targetPath: 'pagesInsurance/all-entrance/index',
query: {yunOrderNo: this.yunOrderNo}, query: {yunOrderNo: this.yunOrderNo},
}; };
that.openWebAppConfig.path = `pagesInsurance/all-entrance/index?yunOrderNo=${this.yunOrderNo}&channelSource=channelSource`; let jump_path = `pagesInsurance/all-entrance/index?yunOrderNo=${this.yunOrderNo}&channelSource=channelSource`;
getDetectionDetail(this.detectionRecordId).then((res) => { getDetectionDetail(this.detectionRecordId).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.dataDetail = res.data; this.dataDetail = res.data;
...@@ -269,16 +270,23 @@ export default { ...@@ -269,16 +270,23 @@ export default {
let n = ''; let n = '';
if(inquiryStatus == 0) { if(inquiryStatus == 0) {
// ed.targetPath = '/pages/consultation-info/consultation/index'; // ed.targetPath = '/pages/consultation-info/consultation/index';
this.action_code = 'bottomBtnFun2';
jump_path = jump_path + '&action_code=bottomBtnFun2';
n = '报告解读'; n = '报告解读';
}else if([4, 6].includes(inquiryStatus)) { }else if([4, 6].includes(inquiryStatus)) {
n = '查看专家建议'; n = '查看专家建议';
this.action_code = 'getAdvice';
jump_path = jump_path + '&action_code=getAdvice';
// ed.targetPath = '/pages/health/detection-detail/index'; // ed.targetPath = '/pages/health/detection-detail/index';
}else { }else {
n = '已预约待咨询'; n = '已预约待咨询';
this.action_code = 'goIm';
jump_path = jump_path + '&action_code=goIm';
// ed.targetPath = '/pages/consultation-im/index?initTRTC=false'; // ed.targetPath = '/pages/consultation-im/index?initTRTC=false';
} }
that.openWebAppConfig.extraData = JSON.stringify(ed); that.openWebAppConfig.extraData = JSON.stringify(ed);
that.openWebAppBtnName = n; that.openWebAppBtnName = n;
that.openWebAppConfig.path = jump_path;
} else { } else {
that.$toast(res.message); that.$toast(res.message);
} }
...@@ -324,7 +332,7 @@ export default { ...@@ -324,7 +332,7 @@ export default {
if(this.picaWechat == 'wechat') { if(this.picaWechat == 'wechat') {
return false; return false;
} }
const query = `channelSource=insurance_channel&yunOrderNo=${this.yunOrderNo}`; const query = `channelSource=insurance_channel&yunOrderNo=${this.yunOrderNo}&action_code=${this.action_code}`;
const p = {params:{path:'pagesInsurance/all-entrance/index', query:query}, type: 2}; const p = {params:{path:'pagesInsurance/all-entrance/index', query:query}, type: 2};
getJumpToWebapp(p).then(res => { getJumpToWebapp(p).then(res => {
console.log('--res', res); console.log('--res', res);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册