修改app部分样式异常

This commit is contained in:
Zy
2026-05-22 14:39:25 +08:00
parent f3f499dd4b
commit d0e1f8ea02
15 changed files with 245 additions and 147 deletions

View File

@@ -1,5 +1,68 @@
node_modules/ # 系统缓存文件
unpackage/
.hbuilderx/
.DS_Store .DS_Store
Thumbs.db
*.swp
*.swo
# 编辑器配置
.idea/
.vscode/
*.iml
*.suo
*.sln
.history/ .history/
# HBuilderX 本地配置
.hbuilderx/
.uni-*/
# 项目依赖
node_modules/
package-lock.json
yarn.lock
pnpm-lock.yaml
# 证书/密钥(上架用的jks证书千万不能传)
*.jks
*.keystore
*.p12
*.key
*.pem
# 编译打包产物
unpackage/
dist/
build/
output/
# 安卓相关
androidPrivacy.json
*.jks
*.keystore
*.p12
local.properties
# iOS相关
*.mobileprovision
*.pem
*.cer
ios/Pods/
ios/build/
ios/DerivedData/
# 日志临时文件
*.log
temp/
tmp/
*.tmp
# 环境配置
.env.local
.env.development.local
.env.test.local
.env.production.local
# 其他冗余文件
npm-debug.log*
yarn-debug.log*
yarn-error.log*

View File

