Compare commits

...

3 Commits

Author SHA1 Message Date
赵毅
1f7eebd66a 优化巡检提交的提示信息 2025-10-20 15:53:02 +08:00
赵毅
15288eaa10 优化物业缴费点击去抵扣物业账单后页面的数据请求逻辑 2025-10-20 11:50:56 +08:00
赵毅
f2acabac3f 优化首页顶部搜索功能 2025-10-20 11:17:09 +08:00
11 changed files with 112 additions and 89 deletions

View File

@ -1,6 +1,6 @@
export const apiArr = { export const apiArr = {
getUserInfo: '/api/v2/wechat/mpuser-crud/info', // 获取城市列表 getUserInfo: '/api/v2/wechat/mpuser-crud/info', // 获取城市列表
userInfoUpdate: '/api/v2/wechat/mpuser-crud/update', // 会员信息更新 userInfoUpdate: '/api/v2/wechat/mpuser-crud/update', // 会员信息更新
getAccumulationFund: '/api/v2/wechat/government-housing-fund-flow-crud/page', // 物业费公积金 getAccumulationFund: '/api/v2/wechat/government-housing-fund-flow-crud/page', // 物业费
getPoints: '/api/v2/wechat/member-points-flow-crud/page', // 积分 getPoints: '/api/v2/wechat/member-points-flow-crud/page', // 积分
} }

View File

@ -172,7 +172,7 @@
</view> </view>
<view class="row"> <view class="row">
<view class="row_label">物业费公积金抵扣金额</view> <view class="row_label">物业费抵扣金额</view>
<view class="row_con4">-{{ item.property_housing_fund }}</view> <view class="row_con4">-{{ item.property_housing_fund }}</view>
</view> </view>
@ -298,6 +298,15 @@ export default {
this.localHeight = meun.height; this.localHeight = meun.height;
this.currentCommunity = uni.getStorageSync("changeCommData"); this.currentCommunity = uni.getStorageSync("changeCommData");
this.currentCommunityAddr = uni.getStorageSync("currentCommunityAddr"); this.currentCommunityAddr = uni.getStorageSync("currentCommunityAddr");
// providentFund
if (options.item) {
try {
const item = JSON.parse(decodeURIComponent(options.item));
this.currentRoom = item;
} catch (error) {
console.error("解析房源信息失败:", error);
}
}
this.getRoomSelect(); this.getRoomSelect();
this.getUserGovenmentMoney(); this.getUserGovenmentMoney();
}, },
@ -379,7 +388,9 @@ export default {
page_size: 50, page_size: 50,
}).then((res) => { }).then((res) => {
this.roomList = res.rows; this.roomList = res.rows;
this.currentRoom = this.roomList[0]; if (!this.currentRoom.room_id) {
this.currentRoom = this.roomList[0]
}
this.selectedRoomId = this.currentRoom.room_id; this.selectedRoomId = this.currentRoom.room_id;
this.getOrderList().then(() => { this.getOrderList().then(() => {
resolve(); resolve();

View File

@ -49,7 +49,7 @@
</view> </view>
<view class="item"> <view class="item">
<view class="label fix"> <view class="label fix">
<text>物业费公积金总余额</text> <text>物业费总余额</text>
<u-icon <u-icon
name="info-circle-fill" name="info-circle-fill"
size="30rpx" size="30rpx"
@ -219,7 +219,7 @@ export default {
}); });
}, },
goPay() { goPay() {
NavgateTo("../propertyPayment/index"); NavgateTo("../propertyPayment/index?item=" + encodeURIComponent(JSON.stringify(this.defaultName)));
}, },
}, },
}; };

View File

