This commit is contained in:
yunkexin 2024-07-25 14:18:42 +08:00
parent 0e98c67349
commit d3e717bc94

View File

@ -43,15 +43,31 @@
// }, // },
] ],
company: 'XLK'
} }
}, },
onShow() { onShow() {
}, },
onLoad() { onLoad() {
let pages = getCurrentPages()
let currentPage = pages[pages.length - 1]
let options = currentPage.options
console.log(options, 'options')
if (options.Company == 'DCJD') {
this.company = 'DCJD'
} else if (options.Company == 'GXBB') {
this.company = 'GXBB'
} else if (options.Company == 'LYYL') {
this.company = 'LYYL'
} else if (options.Company == 'LYXT') {
this.company = 'LYXT'
} else {
this.company = 'XLK'
}
this.getCaidan() this.getCaidan()
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
let url = 'http://47.122.43.22:9100/' let url = 'http://47.122.43.22:9100/'
@ -65,7 +81,7 @@
if (index == name) { if (index == name) {
if (item.name == '新增用户') { if (item.name == '新增用户') {
uni.navigateTo({ uni.navigateTo({
url: '/pages/apply/index' url: `/pages/apply/index?Company=${this.company}`
}) })
} }
} }
@ -77,24 +93,9 @@
}) })
}, },
getCaidan() { getCaidan() {
let pages = getCurrentPages()
let currentPage = pages[pages.length - 1]
let options = currentPage.options
let company = ''
console.log(options, 'options')
if (options.Company == 'DCJD') {
company = 'DCJD'
} else if (options.Company == 'GXBB') {
company = 'GXBB'
} else if (options.Company == 'LYYL') {
company = 'LYYL'
} else if (options.Company == 'LYXT') {
company = 'LYXT'
} else {
company = 'XLK'
}
const json = { const json = {
Company: company, Company: this.company,
Post: '搬运工', Post: '搬运工',
Type: 1 Type: 1
} }