优化填写地址时可以自动换行

This commit is contained in:
WindowBird 2025-09-04 10:13:01 +08:00
parent a097fd6423
commit 23cdf42721

View File

@ -57,11 +57,11 @@
<!-- 详细位置 -->
<view class="form-item">
<text class="field-label">详细位置</text>
<input
<textarea
v-model="formData.detailed"
class="field-input"
auto-height
class="field-textarea"
placeholder="例:6栋201室"
@input="onDetailAddressInput"
/>
</view>
@ -466,17 +466,6 @@ export default {
},
})
},
// tabBar
goToHome() {
uni.switchTab({
url: '/pages/index/index',
})
},
goToProfile() {
uni.switchTab({
url: '/pages/profile/profile',
})
},
},
}
</script>
@ -563,7 +552,7 @@ export default {
.field-input {
//border: 2rpx solid #d81313;
flex: 3;
height: 80rpx;
min-height: 80rpx;
padding: 0 20rpx;
font-size: 28rpx;
@ -572,6 +561,14 @@ export default {
background: #fff;
}
}
.field-textarea {
//border: 2rpx solid #d81313;
flex: 3;
min-height: 28rpx;
padding: 26rpx 20rpx;
font-size: 28rpx;
}
}
}