@ -1,4 +1,3 @@
packages/customerService/index/index
<template> <template>
<view class="chat-container"> <view class="chat-container">
<!-- 聊天头部 --> <!-- 聊天头部 -->
@ -32,8 +31,8 @@ packages/customerService/index/index
'other': !message.isSelf, 'other': !message.isSelf,
'loading': message.isLoading 'loading': message.isLoading
}" class="message-item"> }" class="message-item">
<image :src="message.isSelf ? userAvatar : getAvatarUrl(message)" class="message-avatar" <image :src="message.isSelf ? userAvatar : getAvatarUrl(message)" class="message-avatar" mode="aspectFill">
mode="aspectFill"></image> </image>
<view class="message-content"> <view class="message-content">
{{ message.content }} {{ message.content }}
</view> </view>
@ -44,10 +43,9 @@ packages/customerService/index/index
<!-- 输入区域 --> <!-- 输入区域 -->
<view class="chat-input-area"> <view class="chat-input-area">
<view class="input-container"> <view class="input-container">
<textarea v-model="inputMessage" :adjust-position="true" auto-height class="message-input" <textarea v-model="inputMessage" :adjust-position="true" auto-height class="message-input" cursor-spacing="10"
cursor-spacing="10" enable-keyboard-accessory-view="true" hold-keyboard="true" maxlength="500" enable-keyboard-accessory-view="true" hold-keyboard="true" maxlength="500" placeholder="请输入消息..."
placeholder="请输入消息..." @blur="onInputBlur" @confirm="sendMessage" @focus="onInputFocus" @blur="onInputBlur" @confirm="sendMessage" @focus="onInputFocus" @input="handleInput"></textarea>
@input="handleInput"></textarea>
<button :disabled="inputMessage.trim() === ''" class="send-btn" @tap="sendMessage"> <button :disabled="inputMessage.trim() === ''" class="send-btn" @tap="sendMessage">
发送 发送
</button> </button>
@ -119,7 +117,10 @@ export default {
this.chatTarget = item this.chatTarget = item
console.log('客户找客服跳转:', this.chatTarget) console.log('客户找客服跳转:', this.chatTarget)
this.chatTarget.title = this.chatTarget.employee_name this.chatTarget.title = this.chatTarget.employee_name
this.getMqttConfig() this.getMqttConfig().then(() => {
//
this.initChat()
})
} else { } else {
// //
this.chatTarget = item this.chatTarget = item
@ -131,10 +132,10 @@ export default {
} else { } else {
this.chatTarget.openId = this.chatTarget.client_id_one this.chatTarget.openId = this.chatTarget.client_id_one
} }
}
}
// MQTT // MQTT
this.initChat() this.initChat()
}
}
// //
this.userAvatar = picUrl + uni.getStorageSync('headPhoto') this.userAvatar = picUrl + uni.getStorageSync('headPhoto')
}, },
@ -322,18 +323,16 @@ export default {
return return
} }
// //
// const formattedMessages = historyMessages.map(msg => ({
historyMessages.map(msg => (
this.messages = [{
content: msg.content, content: msg.content,
time: new Date(msg.create_time).getTime(), time: new Date(msg.create_time).getTime(),
isSelf: msg.send_client === this.chatTarget.openId, isSelf: msg.send_client === this.selfClientId, //
isLoading: false isLoading: false
}, ...this.messages])) // })).reverse(); //
// //
// this.messages = [...formattedMessages, ...this.messages] this.messages = [...formattedMessages, ...this.messages]
// //
this.pageNum++ this.pageNum++
@ -347,8 +346,8 @@ export default {
// //
loadMoreHistory(e) { loadMoreHistory(e) {
// //
if (!e || e.detail.direction === 'top') { if (e && e.detail.direction === 'top') {
if (!this.isLoadingHistory && this.hasMoreHistory) { if (!this.isLoadingHistory && this.hasMoreHistory) {
this.loadHistoryMessages() this.loadHistoryMessages()
} }
@ -365,7 +364,7 @@ export default {
console.log('需要发送的对象', this.chatTarget) console.log('需要发送的对象', this.chatTarget)
// //
const msgData = { const msgData = {
bind_id: this.chatTarget.bindId, // ID1 bind_id: this.chatTarget.bindId, // ID
send_client: this.selfClientId, // open_id send_client: this.selfClientId, // open_id
receive_client: this.chatTarget.openId, // open_id receive_client: this.chatTarget.openId, // open_id
type: 1, // 1 type: 1, // 1
@ -498,7 +497,7 @@ export default {
onUnload() { onUnload() {
// MQTT // MQTT
if (this.client) { if (this.client) {
this.client.disconnect() this.client.end()
} }
// //

View File

@ -5,12 +5,12 @@
<u-icon bold color="#fff" size="40" name="arrow-left" @click="back"></u-icon> <u-icon bold color="#fff" size="40" name="arrow-left" @click="back"></u-icon>
</view> </view>
</view> </view>
<div class="text1">物业费公积金</div> <div class="text1">物业费</div>
<div class="text2">{{banlance}}</div> <div class="text2">{{banlance}}</div>
<div class="total">全部房源合计</div> <div class="total">全部房源合计</div>
<div class="text3"> <div class="text3">
<span>全部房源</span> <span>全部房源</span>
物业费公积金流水 物业费流水
</div> </div>
<div class="orderList"> <div class="orderList">

View File

@ -58,7 +58,7 @@
<view class="btnList"> <view class="btnList">
<view class="btnItem" @click="payList">付款记录</view> <view class="btnItem" @click="payList">付款记录</view>
<!-- <view class="btnItem" @click="homeMoneList">物业费公积金</view> --> <!-- <view class="btnItem" @click="homeMoneList">物业费</view> -->
<view class="line"></view> <view class="line"></view>
<view class="btnItem" @click="home">首页</view> <view class="btnItem" @click="home">首页</view>
<view class="line"></view> <view class="line"></view>

View File

@ -197,8 +197,10 @@ export default {
title: '提交成功', title: '提交成功',
icon: 'success' icon: 'success'
}) })
// // 1
setTimeout(() => {
this.getInfo(this.taskId); this.getInfo(this.taskId);
}, 1000);
} catch (error) { } catch (error) {
uni.hideLoading(); uni.hideLoading();
console.error('提交失败', error) console.error('提交失败', error)

View File

@ -24,7 +24,7 @@
<!-- 余额变动记录 --> <!-- 余额变动记录 -->
<view class="records-container"> <view class="records-container">
<view class="records-title" v-if="topVal == '待收物业费'">物业费公积金变动记录</view> <view class="records-title" v-if="topVal == '待收物业费'">物业费变动记录</view>
<view v-if="records.length == 0"> <view v-if="records.length == 0">
<view class="records-list">暂无变动记录</view> <view class="records-list">暂无变动记录</view>
</view> </view>

View File

@ -73,6 +73,14 @@ page {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.search_input{
width: 55%;
height: 50rpx;
line-height: 50rpx;
padding: 0 15rpx;
color: #666;
}
.searchBox2 { .searchBox2 {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -33,8 +33,11 @@
</view> </view>
</view> </view>
</view> </view>
<input class="search_input" placeholder='请输入内容' confirm-type='search' @input="searchInput" <view class="search_input" @click="goSearchView">
@confirm="searchInput" :value="selectKeyWord" @click="goSearchView"/> 请输入内容
</view>
<!-- <input class="search_input" placeholder='请输入内容' confirm-type='search' @input="searchInput"
@confirm="searchInput" :value="selectKeyWord" @click="goSearchView"/> -->
</view> </view>
</view> </view>
</view> </view>

View File

@ -38,7 +38,7 @@
</view> </view>
<view class="section_label" @click="goWallet(2, userInfo)"> <view class="section_label" @click="goWallet(2, userInfo)">
<view>{{ userInfo.property_housing_fund }}</view> <view>{{ userInfo.property_housing_fund }}</view>
<view>物业费公积金</view> <view>物业费</view>
</view> </view>
<view class="section_label" @click="goWallet(3)"> <view class="section_label" @click="goWallet(3)">
<view>0</view> <view>0</view>