@@ -1,5 +1,12 @@
<template> <template>
<view class="tabs_box"> <view class="tabs-wrapper">
<view
class="tabs_box"
:style="{
height: props.height + 'rpx',
lineHeight: props.height + 'rpx'
}"
>
<view <view
v-for="(item, index) in tabs" v-for="(item, index) in tabs"
:key="index" :key="index"
@@ -13,6 +20,7 @@
{{ item.label }} {{ item.label }}
</view> </view>
</view> </view>
</view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -27,6 +35,7 @@ interface TabItem {
// Props 类型定义 // Props 类型定义
interface Props { interface Props {
tabslist?: any[] tabslist?: any[]
height?: number
showBottomLine?: boolean showBottomLine?: boolean
// 配置:传入字段名 // 配置:传入字段名
options?: { options?: {
@@ -39,6 +48,7 @@ interface Props {
// 定义 Props // 定义 Props
const props = withDefaults(defineProps<Props>(), { const props = withDefaults(defineProps<Props>(), {
tabslist: () => [], tabslist: () => [],
height: 60,
showBottomLine: true, showBottomLine: true,
options: () => ({ label: 'name', value: 'value' }), options: () => ({ label: 'name', value: 'value' }),
activeValue: null activeValue: null
@@ -75,9 +85,12 @@ const handleTabs = (item: TabItem) => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.tabs-wrapper {
flex-shrink: 0; /* 关键:不让被压缩 */
}
.tabs_box { .tabs_box {
height: 60rpx; height: 80rpx;
line-height: 60rpx; line-height: 80rpx;
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@@ -1,7 +1,7 @@
{ {
"name": "wuye-uniapp-project", "name" : "花开物业管家端",
"appid": "__UNI__E4ECDAB", "appid" : "__UNI__29C3D60",
"description": "", "description" : "智慧社区管家端,专为小区物业管理人员打造,支持多小区灵活切换管理。集成账号密码、手机号密码双重登录模式,内置忘记密码找回功能,保障账号安全。涵盖消息通知、日常巡检、故障报修、一键开门、工单流转、投诉处理等核心办公功能,物业人员可在线完成巡检打卡、问题上报、工单派发跟进、投诉对接处理等日常工作,同时支持查看个人上报记录、巡检历史,便捷修改账号信息与登录密码。高效简化社区物业办公流程,提升小区服务与管理效率,打造便捷智能的社区管理服务平台。",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
@@ -41,9 +41,16 @@
] ]
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": {}, "ios" : {
"dSYMs" : false
},
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": {} "sdkConfigs" : {
"push" : {}
},
"splashscreen" : {
"useOriginalMsgbox" : true
}
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
@@ -66,5 +73,9 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion": "3" "vueVersion" : "3",
"locale" : "zh-Hans",
"fallbackLocale" : "zh-Hans"
} }
/* ios打包配置 *//* SDK配置 */

View File

@@ -8,9 +8,13 @@
:tabslist="statusTabs" :tabslist="statusTabs"
@update="switchStatus" @update="switchStatus"
></TabsComponents> ></TabsComponents>
<view class="detail_list flex flex-1 overflow-auto"> <view class="detail_list flex flex-1 overflow-auto">
<scroll-view scroll-y="true" lower-threshold="160" @scrolltolower="scrolltolower"> <scroll-view
style="height: 100%; flex: 1"
scroll-y="true"
lower-threshold="160"
@scrolltolower="scrolltolower"
>
<view <view
class="item" class="item"
v-for="(item, index) in list" v-for="(item, index) in list"
@@ -108,10 +112,6 @@ function init() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
// 2. 开启锁 // 2. 开启锁
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getComplainList(querySearch.value) getComplainList(querySearch.value)
.then(res => { .then(res => {
list.value = [...list.value, ...res.rows] list.value = [...list.value, ...res.rows]
@@ -119,9 +119,14 @@ function init() {
// 判断是否还有更多 // 判断是否还有更多
hasMore.value = list.value.length < total.value hasMore.value = list.value.length < total.value
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }
@@ -161,7 +166,10 @@ function scrolltolower() {
flex: 1; flex: 1;
background: #f9f9f9; background: #f9f9f9;
padding: 20rpx 40rpx; padding: 20rpx 40rpx;
justify-content: flex-start;
align-items: stretch;
.detail_list { .detail_list {
margin-top: 20rpx;
.item { .item {
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;

View File

@@ -122,17 +122,18 @@ function getlist() {
return return
} }
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getSystemUsers_employee('complainUser', queryParmas.value.keyword) getSystemUsers_employee('complainUser', queryParmas.value.keyword)
.then(res => { .then(res => {
searchlist.value = res.data searchlist.value = res.data
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }
onShow(() => { onShow(() => {

View File

@@ -145,7 +145,7 @@ function init() {
.filter(item => item !== false) .filter(item => item !== false)
baseFormData.value = result baseFormData.value = result
}) })
.catch(err => { .catch(() => {
uni.showToast({ uni.showToast({
icon: 'error', icon: 'error',
title: '网络异常' title: '网络异常'

View File

@@ -16,13 +16,15 @@
@change="handleChangeTime" @change="handleChangeTime"
v-model="queryParmas.date" v-model="queryParmas.date"
> >
<view class="flex">
<view class="day">{{ showDate }}</view> <view class="day">{{ showDate }}</view>
</uni-datetime-picker>
<view class="searchiconbox flex items-center"> <view class="searchiconbox flex items-center">
<view class="arrow"> </view> <view class="arrow"> </view>
<view class="arrow1"> </view> <view class="arrow1"> </view>
</view> </view>
</view> </view>
</uni-datetime-picker>
</view>
</view> </view>
<scroll-view <scroll-view
class="record_body record-list" class="record_body record-list"
@@ -115,10 +117,6 @@ function getlist() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
// 2. 开启锁 // 2. 开启锁
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
const { pageNum, pageSize, date, status } = queryParmas.value const { pageNum, pageSize, date, status } = queryParmas.value
getInspectionList({ getInspectionList({
pageSize, pageSize,
@@ -139,9 +137,14 @@ function getlist() {
hasMore.value = list.value.length < res.total hasMore.value = list.value.length < res.total
total.value = res.total total.value = res.total
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }
@@ -215,7 +218,7 @@ const navBack = () => {
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
.timebox { .timebox {
width: 178rpx; width: 188rpx;
height: 48rpx; height: 48rpx;
background: #ffffff; background: #ffffff;
border-radius: 24rpx; border-radius: 24rpx;
@@ -223,7 +226,7 @@ const navBack = () => {
line-height: 48rpx; line-height: 48rpx;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: #666666; color: #999;
margin-bottom: 20rpx; margin-bottom: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
.daybox { .daybox {

View File

@@ -101,10 +101,7 @@ const total = ref(0)
function getlist() { function getlist() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
const { pageNum, pageSize, date, status } = queryParmas.value const { pageNum, pageSize, date, status } = queryParmas.value
getInspectionList({ getInspectionList({
pageSize, pageSize,
@@ -125,9 +122,14 @@ function getlist() {
hasMore.value = list.value.length < res.total hasMore.value = list.value.length < res.total
total.value = res.total total.value = res.total
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }
/** 跳转到巡检上传页面 */ /** 跳转到巡检上传页面 */

View File

@@ -117,10 +117,7 @@ function getlist() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
// 2. 开启锁 // 2. 开启锁
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getVillageHouseList_keyword(queryParmas.value, queryParmas.value.searchValue) getVillageHouseList_keyword(queryParmas.value, queryParmas.value.searchValue)
.then(res => { .then(res => {
// 追加数据(正确方式) // 追加数据(正确方式)
@@ -137,7 +134,6 @@ function getlist() {
}) })
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }

View File

@@ -116,10 +116,6 @@ function getlist() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
// 2. 开启锁 // 2. 开启锁
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
const { pageNum, pageSize, deviceType } = queryParmas.value const { pageNum, pageSize, deviceType } = queryParmas.value
getReplaceMainList({ getReplaceMainList({
pageNum, pageNum,
@@ -131,9 +127,14 @@ function getlist() {
total.value = res.total total.value = res.total
hasMore.value = infolist.value.length < total.value hasMore.value = infolist.value.length < total.value
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }
onShow(() => { onShow(() => {

View File

@@ -146,10 +146,6 @@ function scrolltolower() {
function getlist() { function getlist() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getTicketHallList(queryParmas.value) getTicketHallList(queryParmas.value)
.then(res => { .then(res => {
reportRecords.value = [...reportRecords.value, ...res.rows] reportRecords.value = [...reportRecords.value, ...res.rows]
@@ -169,7 +165,6 @@ function getlist() {
}) })
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }

View File

@@ -141,19 +141,20 @@ function getlist() {
if (isLoading.value || !hasMore.value) return if (isLoading.value || !hasMore.value) return
// 2. 开启锁 // 2. 开启锁
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getUserTicketlist(queryParmas.value) getUserTicketlist(queryParmas.value)
.then(res => { .then(res => {
reportRecords.value = [...reportRecords.value, ...res.rows] reportRecords.value = [...reportRecords.value, ...res.rows]
hasMore.value = reportRecords.value.length < total.value hasMore.value = reportRecords.value.length < total.value
total.value = res.total total.value = res.total
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }
onShow(() => { onShow(() => {

View File

@@ -203,6 +203,7 @@ onShow(() => {
}) })
function getTicketById() { function getTicketById() {
if (!queryParams.value.id) return
getTicketMainById(queryParams.value.id) getTicketMainById(queryParams.value.id)
.then(res => { .then(res => {
repairInfo.value = res.data repairInfo.value = res.data
@@ -225,22 +226,31 @@ function getTicketById() {
function handleStop(row) { function handleStop(row) {
// 0 已提交 1 已分配 2已解决 // 0 已提交 1 已分配 2已解决
let status = row.problemStatus let status = row.problemStatus
currentStep.value = 0
// 维修步骤:0提交 1分配 2维修完成 / 待解决 3记录完成 完成 // 维修步骤:0提交 1分配 2维修完成 / 待解决 3记录完成 完成
if (status === '0') { if (status === '0') {
currentStep.value = 1 currentStep.value = 1
stepList.value[0].desc = '提交报修成功' stepList.value[0].desc = '提交报修成功'
} else if (status === '1') { return
}
if (status === '1') {
currentStep.value = 2 currentStep.value = 2
stepList.value[1].title = '已派单' stepList.value[1].title = '已派单'
stepList.value[1].desc = '物业已派单' stepList.value[1].desc = '物业已派单'
stepList.value[2].title = '待解决' stepList.value[2].title = '待解决'
stepList.value[2].desc = `维修人员(${row.repairName})维修中` stepList.value[2].desc = `维修人员(${row.repairName})维修中`
} else if (status === '2') { return
}
console.log(status)
if (status === '2') {
currentStep.value = 4 currentStep.value = 4
stepList.value[0].desc = '提交报修成功'
stepList.value[1].title = '已派单'
stepList.value[1].desc = '物业已派单'
stepList.value[2].title = '已解决' stepList.value[2].title = '已解决'
stepList.value[2].desc = `维修人员(${row.repairName})已解决` stepList.value[2].desc = `维修人员(${row.repairName})已解决`
} else { return
currentStep.value = 0
} }
} }
/** 选择维修人员 */ /** 选择维修人员 */

View File

@@ -115,19 +115,19 @@ function getlist() {
if (isLoading.value) return if (isLoading.value) return
// 2. 开启锁 // 2. 开启锁
isLoading.value = true isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
const { keyword, roleKey } = queryParmas.value const { keyword, roleKey } = queryParmas.value
getSystemUsers_employee(roleKey, keyword) getSystemUsers_employee(roleKey, keyword)
.then(res => { .then(res => {
searchlist.value = res.data searchlist.value = res.data
}) })
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => { .finally(() => {
isLoading.value = false isLoading.value = false
uni.hideLoading()
}) })
} }

View File

@@ -271,12 +271,6 @@
"^uni-(.*)": "@/components/uni-$1.vue" "^uni-(.*)": "@/components/uni-$1.vue"
} }
}, },
"condition": {
"list": [{
"name": "维修完成",
"path": "pageSubPack/ticket/repairCompleted"
}]
},
"tabBar": { "tabBar": {
"color": "#333333", "color": "#333333",
"backgroundColor": "#F5F6F6", "backgroundColor": "#F5F6F6",