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
*/
// #ifdef APP-PLUS
env = "development";
env = "prod";
// #endif
const api = {
......
......@@ -243,9 +243,26 @@ export default {
const self = this
self.$request('/pawn/index', 'GET').then(res => {
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') {
self.list = JSON.parse(shortcutList)
let newArr=[]
let arrOne=[]
if(showIndex==true && token){
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' ) {
self.bannerList = JSON.parse(bannerList)
......
......@@ -161,7 +161,10 @@ export default {
const self = this
self.$request('/app/v1/userIndex', 'GET').then(res => {
const { menuBar, user, baseMenuBar, extMenuBarList } = res.result
self.menuBar = menuBar
const showIndex = uni.getStorageSync('showIndex')
if(showIndex==true){
self.menuBar = menuBar
}
self.menuList = baseMenuBar
self.extMenuBarList = extMenuBarList
self.userTel = ''
......
This diff is collapsed.
......@@ -55,8 +55,12 @@ export const switchShowTabbar = async () => {
})
} else {
try {
const {success }= await API.initTabBar()
if (success) {
const res= await API.initTabBar()
console.log(res, 'success4444')
const { data }=res.result
uni.setStorageSync('showIndex',data)
if (data==true) {
uni.setTabBarItem({
index: 1,
text: '贷款',
......
......@@ -15,7 +15,7 @@ const request = async (url, type, data) => {
if (headerDevice) {
rd = encodeURIComponent(headerDevice)
console.log(rd,'设备信息')
} else {
const common = initHeaderDevice()
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