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
3d8e5e76
Commit
3d8e5e76
authored
Dec 06, 2024
by
caimeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-mmcai'
parents
1dc3e925
b0360267
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
index.vue
pages/index/index.vue
+14
-5
index.js
utils/index.js
+4
-3
No files found.
pages/index/index.vue
View file @
3d8e5e76
...
...
@@ -41,11 +41,19 @@
<!-- 金刚位 -->
<view
v-if=
"index['shortcutList']"
class=
"i-list"
>
<view
class=
'mian-item'
v-for=
"(item, index) in JSON.parse(index['shortcutList'])"
:key=
"item.id"
@
click=
"jump(item, index, 'diamond')"
>
<image
class=
'item-img'
:src=
'item.url'
></image>
<view
class=
'item-text'
>
{{
item
.
name
}}
</view>
</view>
<template
v-for=
"(item, index) in JSON.parse(index['shortcutList'])"
>
<view
class=
'mian-item'
v-if=
"item.tager !== 'uni:/subPackage/indexfinance/index,tab'"
:key=
"item.id"
@
click=
"jump(item, index, 'diamond')"
>
<image
class=
'item-img'
:src=
'item.url'
></image>
<view
class=
'item-text'
>
{{
item
.
name
}}
</view>
</view>
</
template
>
</view>
...
...
@@ -114,6 +122,7 @@ export default {
IndexList
:
indexGoods
,
index
:
cacheIndexData
,
isFixed
:
false
,
deviceBrand
:
uni
.
getSystemInfoSync
().
deviceBrand
,
// 商品过滤
...
...
utils/index.js
View file @
3d8e5e76
...
...
@@ -58,15 +58,16 @@ export const switchShowTabbar = async () => {
try
{
const
res
=
await
API
.
initTabBar
()
const
{
data
}
=
res
.
result
if
(
data
)
{
uni
.
setStorageSync
(
'loanSwitch'
,
true
)
// V1.0.8 版本华为贷款口子不放出来
if
(
data
&&
uni
.
getSystemInfoSync
().
deviceBrand
!==
'huawei'
)
{
uni
.
setStorageSync
(
'loanSwitch'
,
true
)
uni
.
setTabBarItem
({
index
:
1
,
text
:
'贷款'
,
visible
:
true
,
})
}
else
{
uni
.
setStorageSync
(
'loanSwitch'
,
false
)
uni
.
setStorageSync
(
'loanSwitch'
,
false
)
uni
.
setTabBarItem
({
index
:
1
,
visible
:
false
...
...
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