【建议书优化需求】原生方法jump跳转改为采用VUE的router路由跳转方式

This commit is contained in:
lyt
2023-04-04 15:29:01 +08:00
committed by liu.xiaofeng@ebiz-digits.com
parent 2f30a51254
commit 9be9b99abf
11 changed files with 217 additions and 197 deletions

View File

@@ -849,41 +849,44 @@ export default {
},
// 跳转到公司介绍
goToCompanyProfile() {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/proposal/companyProfile'
},
routerInfo: {
path: '/proposal/companyProfile'
}
})
this.$router.push({ path: '/proposal/companyProfile' })
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/proposal/companyProfile'
// },
// routerInfo: {
// path: '/proposal/companyProfile'
// }
// })
},
//跳转到pdf 进入建议书后 根据建议书编码来查找相应的pdf
async goPDF() {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/proposal/pdf'
},
routerInfo: {
path: '/proposal/pdf'
}
})
this.$router.push({ path: '/proposal/pdf' })
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/proposal/pdf'
// },
// routerInfo: {
// path: '/proposal/pdf'
// }
// })
},
// 条款PDF
async goCaluePDF(riskItem) {
localStorage.showCaluePDFUrl = riskItem.url
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/proposal/caluePdf?',
title: '条款'
},
routerInfo: {
path: '/proposal/caluePdf'
}
})
this.$router.push({ path: 'proposal/caluePdf' })
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/proposal/caluePdf?',
// title: '条款'
// },
// routerInfo: {
// path: '/proposal/caluePdf'
// }
// })
},
//写成标准的方法(数组是object的一种)
getObjectKeys(object) {