jufubao-base 1.0.143-beta2 → 1.0.145-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
|
@@ -323,6 +323,8 @@ export default {
|
|
|
323
323
|
let params = this.getParams(address);
|
|
324
324
|
console.log(params, "321321321");
|
|
325
325
|
params["tag"] = 0;
|
|
326
|
+
//区分新老版本组件生成的地址,帮助后端做新老地址兼容,默认为true
|
|
327
|
+
params['is_new'] = true;
|
|
326
328
|
// params["latitude"] = address.latitude ? address.latitude + "" : "";
|
|
327
329
|
// params["longitude"] = address.longitude ? address.longitude + "" : "";
|
|
328
330
|
this.$xdShowLoading({});
|
|
@@ -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="Sitem.
|
|
99
|
+
:key="getKey(Sitem.product_id,Sindex)"
|
|
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.action+index">
|
|
179
179
|
<xd-button
|
|
180
180
|
:type="getBtnType(btn.action)"
|
|
181
181
|
size="mini"
|
|
@@ -457,17 +457,12 @@ 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
|
|
461
|
-
prod['key'] = prod.product_id + i;
|
|
460
|
+
item.products = item.products.map((prod) => {
|
|
462
461
|
prod["product_thumb"] = prod.product_thumb
|
|
463
462
|
? getServiceUrl(prod.product_thumb)
|
|
464
463
|
: "";
|
|
465
464
|
return prod;
|
|
466
465
|
});
|
|
467
|
-
item.buttons = item.buttons.map((btn, i) => {
|
|
468
|
-
btn["key"] = btn.action + i;
|
|
469
|
-
return btn;
|
|
470
|
-
})
|
|
471
466
|
item["created_time_text"] = this.$xdUniHelper.getDate(
|
|
472
467
|
item["created_time"] * 1000
|
|
473
468
|
).fullTime;
|
|
@@ -17,24 +17,16 @@
|
|
|
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-->
|
|
21
20
|
<xd-baidu-search
|
|
22
21
|
@onSelect="handleSelect"
|
|
23
22
|
></xd-baidu-search>
|
|
24
|
-
<!-- #endif -->
|
|
25
|
-
|
|
26
|
-
<!-- #ifdef MP-WEIXIN -->
|
|
27
|
-
base Search
|
|
28
|
-
<!-- #endif -->
|
|
29
23
|
</view>
|
|
30
24
|
</view>
|
|
31
25
|
</template>
|
|
32
26
|
|
|
33
27
|
<script>
|
|
34
28
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
35
|
-
// #ifdef H5
|
|
36
29
|
import XdBaiduSearch from "./XdBaiduSearch";
|
|
37
|
-
// #endif
|
|
38
30
|
import {jfbRootExec} from "@/utils/xd.event";
|
|
39
31
|
import JfbBaseSearchMixin from "./JfbBaseSearchMixin";
|
|
40
32
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
@@ -45,9 +37,7 @@
|
|
|
45
37
|
name: "JfbBaseSearch",
|
|
46
38
|
components: {
|
|
47
39
|
XdFontIcon,
|
|
48
|
-
|
|
49
|
-
XdBaiduSearch,
|
|
50
|
-
// #endif
|
|
40
|
+
XdBaiduSearch
|
|
51
41
|
},
|
|
52
42
|
mixins: [componentsMixins,extsMixins,JfbBaseSearchMixin],
|
|
53
43
|
data() {
|