Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaxiu-miniapp
Project
Project
Details
Activity
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
蔡亮华(贵阳日报)
jiaxiu-miniapp
Commits
ae0b01c6
Commit
ae0b01c6
authored
Jul 03, 2024
by
蔡亮华(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
8c0cf65f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
+25
-18
index.vue
src/pages/index.vue
+25
-18
No files found.
src/pages/index.vue
View file @
ae0b01c6
<
template
>
<router-view
v-slot=
"
{ Component, route }">
<keep-alive>
<component
:is=
"Component"
:key=
"route.meta.usePathKey ? route.path : undefined"
/>
</keep-alive>
</router-view>
<van-tabbar
v-model=
"active"
:placeholder=
"true"
active-color=
"#0E7CE3"
route
>
<van-tabbar-item
icon=
"home-o"
to=
"/home"
>
首页
</van-tabbar-item>
<van-tabbar-item
icon=
"apps-o"
to=
"/prefecture"
>
专区
</van-tabbar-item>
<van-tabbar-item
icon=
"send-gift-o"
to=
"/subject"
>
专题
</van-tabbar-item>
<van-tabbar-item
icon=
"user-o"
to=
"/mine"
>
我的
</van-tabbar-item>
</van-tabbar>
<!-- #ifdef MP-WEIXIN -->
<view
class=
"container"
>
微信小程序环境
</view>
<!-- #endif -->
<!-- #ifdef H5 -->
<view
class=
"container"
>
H5环境
</view>
<!-- #endif -->
<!-- #ifdef APP -->
<view
class=
"container"
>
APP环境
</view>
<!-- #endif -->
<van-tabbar
v-model=
"active"
:placeholder=
"true"
active-color=
"#0E7CE3"
route
>
<van-tabbar-item
icon=
"home-o"
to=
"/home"
>
首页
</van-tabbar-item>
<van-tabbar-item
icon=
"apps-o"
to=
"/prefecture"
>
专区
</van-tabbar-item>
<van-tabbar-item
icon=
"send-gift-o"
to=
"/subject"
>
专题
</van-tabbar-item>
<van-tabbar-item
icon=
"user-o"
to=
"/mine"
>
我的
</van-tabbar-item>
</van-tabbar>
</
template
>
<
script
setup
>
import
{
ref
}
from
'vue'
const
active
=
ref
(
'/home'
)
import
{
ref
}
from
'vue'
const
active
=
ref
(
'/home'
)
// #ifdef H5
// #ifdef H5
console
.
log
(
'当前环境为H5'
)
// 这里可以编写H5环境的代码逻辑
// #endif
// #endif
// #ifdef APP
console
.
log
(
'当前环境为APP'
)
// 这里可以编写APP环境的代码逻辑
// #endif
// #ifdef APP
console
.
log
(
'当前环境为APP'
)
// 这里可以编写APP环境的代码逻辑
// #endif
</
script
>
<
style
scoped
></
style
>
\ No newline at end of file
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