调整路由本地存储,调整状态栏
This commit is contained in:
parent
26490dec59
commit
d09f0612d1
@ -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": {}
|
||||
|
||||
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
@ -46,28 +46,16 @@
|
||||
|
||||
|
||||
],
|
||||
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()
|
||||
|
||||
},
|
||||
@ -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')}`
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 || {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user