医生分享功能完善-0714
parent
46e4476736
commit
2202e3d916
|
@ -83,24 +83,16 @@
|
|||
}
|
||||
},
|
||||
onShareAppMessage(e) {
|
||||
if(e.from == 'menu'){
|
||||
if(this.shareImg!==''){
|
||||
let shareObj = {
|
||||
title: this.doctorObj.doctor_extra.name,
|
||||
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
imageUrl: this.$hostApi + this.shareImg,
|
||||
};
|
||||
return shareObj;
|
||||
}else{
|
||||
let shareObj = {
|
||||
title: this.doctorObj.doctor_extra.name,
|
||||
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
}
|
||||
}
|
||||
if(e.from == 'button'){
|
||||
if(this.shareImg!==''){
|
||||
let shareObj = {
|
||||
title: this.doctorObj.doctor_extra.name,
|
||||
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
imageUrl: this.$hostApi + this.shareImg,
|
||||
};
|
||||
return shareObj;
|
||||
}else{
|
||||
let shareObj = {
|
||||
title: this.doctorObj.doctor_extra.name,
|
||||
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
};
|
||||
return shareObj;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue