Commit 3aa085dc authored by ly's avatar ly

隐藏相关

parent 368d6147
No preview for this file type
...@@ -38,7 +38,7 @@ let env = process.env.VUE_APP_BASE_NODE_ENV ...@@ -38,7 +38,7 @@ let env = process.env.VUE_APP_BASE_NODE_ENV
*/ */
// #ifdef APP-PLUS // #ifdef APP-PLUS
env = "development"; env = "prod";
// #endif // #endif
const api = { const api = {
......
...@@ -243,9 +243,26 @@ export default { ...@@ -243,9 +243,26 @@ export default {
const self = this const self = this
self.$request('/pawn/index', 'GET').then(res => { self.$request('/pawn/index', 'GET').then(res => {
const { shortcutList, bannerList } = res.result const { shortcutList, bannerList } = res.result
console.log(res,'999')
const showIndex = uni.getStorageSync('showIndex')
console.log(showIndex,'99933showIndex')
const token = uni.getStorageSync('token')
if (shortcutList && typeof(shortcutList)=='string') { if (shortcutList && typeof(shortcutList)=='string') {
let newArr=[]
let arrOne=[]
if(showIndex==true && token){
self.list = JSON.parse(shortcutList) self.list = JSON.parse(shortcutList)
}else{
newArr=JSON.parse(shortcutList)
newArr.forEach((item ,index)=>{
if(item.tager=='uni:/pages/indexfinance/index,tab'){
newArr.splice(index, 1)
}
})
self.list =newArr
console.log(newArr,'newArr')
}
} }
if (bannerList && typeof(bannerList)=='string' ) { if (bannerList && typeof(bannerList)=='string' ) {
self.bannerList = JSON.parse(bannerList) self.bannerList = JSON.parse(bannerList)
......
...@@ -161,7 +161,10 @@ export default { ...@@ -161,7 +161,10 @@ export default {
const self = this const self = this
self.$request('/app/v1/userIndex', 'GET').then(res => { self.$request('/app/v1/userIndex', 'GET').then(res => {
const { menuBar, user, baseMenuBar, extMenuBarList } = res.result const { menuBar, user, baseMenuBar, extMenuBarList } = res.result
const showIndex = uni.getStorageSync('showIndex')
if(showIndex==true){
self.menuBar = menuBar self.menuBar = menuBar
}
self.menuList = baseMenuBar self.menuList = baseMenuBar
self.extMenuBarList = extMenuBarList self.extMenuBarList = extMenuBarList
self.userTel = '' self.userTel = ''
......
This diff is collapsed.
...@@ -55,8 +55,12 @@ export const switchShowTabbar = async () => { ...@@ -55,8 +55,12 @@ export const switchShowTabbar = async () => {
}) })
} else { } else {
try { try {
const {success }= await API.initTabBar() const res= await API.initTabBar()
if (success) { console.log(res, 'success4444')
const { data }=res.result
uni.setStorageSync('showIndex',data)
if (data==true) {
uni.setTabBarItem({ uni.setTabBarItem({
index: 1, index: 1,
text: '贷款', text: '贷款',
......
...@@ -15,7 +15,7 @@ const request = async (url, type, data) => { ...@@ -15,7 +15,7 @@ const request = async (url, type, data) => {
if (headerDevice) { if (headerDevice) {
rd = encodeURIComponent(headerDevice) rd = encodeURIComponent(headerDevice)
console.log(rd,'设备信息')
} else { } else {
const common = initHeaderDevice() const common = initHeaderDevice()
console.log(common, '日===') console.log(common, '日===')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment