投诉详情

This commit is contained in:
Zy
2026-05-01 18:27:28 +08:00
parent 893996a3e0
commit 41ea760c3f
9 changed files with 1425 additions and 48 deletions

View File

@@ -29,11 +29,17 @@
<!-- banner -->
<view class="bannarClass">
<uni-swiper-dot class="uni-swiper-dot-box" @clickItem="clickItem" :info="bannerList" :current="current" mode="round">
<uni-swiper-dot
class="uni-swiper-dot-box"
@clickItem="clickItem"
:info="bannerList"
:current="current"
mode="round"
>
<swiper class="swiper-box" :current="current" autoplay>
<swiper-item v-for="(item, index) in bannerList" :key="index">
<view class="swiper-item">
<image :src="item.img" style="width: 100%;height: 100%;"></image>
<image :src="item.img" style="width: 100%; height: 100%"></image>
</view>
</swiper-item>
</swiper>
@@ -50,8 +56,17 @@
</view>
<!-- 右侧滚动公告 -->
<view class="notice-right" @click="getNoticeMore">
<uni-notice-bar :text="noticeText" type="line" :showIcon="false" show-get-more scrollable color="#fff"
background-color="transparent" moreColor="#fff" no-border>
<uni-notice-bar
:text="noticeText"
type="line"
:showIcon="false"
show-get-more
scrollable
color="#fff"
background-color="transparent"
moreColor="#fff"
no-border
>
</uni-notice-bar>
</view>
</view>
@@ -85,11 +100,11 @@
<image class="item-icon" src="/static/imgs/open.png" mode="aspectFit"></image>
<text class="item-text">一键开门</text>
</view>
<view class="function-item">
<view class="function-item" @tap="goToTicketHall">
<image class="item-icon" src="/static/imgs/work-order.png" mode="aspectFit"></image>
<text class="item-text">工单大厅</text>
</view>
<view class="function-item">
<view class="function-item" @tap="goToMyTicket">
<image class="item-icon" src="/static/imgs/my-work.png" mode="aspectFit"></image>
<text class="item-text">我的工单</text>
</view>
@@ -112,9 +127,7 @@ import { onLoad, onUnload } from '@dcloudio/uni-app'
// 列表数据状态
const current = ref(0)
const currentCommunity = ref('碧桂园小区')
const bannerList = ref([
{ img: '/static/imgs/banner1.png' },
])
const bannerList = ref([{ img: '/static/imgs/banner1.png' }])
const noticeText = ref('公告公告本小区今天安装了摄像头')
// =======方法=======
@@ -136,6 +149,18 @@ const goToOneOpenDoor = () => {
url: '/pageSubPack/oneClickOpen/oneClickOpen'
})
}
// 工单大厅
const goToTicketHall = () => {
uni.navigateTo({
url: '/pageSubPack/ticket/hall'
})
}
// 我的工单
const goToMyTicket = () => {
uni.navigateTo({
url: '/pageSubPack/ticket/myticket'
})
}
// 跳转到 今日巡检
const goToDaysInspection = () => {
uni.navigateTo({
@@ -151,11 +176,11 @@ const goToInspectionRecord = () => {
// 故障上报
const goToReport = () => {
uni.navigateTo({
url: "/pageSubPack/fault-reporting/fault-reporting"
url: '/pageSubPack/fault-reporting/fault-reporting'
})
}
// 接收选择小区返回的参数
const slelctHomeData = (data) => {
const slelctHomeData = data => {
currentCommunity.value = data.name
}
@@ -167,7 +192,7 @@ onUnload(() => {
uni.$off('confirm', slelctHomeData)
})
const clickItem = (index) => {
const clickItem = index => {
current.value = index
}
</script>