Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uni-app-ddh-shop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanhai
uni-app-ddh-shop
Commits
3aa085dc
Commit
3aa085dc
authored
Oct 21, 2024
by
ly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏相关
parent
368d6147
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
35 deletions
+59
-35
.DS_Store
.DS_Store
+0
-0
api.js
config/api.js
+1
-1
index.vue
pages/index/index.vue
+19
-2
index.vue
pages/my/index.vue
+4
-1
app-service.js
unpackage/dist/dev/app-plus/app-service.js
+28
-28
index.js
utils/index.js
+6
-2
request.js
utils/request.js
+1
-1
No files found.
.DS_Store
View file @
3aa085dc
No preview for this file type
config/api.js
View file @
3aa085dc
...
...
@@ -38,7 +38,7 @@ let env = process.env.VUE_APP_BASE_NODE_ENV
*/
// #ifdef APP-PLUS
env
=
"
development
"
;
env
=
"
prod
"
;
// #endif
const
api
=
{
...
...
pages/index/index.vue
View file @
3aa085dc
...
...
@@ -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'
)
{
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
)
...
...
pages/my/index.vue
View file @
3aa085dc
...
...
@@ -161,7 +161,10 @@ export default {
const
self
=
this
self
.
$request
(
'/app/v1/userIndex'
,
'GET'
).
then
(
res
=>
{
const
{
menuBar
,
user
,
baseMenuBar
,
extMenuBarList
}
=
res
.
result
const
showIndex
=
uni
.
getStorageSync
(
'showIndex'
)
if
(
showIndex
==
true
){
self
.
menuBar
=
menuBar
}
self
.
menuList
=
baseMenuBar
self
.
extMenuBarList
=
extMenuBarList
self
.
userTel
=
''
...
...
unpackage/dist/dev/app-plus/app-service.js
View file @
3aa085dc
This diff is collapsed.
Click to expand it.
utils/index.js
View file @
3aa085dc
...
...
@@ -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
:
'贷款'
,
...
...
utils/request.js
View file @
3aa085dc
...
...
@@ -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
,
'日==='
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment