jufubao-base 1.0.143-beta1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.143-beta1",
3
+ "version": "1.0.143-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -394,7 +394,7 @@ export default {
394
394
  flex: none;
395
395
  }
396
396
  }
397
- & > :last-child{
397
+ & > view:last-child{
398
398
  .skeleton-wrap &{
399
399
  .skeleton-item(300rpx);
400
400
  }
@@ -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="getKey(Sitem.product_id,Sindex)"
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.action+index">
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
- XdBaiduSearch
48
+ // #ifdef H5
49
+ XdBaiduSearch,
50
+ // #endif
41
51
  },
42
52
  mixins: [componentsMixins,extsMixins,JfbBaseSearchMixin],
43
53
  data() {