all completed,components/side is none commentpart
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user