修改页面

This commit is contained in:
2025-05-27 15:04:52 +08:00
parent cdf7e721c5
commit 462073058e
3 changed files with 20 additions and 15 deletions

View File

@ -80,7 +80,7 @@
<view class="nr bold-600">服务功能</view>
<view>
<u-grid :col="4" :border="false">
<u-grid-item v-for="(item, index) in menuList" :key="index" @click="tapMenu(item)">
<u-grid-item v-for="(item, index) in menuList[1]['content']['data']" :key="index" @click="tapMenu(item.link.path)">
<u-image :src="item.image" width="64" height="64"></u-image>
<view class="grid-text mt10">{{item.name}}</view>
</u-grid-item>
@ -128,13 +128,18 @@
})
if (code == 1) {
this.menuList = data
console.log("this.menuList>>>", this.menuList);
return false;
}
},
// 点击菜单跳转页面
tapMenu(item) {
tapMenu(path) {
if (!this.isLogin) return toLogin()
menuJump(item)
uni.navigateTo({
url: path
})
// menuJump(item)
},
},
computed: {