修改
This commit is contained in:
parent
c3e23965e4
commit
f31d4dd073
@ -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
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,14 +133,44 @@
|
|||||||
this.swiperImglink.forEach(e => {
|
this.swiperImglink.forEach(e => {
|
||||||
e.image = baseurl + e.posterPictureUrl
|
e.image = baseurl + e.posterPictureUrl
|
||||||
if (e.image == item) {
|
if (e.image == item) {
|
||||||
if (e.jumpLink == '/pages/homepage/homepage' || e.jumpLink == '/pages/Personal/Personal') {
|
if (e.dictLabel == '专病管理') {
|
||||||
uni.switchTab({
|
const phone = uni.getStorageSync('phone');
|
||||||
url: e.jumpLink
|
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 {
|
} else {
|
||||||
uni.navigateTo({
|
if (e.jumpLink == '/pages/ConsultationDetails/ConsultationDetails') {
|
||||||
url: e.jumpLink
|
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
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user