罗世杰:feat:初始化主页导航跳转
This commit is contained in:
@@ -15,31 +15,38 @@
|
||||
return {
|
||||
navItems: [{
|
||||
icon: "/static/navbar/sy_icon_zrxx.png",
|
||||
text: "转让信息"
|
||||
text: "转让信息",
|
||||
url: "/pages/index/NavBarPages/zrxx/zrxx"
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_zdxx.png",
|
||||
text: "找店信息"
|
||||
text: "找店信息",
|
||||
url: "/pages/index/NavBarPages/zdxx/zdxx"
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_czxx.png",
|
||||
text: "出租信息"
|
||||
text: "出租信息",
|
||||
url: "/pages/index/NavBarPages/czxx/czxx"
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_xmzs.png",
|
||||
text: "项目招商"
|
||||
text: "项目招商",
|
||||
url: "/pages/index/NavBarPages/xmzs/xmzs"
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_cjal.png",
|
||||
text: "成交案例"
|
||||
text: "成交案例",
|
||||
url: "/pages/index/NavBarPages/cjal/cjal"
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_spdt.png",
|
||||
text: "速配地图"
|
||||
text: "速配地图",
|
||||
url: '/pages/index/map/map'
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_zmhb.png",
|
||||
text: "招募合伙"
|
||||
text: "招募合伙",
|
||||
url:'/pages/Partnerships/Partnerships'
|
||||
},
|
||||
{
|
||||
icon: "/static/navbar/sy_icon_lxwm.png",
|
||||
@@ -51,12 +58,10 @@
|
||||
},
|
||||
methods: {
|
||||
handleItemClick(index) {
|
||||
// 在这里处理点击事件,并使用下标值
|
||||
console.log(`项目 ${index} 被点击了`);
|
||||
// 或者执行其他需要的操作
|
||||
if (index == 5) {
|
||||
// 跳转页面
|
||||
if (index >= 0 && index <= 6) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/map/map'
|
||||
url: this.navItems[index].url
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user