jufubao-base 1.0.256-beta1 → 1.0.256-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.256-beta1",
3
+ "version": "1.0.256-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -21,10 +21,11 @@
21
21
  placeholder-class="xd-address__body-item-input-placeholder"
22
22
  @confirm="doneInput"
23
23
  placeholder="收货人"
24
- :adjust-position="true"
24
+ :adjust-position="false"
25
25
  @blur="handleUsername"
26
26
  maxlength="25"
27
27
  v-model="receipt_username"
28
+ @keyboardheightchange="handleKeyBoardHeightChange"
28
29
  />
29
30
  </view>
30
31
  <view
@@ -41,10 +42,11 @@
41
42
  placeholder-class="xd-address__body-item-input-placeholder"
42
43
  @confirm="doneInput"
43
44
  placeholder="手机号码"
44
- :adjust-position="true"
45
+ :adjust-position="false"
45
46
  maxlength="11"
46
47
  v-model="receipt_phone"
47
48
  @blur="handlePhone"
49
+ @keyboardheightchange="handleKeyBoardHeightChange"
48
50
  />
49
51
  </view>
50
52
  <view
@@ -95,13 +97,14 @@
95
97
  placeholder-class="xd-address__body-item-input-placeholder"
96
98
  @confirm="doneInput"
97
99
  placeholder="详细地址"
98
- :adjust-position="true"
100
+ :adjust-position="false"
99
101
  :cursor-spacing="10"
100
102
  :focus="focus"
101
103
  auto-height
102
104
  maxlength="50"
103
105
  :selection-start="focusNumber"
104
106
  v-model="receipt_address"
107
+ @keyboardheightchange="handleKeyBoardHeightChange"
105
108
  ></textarea>
106
109
  </view>
107
110
  <view
@@ -156,6 +159,7 @@
156
159
  ></xd-switch> -->
157
160
  </view>
158
161
  </view>
162
+ <view :style="{height:blockHeight+'px',width:'100%'}"></view>
159
163
  <view class="xd-address__btn">
160
164
  <xd-button type="primary" @click="save">保存</xd-button>
161
165
  </view>
@@ -273,6 +277,7 @@ export default {
273
277
  random: new Date().getTime(),
274
278
 
275
279
  needHand: true, //是否需要手动选择所在地区
280
+ blockHeight: 0
276
281
  };
277
282
  },
278
283
  computed: {
@@ -341,6 +346,9 @@ export default {
341
346
  },
342
347
 
343
348
  methods: {
349
+ handleKeyBoardHeightChange(e){
350
+ this.blockHeight=e.detail.height
351
+ },
344
352
  handleRegion() {
345
353
  if (this.needHand) {
346
354
  this.isShowAddress = !this.isShowAddress;
@@ -487,6 +495,7 @@ export default {
487
495
  },
488
496
 
489
497
  handleUsername(e) {
498
+ this.blockHeight=0;
490
499
  this.receipt_username = e.detail.value.replace(/[^\u4e00-\u9fa5\w]/g, '');
491
500
  },
492
501