This commit is contained in:
曹辉 2023-03-30 16:23:15 +08:00
parent c3e23965e4
commit f31d4dd073
2 changed files with 50 additions and 10 deletions

View File

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

View File

@ -133,14 +133,44 @@
this.swiperImglink.forEach(e => {
e.image = baseurl + e.posterPictureUrl
if (e.image == item) {
if (e.jumpLink == '/pages/homepage/homepage' || e.jumpLink == '/pages/Personal/Personal') {
uni.switchTab({
url: e.jumpLink
})
if (e.dictLabel == '专病管理') {
const phone = uni.getStorageSync('phone');
if (phone) {
uni.navigateToMiniProgram({
appId: 'wxa690d053c34ceebd',
path: '/pages/index/index',
extraData: {
'from': 'qy',
'phone': phone
},
success(res) {}
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
} else if (e.dictLabel == '新医象') {
this.goycjc();
} else {
uni.navigateTo({
url: 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') {
uni.switchTab({
url: e.jumpLink
})
} else {
uni.navigateTo({
url: e.jumpLink
})
}
}
}
})