调整路由本地存储,调整状态栏

This commit is contained in:
yunkexin 2024-07-31 17:36:49 +08:00
parent 26490dec59
commit d09f0612d1
4 changed files with 19 additions and 35 deletions

View File

@ -27,15 +27,15 @@
{
"path": "pages/apply/index",
"style": {
"navigationBarTitleText": "个人信息",
"navigationBarBackgroundColor": "#fff"
"navigationBarTitleText": "个人信息"
// "navigationBarBackgroundColor": "#fff"
}
},
{
"path": "pages/apply/complete",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
// "navigationBarBackgroundColor": "#fff",
"app-plus": {
"titleNView": {
// "titleSize": "18px",
@ -56,7 +56,7 @@
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#fff", //f6faff
"navigationBarBackgroundColor": "#f6faff", //f6faff
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {}

View File

@ -60,13 +60,13 @@
<style>
.content {
background-color: #fff;
background-color: #f6faff;
width: 100%;
/* #ifndef APP-PLUS */
height: calc(100vh - 44px - 50px); // APP
height: calc(100vh - 44px ); // APP
/* #endif */
/* #ifdef APP-PLUS */
height: calc(100vh); // APP
height: 100vh; // APP
/* #endif */
}

View File

@ -46,30 +46,18 @@
],
company: 'XLK'
company: ''
}
},
onShow() {
const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const Options = currentPage.options
uni.setStorageSync('Company', Options.Company?Options.Company:'XLK')
},
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()
},
onNavigationBarButtonTap(e) {
let url = 'http://47.122.43.22:9100/'
@ -83,7 +71,7 @@
if (index == name) {
if (item.name == '新增用户') {
uni.navigateTo({
url: `/pages/apply/index?Company=${this.company}`
url: `/pages/apply/index?Company=${uni.getStorageSync('Company')}`
})
}
}

View File

@ -5,23 +5,19 @@ import handle401 from './handle401'
export default {
send(params) {
let pages = getCurrentPages()
let currentPage = pages[pages.length - 1]
let options = currentPage.options
let Company = uni.getStorageSync('Company')
let tenantId = ''
console.log(options, 'options')
if (options.Company == 'DCJD') {
if (Company == 'DCJD') {
tenantId = 'A0000025'
} else if (options.Company == 'GXBB') {
} else if (Company == 'GXBB') {
tenantId = 'A0000028'
} else if (options.Company == 'LYYL') {
} else if (Company == 'LYYL') {
tenantId = 'A0000024'
} else if (options.Company == 'LYXT') {
} else if (Company == 'LYXT') {
tenantId = '0002'
} else {
tenantId = '0001'
}
console.log(tenantId, 'tenantId')
let url = params.url;
let method = params.method || "get";
let data = params.data || {};