修改
This commit is contained in:
parent
b6788b0b58
commit
030da87d16
@ -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
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user