提交 674d483fff730bda114f47e7f8e2f1cb21c1d55b

作者 pangy
1 个父辈 ed2f5b1f

优化picker文字过长bug

... ... @@ -170,4 +170,10 @@
170 170 }
171 171 .head_in{
172 172 margin-left: 26rpx;
  173 +}
  174 +/*---------行数控制,溢出部分显示‘...’-------*/
  175 +.text-single{
  176 + overflow: hidden;
  177 + text-overflow:ellipsis;
  178 + white-space:nowrap;
173 179 }
\ No newline at end of file
... ...
... ... @@ -14,8 +14,8 @@
14 14
15 15 <view class="weui-cell__bd">
16 16 <picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'>
17   - <text wx:if="{{selected&&disabled}}" class="text_black_30 float_right" style='line-height: 90rpx;'>{{selected}}</text>
18   - <text wx:elif="{{selected}}" class="text_black_30 float_right " style='line-height: 90rpx;'>{{selected}}</text>
  17 + <text wx:if="{{selected&&disabled}}" class="text_black_30 float_right text-single" style='line-height: 90rpx;text-align:right;max-width:{{maxWidth}}rpx;'>{{selected}}</text>
  18 + <text wx:elif="{{selected}}" class="text_black_30 float_right text-single" style="line-height: 90rpx;text-align:right;max-width:{{maxWidth}}rpx;">{{selected}}</text>
19 19 <text wx:else class="text_999_30 float_right " style='line-height: 90rpx;'>{{placeholder}}</text>
20 20 </picker>
21 21 </view>
... ...
... ... @@ -377,7 +377,7 @@ Page({
377 377 label: '租赁房屋坐落地址',
378 378 mode: 'region',
379 379 isrequre: true,
380   - isrequre: true,
  380 + maxWidth: 375,
381 381 bindtype: 'rent_house_locate',
382 382 isblack: 'true',
383 383 address_code: ['', '', ''],
... ...
... ... @@ -65,6 +65,7 @@ Page({
65 65 bankInfo: {
66 66 label: '开户银行',
67 67 bindtype: 'bank',
  68 + maxWidth:490,
68 69 placeholder: '请选择开户银行',
69 70 selected: '',
70 71 onChange: 'onPickerSelect'
... ... @@ -197,6 +198,7 @@ Page({
197 198 },
198 199 currentaddressInfo: {
199 200 label: '经常居住地址',
  201 + maxWidth: 430,
200 202 mode: 'region',
201 203 address_code: ['', '', ''],
202 204 address_value: ['', '', ''],
... ... @@ -207,6 +209,7 @@ Page({
207 209 birthaddressInfo: {
208 210 label: '户籍地址',
209 211 mode: 'region',
  212 + maxWidth: 490,
210 213 address_code: ['', '', ''],
211 214 address_value: ['', '', ''],
212 215 selected: '',
... ...
... ... @@ -153,7 +153,7 @@
153 153 <template is="picker_cell_normal" data="{{...disabilityInfo}}" />
154 154 <view class="divide_line_30" hidden="{{disabilityInfo.selected!='是'}}"></view>
155 155 <view class='item_body' hidden="{{disabilityInfo.selected!='是'}}">
156   - <text class='text_666_30 float_left'>残疾证号</text>
  156 + <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>残疾证号</text>
157 157 <input class='input_wrap float_right' name='disability_no' type='number' value='{{taxInfo.disability_no}}' placeholder-class='text_999_30' placeholder='请输入残疾证号' maxlength='24'></input>
158 158 </view>
159 159 <view class="divide_line_30"></view>
... ... @@ -161,7 +161,7 @@
161 161 <template is="picker_cell_normal" data="{{...lieshuInfo}}" />
162 162 <view class="divide_line_30" hidden="{{lieshuInfo.selected!='是'}}"></view>
163 163 <view class='item_body' hidden="{{lieshuInfo.selected!='是'}}">
164   - <text class='text_666_30 float_left'>烈属证号</text>
  164 + <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>烈属证号</text>
165 165 <input class='input_wrap float_right' name='martyr_family_no' type='number' value='{{taxInfo.martyr_family_no}}' placeholder-class='text_999_30' placeholder='请输入烈属证号' maxlength='24'></input>
166 166 </view>
167 167 <view class="divide_line_30"></view>
... ...
注册登录 后发表评论