This commit is contained in:
曹辉 2023-03-30 16:24:15 +08:00
parent b6788b0b58
commit 030da87d16
2 changed files with 19 additions and 4 deletions

View File

@ -12,17 +12,27 @@
return { return {
imageurl: null, imageurl: null,
imageurls: null, imageurls: null,
goto: '',
}; };
}, },
onShow() { onShow() {
this.imageurl = baseurl + '/profile/appletPicture/healthyOne.png' this.imageurl = baseurl + '/profile/appletPicture/healthyOne.png'
this.imageurls = baseurl + '/profile/appletPicture/healthyDetails.png' this.imageurls = baseurl + '/profile/appletPicture/healthyDetails.png'
}, },
onLoad(options) {
this.goto = options.goto
},
methods: { methods: {
godetal() { godetal() {
uni.navigateBack({ if (this.goto == 'homepage') {
delta: 1 uni.navigateTo({
}) url: '/pages/medicine/medicine'
})
} else {
uni.navigateBack({
delta: 1
})
}
} }
} }
} }

View File

@ -156,7 +156,12 @@
} else if (e.dictLabel == '新医象') { } else if (e.dictLabel == '新医象') {
this.goycjc(); this.goycjc();
} else { } else {
if (e.jumpLink == '/pages/homepage/homepage' || e.jumpLink == if (e.jumpLink == '/pages/ConsultationDetails/ConsultationDetails') {
const url = `/pages/ConsultationDetails/ConsultationDetails?goto=${'homepage'}`
uni.navigateTo({
url: url
})
} else if (e.jumpLink == '/pages/homepage/homepage' || e.jumpLink ==
'/pages/Personal/Personal') { '/pages/Personal/Personal') {
uni.switchTab({ uni.switchTab({
url: e.jumpLink url: e.jumpLink