This commit is contained in:
aihe 2024-06-11 17:31:02 +08:00
parent 6a0b8d1b08
commit 0bb3b0269a
3 changed files with 18 additions and 13 deletions

View File

@ -5,12 +5,12 @@
<view>
<image style="height: 50rpx;width: 42rpx;" :src="getCdnUrl(`post/ji.png`)"></image>
</view>
<view style="flex: 1;padding: 0 30rpx;">
<view style="flex: 1;">
<template v-if="modelInfo.sender && modelInfo.sender.name">
<view style="width: 420rpx;padding: 0 30rpx;">
<view>
<view v-if="modelInfo.sender && modelInfo.sender.name" style="word-wrap: break-word;">
<text class="font-weight pr-10">{{modelInfo.sender.name}}</text>
<text class="">{{modelInfo.sender.phone}}</text>
</template>
<text class="font-weight">{{modelInfo.sender.phone}}</text>
</view>
<template v-else>
<text class="font-weight">寄件人信息</text>
</template>
@ -41,12 +41,12 @@
<image style="height: 50rpx;width: 42rpx;" :src="getCdnUrl(`post/shou.png`)">
</image>
</view>
<view class="pr-30 pl-30" style="flex: 1;">
<view style="flex: 1;">
<template v-if="modelInfo.reciever && modelInfo.reciever.name">
<view style="width: 420rpx;padding: 0 30rpx;">
<view >
<view v-if="modelInfo.reciever && modelInfo.reciever.name" style="word-wrap: break-word;">
<text class="font-weight pr-10">{{modelInfo.reciever.name}}</text>
<text class="">{{modelInfo.reciever.phone}}</text>
</template>
<text class="font-weight">{{modelInfo.reciever.phone}}</text>
</view>
<template v-else>
<text class="font-weight">收件人信息</text>
</template>

View File

@ -3,7 +3,7 @@
:custom-style="inputStyle" :readonly="readonly" :type="type" :inputAlign="inputAlign"
:placeholder-style="`color: #999;${placeholderStyle};` " @change="handleChange"
@blur="handleFocus" @focus="handleBlur"
:formatter="formatter" :disabled="disabled"
:formatter="formatter" :disabled="disabled" :focus="autoFocus"
>
<template v-if="suffix" #suffix>
<text class="font-26 clr-sub pl-10">{{suffix}}</text>
@ -92,6 +92,11 @@
return ''
}
},
autoFocus: {
default () {
return false
}
},
},
data() {
return {

View File

@ -16,7 +16,7 @@
<view style="height: calc(60vh);">
<tpx-scroll-view :resObject="filResObject" :searchParam="filDataSearchParam" :getListFun="getListFun" size="sm" :showLoadedAll="false" @onListChange="onListChange">
<view v-if="showKeyWord" class="mb-10">
<tpx-input v-model:value="keyword" placeholder="请输入关键字" @change="handleKeyWordChange"></tpx-input>
<tpx-input v-model:value="keyword" :autoFocus="show" placeholder="请输入关键字" @change="handleKeyWordChange"></tpx-input>
</view>
<content-items :value="value" :list="filDataList" :checkedList="filDatacheckedList" :minChecked="minChecked" :type="type"
:text="text" :vdataType="vdataType" :transKeyVal="transKeyVal"
@ -31,7 +31,7 @@
<view v-if="mode == modeEnum.drop && show" class="md-drop-cont">
<tpx-scroll-view :maxHeight="dropMaxHeight" :resObject="filResObject" :searchParam="filDataSearchParam" :getListFun="getListFun" size="sm" :showLoadedAll="false" @onListChange="onListChange">
<view v-if="showKeyWord" class="mb-10">
<tpx-input v-model:value="keyword" placeholder="请输入关键字" @change="handleKeyWordChange"></tpx-input>
<tpx-input v-model:value="keyword" :autoFocus="show" placeholder="请输入关键字" @change="handleKeyWordChange"></tpx-input>
</view>
<content-items :value="value" :list="filDataList" :minChecked="minChecked" :type="type"
:text="text" :vdataType="vdataType" :transKeyVal="transKeyVal"