医生分享功能完善-0714

master
chen 2022-07-14 15:46:14 +08:00
parent 46e4476736
commit 2202e3d916
3 changed files with 11 additions and 19 deletions

View File

@ -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