6/16,同步

This commit is contained in:
Zy
2026-06-16 14:11:17 +08:00
parent 3a91b14fce
commit 7c5497d229
13 changed files with 230 additions and 188 deletions

View File

@@ -3,26 +3,25 @@
<view class="repairCompleted">
<view class="item">
<view class="title">
<text>问题描述</text>
<text>维修描述</text>
</view>
<view class="descrition">
<textarea
:maxlength="500"
v-model="form.descrition"
auto-height
style="width: 100%"
placeholder-style="color:#e8e8e8;"
placeholder="请描述您的问题"
placeholder="请输入您的描述"
/>
<view class="maxlength"> {{ form.descrition.length }}/500 </view>
</view>
</view>
<view class="item">
<view class="title">
<text>问题照片</text>
<text>维修图片</text>
</view>
<view class="">
<!-- <uni-file-picker v-model="form.images" file-mediatype="image">
<view class="addimages images flex flex-center">
<uni-icons type="plusempty" color="#a6a6a6" size="27"></uni-icons>
</view>
</uni-file-picker> -->
<filePicker
v-model="form.images"
file-field-name="file"
@@ -64,14 +63,13 @@ function handleSelecthouse() {
obj.repairImageUrl = form.value.images.join(',')
}
ticketComputed(obj)
.then(() => {
.then(res => {
uni.navigateBack()
PushSingle()
})
.catch(() => {
.catch(err => {
uni.showToast({
icon: 'error',
title: '网络错误'
title: '提交错误'
})
})
}
@@ -96,10 +94,22 @@ function handleSelecthouse() {
line-height: 36rpx;
}
.descrition {
height: 200rpx;
min-height: 200rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx;
border: 2rpx solid #ececec;
padding: 22rpx 18rpx;
box-sizing: border-box;
position: relative;
padding-bottom: 40rpx;
.maxlength {
font-size: small;
position: absolute;
right: 1em;
bottom: 0.5em;
height: 22rpx;
line-height: 22rpx;
color: #e8e8e8;
}
}
.imageboxs {
display: grid;