jufubao-base 1.0.142 → 1.0.143-beta1
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
|
@@ -308,23 +308,23 @@ export default {
|
|
|
308
308
|
if (this.isCheck(address)) {
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
|
-
if(!address.latitude||!address.longitude) {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}
|
|
311
|
+
// if(!address.latitude||!address.longitude) {
|
|
312
|
+
// this.$xdConfirm({
|
|
313
|
+
// content: "因版本升级,为了确保您能正常收货,请重新选取所在地区!",
|
|
314
|
+
// zIndex: 3200,
|
|
315
|
+
// isClose: false,
|
|
316
|
+
// cancel: false,
|
|
317
|
+
// showClose: false,
|
|
318
|
+
// confirmText: "我知道了",
|
|
319
|
+
// $vm: this
|
|
320
|
+
// });
|
|
321
|
+
// return
|
|
322
|
+
// }
|
|
323
323
|
let params = this.getParams(address);
|
|
324
324
|
console.log(params, "321321321");
|
|
325
325
|
params["tag"] = 0;
|
|
326
|
-
params["latitude"] = address.latitude ? address.latitude + "" : "";
|
|
327
|
-
params["longitude"] = address.longitude ? address.longitude + "" : "";
|
|
326
|
+
// params["latitude"] = address.latitude ? address.latitude + "" : "";
|
|
327
|
+
// params["longitude"] = address.longitude ? address.longitude + "" : "";
|
|
328
328
|
this.$xdShowLoading({});
|
|
329
329
|
if (params["address_nnid"]) {
|
|
330
330
|
params["is_select"] = "Y";
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
@confirm="doneInput"
|
|
22
22
|
placeholder="收货人"
|
|
23
23
|
:adjust-position="false"
|
|
24
|
-
|
|
24
|
+
@blur="handleUsername"
|
|
25
|
+
maxlength="25"
|
|
25
26
|
v-model="receipt_username"
|
|
26
27
|
/>
|
|
27
28
|
</view>
|
|
@@ -39,7 +40,9 @@
|
|
|
39
40
|
@confirm="doneInput"
|
|
40
41
|
placeholder="手机号码"
|
|
41
42
|
:adjust-position="false"
|
|
43
|
+
maxlength="11"
|
|
42
44
|
v-model="receipt_phone"
|
|
45
|
+
@blur="handlePhone"
|
|
43
46
|
/>
|
|
44
47
|
</view>
|
|
45
48
|
<view
|
|
@@ -69,7 +72,7 @@
|
|
|
69
72
|
:style="{ borderColor: styleMainColor, width: '95%' }"
|
|
70
73
|
></view>
|
|
71
74
|
</view>
|
|
72
|
-
<view class="xd-address__body-item">
|
|
75
|
+
<!-- <view class="xd-address__body-item">
|
|
73
76
|
<view class="xd-address__body-item-label">详细地址</view>
|
|
74
77
|
<view class="xd-address__body-item-input">
|
|
75
78
|
<view style="color: #bbb" v-if="!receipt_address">详细地址</view>
|
|
@@ -81,8 +84,8 @@
|
|
|
81
84
|
class="xd-address__body-item-line"
|
|
82
85
|
:style="{ borderColor: styleMainColor }"
|
|
83
86
|
></view>
|
|
84
|
-
</view>
|
|
85
|
-
|
|
87
|
+
</view> -->
|
|
88
|
+
<view class="xd-address__body-item">
|
|
86
89
|
<view class="xd-address__body-item-label">详细地址</view>
|
|
87
90
|
<view class="xd-address__body-item-input">
|
|
88
91
|
<textarea
|
|
@@ -93,7 +96,7 @@
|
|
|
93
96
|
:adjust-position="false"
|
|
94
97
|
:focus="focus"
|
|
95
98
|
auto-height
|
|
96
|
-
maxlength="
|
|
99
|
+
maxlength="50"
|
|
97
100
|
:selection-start="focusNumber"
|
|
98
101
|
v-model="receipt_address"
|
|
99
102
|
></textarea>
|
|
@@ -102,8 +105,8 @@
|
|
|
102
105
|
class="xd-address__body-item-line"
|
|
103
106
|
:style="{ borderColor: styleMainColor }"
|
|
104
107
|
></view>
|
|
105
|
-
</view>
|
|
106
|
-
<view class="xd-address__body-item">
|
|
108
|
+
</view>
|
|
109
|
+
<!-- <view class="xd-address__body-item">
|
|
107
110
|
<view class="xd-address__body-item-label">门牌号</view>
|
|
108
111
|
<view class="xd-address__body-item-input">
|
|
109
112
|
<textarea
|
|
@@ -126,7 +129,7 @@
|
|
|
126
129
|
class="xd-address__body-item-line"
|
|
127
130
|
:style="{ borderColor: styleMainColor }"
|
|
128
131
|
></view>
|
|
129
|
-
</view>
|
|
132
|
+
</view> -->
|
|
130
133
|
</view>
|
|
131
134
|
<view class="xd-address__set">
|
|
132
135
|
<view>设为默认地址</view>
|
|
@@ -266,7 +269,7 @@ export default {
|
|
|
266
269
|
|
|
267
270
|
random: new Date().getTime(),
|
|
268
271
|
|
|
269
|
-
needHand:
|
|
272
|
+
needHand: true, //是否需要手动选择所在地区
|
|
270
273
|
};
|
|
271
274
|
},
|
|
272
275
|
computed: {
|
|
@@ -470,6 +473,14 @@ export default {
|
|
|
470
473
|
});
|
|
471
474
|
},
|
|
472
475
|
|
|
476
|
+
handleUsername(e) {
|
|
477
|
+
this.receipt_username = e.detail.value.replace(/[^\u4e00-\u9fa5\w]/g, '');
|
|
478
|
+
},
|
|
479
|
+
|
|
480
|
+
handlePhone(e) {
|
|
481
|
+
this.receipt_phone = e.detail.value.replace(/[^\d]/g, '');
|
|
482
|
+
},
|
|
483
|
+
|
|
473
484
|
/**
|
|
474
485
|
* @description 保存事件
|
|
475
486
|
*/
|