all completed,components/side is none commentpart

This commit is contained in:
winter_born
2026-04-17 16:12:45 +08:00
parent 26a49afb56
commit 74dda19fd1
9 changed files with 352 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="bannerlist">
<view class="li" v-for="value in valuearray">
<view class="li" v-for="(value,index) in valuearray" @click="gowhere(index)">
<image :src="value[1]"></image>
<text>{{value[0]}}</text>
</view>
@@ -9,18 +9,22 @@
<script>
export default {
data() {
let valuearray = ["开门", "我的房屋", "我的车位", "物业缴费", "扫码取件", "社区公告", "社区电话", "投诉建议"]
.map((value, index) => [value,
`../../static/${["open-door.png","house.png","feedback-1.png","property-bill.png","qr-pick.png","note.png","property-tel.png","feedback.png"][index]}`
`/static/${["open-door.png","house.png","feedback-1.png","property-bill.png","qr-pick.png","note.png","property-tel.png","feedback.png"][index]}`
])
return {
valuearray
}
},
methods: {
gowhere(index) {
uni.navigateTo({
url:"/pages/index/addr"
})
}
},
mounted() {
console.log(this.valuearray)