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)

View File

@@ -1,22 +1,49 @@
<template>
<view>
<view class="begin">
<view class="title">
<view>{{this.value[3]}}</view>
<view>{{this.value[4]}}</view>
</view>
<view class="content" v-html="this.value[5]">
</view>
<view class="who">
</view>
</view>
</template>
<script>
export default {
data() {
return {
value: null
}
},
methods: {
methods: {},
onLoad(option) {
const id = option.id
this.value = JSON.parse(decodeURIComponent(option.data))
console.log('id:', id)
console.log('完整数据:', this.value)
}
}
</script>
<style>
.begin {
margin: 10px;
}
</style>
.title {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.content {
font-size: 0.8rem;
text-indent: 2em;
}
</style>