This commit is contained in:
Zy
2026-06-09 10:10:43 +08:00
parent 93504e2a06
commit 0572000821
9 changed files with 55 additions and 18 deletions

View File

@@ -26,6 +26,7 @@
<uni-forms-item label="房屋号">
<view @tap="handleClick" style="width: 100%">
<uni-easyinput
class="easy-ellipsis-1"
:inputBorder="false"
disabled
v-model="houseName"
@@ -84,6 +85,7 @@ function handleClick() {
/** 处理 扫码 */
function handleScan() {
uni.scanCode({
scanType: ['barCode', 'qrCode', 'datamatrix', 'pdf417'],
success: function (res) {
formData.value.deviceCode = res.result
},
@@ -133,7 +135,7 @@ function handleSubmit() {
<style lang="scss" scoped>
.addreplacement_box {
background: #ffffff;
padding-top: 0;
&:deep(.uni-forms-item) {
display: flex;
align-items: center;
@@ -166,4 +168,9 @@ function handleSubmit() {
margin-left: 20rpx;
}
}
.easy-ellipsis-1:deep(.uni-easyinput__content-input) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>

View File

@@ -35,13 +35,10 @@
active: checkoutHouseid === item.houseId
}"
>
<view class="flex items-center flex-1">
<!-- checkout -->
<view class="housepath flex items-center flex-1">
<radio color="#4d5dfa" :value="item.houseId" />
<!-- housename -->
<text class="address">{{ item.addressCn ?? item.addressHyphen }}</text>
</view>
<!-- username -->
<view class="username">{{ item.residentName }}</view>
</view>
</label>
@@ -221,12 +218,22 @@ function handleSelecthouse() {
&:deep(radio) {
transform: scale(0.68);
}
.housepath {
overflow: hidden;
}
.address {
margin-left: 20rpx;
font-weight: 550;
font-size: 32rpx;
color: #222222;
line-height: 40rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; /* 控制行数,2行就写2 */
-webkit-box-orient: vertical;
word-break: break-all; /* 自动换行 */
}
.username {
@@ -236,6 +243,7 @@ function handleSelecthouse() {
line-height: 40rpx;
width: 180rpx;
text-align: left;
margin-left: 10rpx;
}
&.active {
background: #f5faff;