jufubao-base 1.0.142 → 1.0.143-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 +1 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +14 -14
- package/src/components/JfbBaseAddress/XdAddress.vue +20 -9
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +1 -1
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +8 -3
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +11 -1
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
|
*/
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<view
|
|
97
97
|
class="jfb-base-order-list__body-order-item-content"
|
|
98
98
|
v-for="(Sitem, Sindex) in item.products"
|
|
99
|
-
:key="
|
|
99
|
+
:key="Sitem.key"
|
|
100
100
|
v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']">
|
|
101
101
|
<image
|
|
102
102
|
:src="Sitem.product_thumb"
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
class="jfb-base-order-list__body-order-item-pay"
|
|
176
176
|
v-if="item.buttons.length"
|
|
177
177
|
>
|
|
178
|
-
<view v-for="(btn,index) in item.buttons" :key="btn.
|
|
178
|
+
<view v-for="(btn,index) in item.buttons" :key="btn.key">
|
|
179
179
|
<xd-button
|
|
180
180
|
:type="getBtnType(btn.action)"
|
|
181
181
|
size="mini"
|
|
@@ -457,12 +457,17 @@ export default {
|
|
|
457
457
|
console.log(res.list, "list");
|
|
458
458
|
let list = res.list.map((item) => {
|
|
459
459
|
item["isOpen"] = false;
|
|
460
|
-
item.products = item.products.map((prod) => {
|
|
460
|
+
item.products = item.products.map((prod, i) => {
|
|
461
|
+
prod['key'] = prod.product_id + i;
|
|
461
462
|
prod["product_thumb"] = prod.product_thumb
|
|
462
463
|
? getServiceUrl(prod.product_thumb)
|
|
463
464
|
: "";
|
|
464
465
|
return prod;
|
|
465
466
|
});
|
|
467
|
+
item.buttons = item.buttons.map((btn, i) => {
|
|
468
|
+
btn["key"] = btn.action + i;
|
|
469
|
+
return btn;
|
|
470
|
+
})
|
|
466
471
|
item["created_time_text"] = this.$xdUniHelper.getDate(
|
|
467
472
|
item["created_time"] * 1000
|
|
468
473
|
).fullTime;
|
|
@@ -17,16 +17,24 @@
|
|
|
17
17
|
</view>
|
|
18
18
|
<!-- #endif -->
|
|
19
19
|
<view class="jfb-base-search__body" :style="{height:layoutInfo.bodyMinHeightRpx+'rpx'}" v-if="layoutInfo!==null">
|
|
20
|
+
<!--#ifdef H5-->
|
|
20
21
|
<xd-baidu-search
|
|
21
22
|
@onSelect="handleSelect"
|
|
22
23
|
></xd-baidu-search>
|
|
24
|
+
<!-- #endif -->
|
|
25
|
+
|
|
26
|
+
<!-- #ifdef MP-WEIXIN -->
|
|
27
|
+
base Search
|
|
28
|
+
<!-- #endif -->
|
|
23
29
|
</view>
|
|
24
30
|
</view>
|
|
25
31
|
</template>
|
|
26
32
|
|
|
27
33
|
<script>
|
|
28
34
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
35
|
+
// #ifdef H5
|
|
29
36
|
import XdBaiduSearch from "./XdBaiduSearch";
|
|
37
|
+
// #endif
|
|
30
38
|
import {jfbRootExec} from "@/utils/xd.event";
|
|
31
39
|
import JfbBaseSearchMixin from "./JfbBaseSearchMixin";
|
|
32
40
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
@@ -37,7 +45,9 @@
|
|
|
37
45
|
name: "JfbBaseSearch",
|
|
38
46
|
components: {
|
|
39
47
|
XdFontIcon,
|
|
40
|
-
|
|
48
|
+
// #ifdef H5
|
|
49
|
+
XdBaiduSearch,
|
|
50
|
+
// #endif
|
|
41
51
|
},
|
|
42
52
|
mixins: [componentsMixins,extsMixins,JfbBaseSearchMixin],
|
|
43
53
|
data() {
|