修复bug,修改图片路径地址
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
@click="publicClick"
|
||||
style="margin-right: 20rpx;"
|
||||
>
|
||||
<image src="https://wuyeadmin.bugtc.com/images/repair/publicRepair.png" style="width: 100%;height: 100%;"></image>
|
||||
<image src="https://wuye.ckdzkj.com/images/repair/publicRepair.png" style="width: 100%;height: 100%;"></image>
|
||||
<!-- <uni-icons type="staff" size="24" color="#fff"></uni-icons> -->
|
||||
<!-- <text class="type-text">公共报修</text> -->
|
||||
</view>
|
||||
@@ -19,7 +19,7 @@
|
||||
:class="{ active: activeType === 'personal' }"
|
||||
@click="personalClick"
|
||||
>
|
||||
<image src="https://wuyeadmin.bugtc.com/images/repair/personalRepair.png" style="width: 100%;height: 100%;"></image>
|
||||
<image src="https://wuye.ckdzkj.com/images/repair/personalRepair.png" style="width: 100%;height: 100%;"></image>
|
||||
<!-- <uni-icons type="person" size="24" color="#fff"></uni-icons> -->
|
||||
<!-- <text class="type-text">个人报修</text> -->
|
||||
</view>
|
||||
@@ -168,7 +168,7 @@ const fetchRepairList = async (reset = false) => {
|
||||
total.value = Number(res.total) || 0;
|
||||
const mapped = list.map(item => {
|
||||
const statusInfo = getStatusInfo(item.problemStatus);
|
||||
const images = item.problemImageUrl ? item.problemImageUrl.split(',').filter(Boolean) : [];
|
||||
const images = item.problemImageUrl ? item.problemImageUrl.split(',').filter(Boolean).slice(0, 3) : [];
|
||||
if (statusInfo) {
|
||||
return { ...item, status: statusInfo.text, statusClass: statusInfo.class, imageList: images };
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<!-- 已上传图片 -->
|
||||
<view class="upload-item" v-for="(img, index) in form.images" :key="index">
|
||||
<image :src="img" mode="aspectFill" class="upload-img" @click="previewImage(img)"></image>
|
||||
<image src="https://wuyeadmin.bugtc.com/images/imgs/delete.png" class="upload-delete" @click="deleteImage(index)"></image>
|
||||
<image src="https://wuye.ckdzkj.com/images/imgs/delete.png" class="upload-delete" @click="deleteImage(index)"></image>
|
||||
</view>
|
||||
<!-- 上传按钮 -->
|
||||
<view class="upload-btn" @click="chooseImage" v-if="form.images.length < 9">
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<!-- 已上传图片 -->
|
||||
<view class="upload-item" v-for="(img, index) in form.images" :key="index">
|
||||
<image :src="img" mode="aspectFill" class="upload-img"></image>
|
||||
<image src="https://wuyeadmin.bugtc.com/images/imgs/delete.png" class="upload-delete" @click="deleteImage(index)"></image>
|
||||
<image src="https://wuye.ckdzkj.com/images/imgs/delete.png" class="upload-delete" @click="deleteImage(index)"></image>
|
||||
<!-- <uni-icons type="close" size="16" @click="deleteImage(index)"></uni-icons> -->
|
||||
</view>
|
||||
<!-- 上传按钮 -->
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<!-- 报修信息模块 -->
|
||||
<view class="info-section">
|
||||
<view class="section-title">报修信息</view>
|
||||
<view class="info-item">
|
||||
<view class="info-item" v-if="!repairInfo.isPublic">
|
||||
<view class="info-label">报修房屋</view>
|
||||
<view class="info-value">{{repairInfo.house}}</view>
|
||||
</view>
|
||||
@@ -65,9 +65,9 @@
|
||||
</view>
|
||||
|
||||
<!-- 联系物业按钮 -->
|
||||
<!-- <view class="btn-container">
|
||||
<view class="btn-container">
|
||||
<button class="contact-btn" @click="contactProperty">联系物业</button>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -87,7 +87,8 @@ const repairInfo = ref({
|
||||
phone: '',
|
||||
orderDate:'',
|
||||
time: '',
|
||||
images: []
|
||||
images: [],
|
||||
isPublic: false
|
||||
})
|
||||
|
||||
// 步骤状态
|
||||
@@ -118,7 +119,9 @@ const mapData = (data) => {
|
||||
phone: data.phone || '',
|
||||
orderDate: data.orderDate || '',
|
||||
time: data.createTime || '',
|
||||
images
|
||||
images,
|
||||
// 公共报修不展示报修房屋
|
||||
isPublic: data.projectTypeStr === '公共报修'
|
||||
}
|
||||
setStep(data.problemStatus)
|
||||
// 三个步骤时间赋值
|
||||
@@ -162,16 +165,17 @@ const previewImage = (url) => {
|
||||
}
|
||||
|
||||
// 联系物业按钮点击事件
|
||||
// const contactProperty = () => {
|
||||
// uni.makePhoneCall({
|
||||
// phoneNumber: '物业电话' // 换成真实电话
|
||||
// })
|
||||
// }
|
||||
const contactProperty = () => {
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/service-list/contactProperty'
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.repair-detail-container {
|
||||
padding: 16px;
|
||||
padding-bottom: 100px;
|
||||
background-color: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
}
|
||||
@@ -286,7 +290,14 @@ const previewImage = (url) => {
|
||||
}
|
||||
|
||||
.btn-container {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 16px;
|
||||
padding-bottom: calc(16px + env(safe-area-inset-bottom));
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.contact-btn {
|
||||
@@ -297,6 +308,7 @@ const previewImage = (url) => {
|
||||
height: 48px;
|
||||
font-size: 16px;
|
||||
width: 100%;
|
||||
line-height: 3;
|
||||
}
|
||||
|
||||
.contact-btn::after {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
v-for="item in houseList"
|
||||
:key="item.id"
|
||||
>
|
||||
<image src="https://wuyeadmin.bugtc.com/images/repair/house.png" style="width: 48rpx;height: 48rpx;"></image>
|
||||
<image src="https://wuye.ckdzkj.com/images/repair/house.png" style="width: 48rpx;height: 48rpx;"></image>
|
||||
<view class="house-name">
|
||||
{{ item.villageName }}
|
||||
<view class="house-detail">{{item.unitNo}}-{{item.floorNo}}-{{item.houseNo}}</view>
|
||||
|
||||
Reference in New Issue
Block a user