jufubao-base 1.0.160-beta1 → 1.0.162-beta10

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.
Files changed (50) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderDetail/Attr.js +9 -0
  3. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +40 -75
  4. package/src/components/JfbBaseAfterOrderDetail/Mock.js +3 -2
  5. package/src/components/JfbBaseAfterOrderList/Attr.js +9 -0
  6. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +63 -83
  7. package/src/components/JfbBaseAfterOrderList/Mock.js +8 -0
  8. package/src/components/JfbBaseCard/Attr.js +220 -194
  9. package/src/components/JfbBaseCard/JfbBaseCard.vue +50 -17
  10. package/src/components/JfbBaseCard/Mock.js +7 -6
  11. package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +2 -0
  12. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +3 -3
  13. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +2 -2
  14. package/src/components/JfbBaseCardEntry/Attr.js +12 -0
  15. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +35 -2
  16. package/src/components/JfbBaseCardEntry/Mock.js +1 -0
  17. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +43 -32
  18. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +27 -8
  19. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +32 -13
  20. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +61 -24
  21. package/src/components/JfbBaseCardV2/Attr.js +39 -2
  22. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +46 -24
  23. package/src/components/JfbBaseCardV2/Mock.js +12 -11
  24. package/src/components/JfbBaseCardV3/Attr.js +13 -1
  25. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +5 -1
  26. package/src/components/JfbBaseCardV3/Mock.js +1 -1
  27. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +14 -2
  28. package/src/components/JfbBaseMultipleExpress/Attr.js +9 -0
  29. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +20 -28
  30. package/src/components/JfbBaseMultipleExpress/Mock.js +10 -0
  31. package/src/components/JfbBaseOrderDetail/Attr.js +23 -0
  32. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +57 -137
  33. package/src/components/JfbBaseOrderDetail/bizMock.js +4 -2
  34. package/src/components/JfbBaseOrderList/Attr.js +9 -0
  35. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +37 -90
  36. package/src/components/JfbBaseOrderList/Mock.js +27 -5
  37. package/src/components/JfbBasePhoneCollect/Attr.js +11 -0
  38. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +3 -0
  39. package/src/components/JfbBasePoster/Attr.js +1 -0
  40. package/src/components/JfbBasePosterBigSmall/Attr.js +3 -0
  41. package/src/components/JfbBasePosterType/Attr.js +35 -25
  42. package/src/components/JfbBasePosterType/FourScreen.vue +18 -19
  43. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +12 -0
  44. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -2
  45. package/src/components/JfbBaseSweep/Api.js +13 -0
  46. package/src/components/JfbBaseSweep/Attr.js +34 -0
  47. package/src/components/JfbBaseSweep/JfbBaseSweep.vue +353 -0
  48. package/src/components/JfbBaseSweep/JfbBaseSweepLess.less +79 -0
  49. package/src/components/JfbBaseSweep/JfbBaseSweepMixin.js +30 -0
  50. package/src/components/JfbBaseSweep/Mock.js +3 -0
@@ -13,9 +13,7 @@
13
13
  :class="{ editx: isEditx && active }"
14
14
  v-if="isEditx && active && !noBorder"
15
15
  >
16
- <view class="jfb-base-order-detail__edit-icon" @click="delEdit"
17
- >删除</view
18
- >
16
+ <view class="jfb-base-order-detail__edit-icon" @click="delEdit">删除</view>
19
17
  </view>
20
18
  <!-- #endif -->
21
19
  <view class="jfb-base-order-detail__body" v-if="info && info !== null">
@@ -50,11 +48,8 @@
50
48
  <view
51
49
  v-if="info.status.loading_timeout != '-1'"
52
50
  :style="{ marginLeft: '40rpx' }"
53
- >{{ info.status.status_name }}:{{ timeMsg }}</view
54
- >
55
- <view v-else :style="{ marginLeft: '40rpx' }">
56
- {{ info.status.status_name }}
57
- </view>
51
+ >{{ info.status.status_name }}:{{ timeMsg }}</view>
52
+ <view v-else :style="{ marginLeft: '40rpx' }">{{ info.status.status_name }}</view>
58
53
  </view>
59
54
  <view style="height: 90rpx;"></view>
60
55
  </view>
@@ -80,11 +75,8 @@
80
75
  mode="scaleToFill"
81
76
  :src="info.film_show.thumb"
82
77
  ></xd-jfb-image>
83
-
84
78
  <view class="jfb-base-order-detail__body-no-delivery-info-right">
85
- <view
86
- class="jfb-base-order-detail__body-no-delivery-info-right-name"
87
- >
79
+ <view class="jfb-base-order-detail__body-no-delivery-info-right-name">
88
80
  <view>{{ info.film_show.name }}</view>
89
81
  </view>
90
82
  <view
@@ -118,9 +110,7 @@
118
110
  v-if="info.film_show.seat_name"
119
111
  >
120
112
  <view>座位:</view>
121
- <view :style="{ color: mainColor, fontWeight: 700 }">{{
122
- info.film_show.seat_name
123
- }}</view>
113
+ <view :style="{ color: mainColor, fontWeight: 700 }">{{info.film_show.seat_name }}</view>
124
114
  </view>
125
115
  <view
126
116
  class="jfb-base-order-detail__body-no-delivery-info-right-item"
@@ -134,9 +124,7 @@
134
124
  class="jfb-base-order-detail__body-delivery-bottom"
135
125
  v-if="info.film_show.detail && info.film_show.detail !== null"
136
126
  >
137
- <view class="jfb-base-order-detail__body-delivery-bottom-title">{{
138
- info.film_show.detail.title
139
- }}</view>
127
+ <view class="jfb-base-order-detail__body-delivery-bottom-title">{{info.film_show.detail.title }}</view>
140
128
  <view
141
129
  v-for="(Ditem, Dindex) in info.film_show.detail.items"
142
130
  :key="Dindex"
@@ -165,9 +153,7 @@
165
153
  >
166
154
  <view class="jfb-base-order-detail__body-delivery-title">
167
155
  <view>子订单号:{{ item.sub_order_id }}</view>
168
- <view :style="{ color: mainColor }">{{
169
- item.status.status_name
170
- }}</view>
156
+ <view :style="{ color: mainColor }">{{item.status.status_name}}</view>
171
157
  </view>
172
158
  <view
173
159
  style="border-bottom: 1px solid #eeeeee"
@@ -185,18 +171,13 @@
185
171
  :src="Sitem.product_thumb"
186
172
  ></xd-jfb-image>
187
173
  <view class="jfb-base-order-detail__body-delivery-content-info">
188
- <view
189
- class="jfb-base-order-detail__body-delivery-content-info-name"
190
- >{{ Sitem.product_name }}</view
191
- >
174
+ <view class="jfb-base-order-detail__body-delivery-content-info-name">{{ Sitem.product_name }}</view>
175
+ <view v-if="Sitem.brand_name" class="brand-name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
192
176
  <view
193
177
  v-if="Sitem.product_sku_name"
194
178
  class="jfb-base-order-detail__body-delivery-content-info-sku"
195
- >规格:{{ Sitem.product_sku_name }}</view
196
- >
197
- <view
198
- class="jfb-base-order-detail__body-delivery-content-info-price"
199
- >
179
+ >规格:{{ Sitem.product_sku_name }}</view>
180
+ <view class="jfb-base-order-detail__body-delivery-content-info-price">
200
181
  <view :style="{ fontSize: '32rpx', color: mainColor }">
201
182
  <xd-unit
202
183
  :price="Sitem.sale_price"
@@ -205,15 +186,12 @@
205
186
  v-if="biz_code !== 'gift' || info.is_show_gift_price"
206
187
  ></xd-unit>
207
188
  </view>
208
- <view
209
- style="
189
+ <view style="
210
190
  font-size: 28rpx;
211
191
  color: #999999;
212
192
  display: flex;
213
193
  align-items: center;
214
- "
215
- >x {{ Sitem.product_num }}</view
216
- >
194
+ ">x {{ Sitem.product_num }}</view>
217
195
  </view>
218
196
  </view>
219
197
  </view>
@@ -264,9 +242,7 @@
264
242
  v-for="(item, index) in info.settle_tag_info.settle_tag_info_list"
265
243
  :key="index"
266
244
  class="jfb-base-order-detail__body-settle-list"
267
- >
268
- {{ item.label }}:{{ item.value }}
269
- </view>
245
+ >{{ item.label }}:{{ item.value }}</view>
270
246
  </view>
271
247
  <view v-if="info.codes && info.codes.length > 0">
272
248
  <view
@@ -297,7 +273,7 @@
297
273
  </view>
298
274
 
299
275
  <view v-if="info.codes[0].can_read_password" class="jfb-base-order-detail__body-cashier-password" @click="showPassword = true">
300
- {{ showPassword ? info.codes[0].can_read_code : "查看密码" }}
276
+ {{ showPassword ? info.codes[0].can_read_code : "查看" }}
301
277
  </view>
302
278
  <view v-else class="jfb-base-order-detail__body-cashier-text">
303
279
  {{ info.codes[0].can_read_code }}
@@ -313,9 +289,7 @@
313
289
  color: mainColor,
314
290
  background: bgColor,
315
291
  }"
316
- >
317
- {{ info.codes[0].code_end_time }}
318
- </view>
292
+ >{{ info.codes[0].code_end_time }}</view>
319
293
  </view>
320
294
  <view v-else>
321
295
  <view
@@ -329,8 +303,7 @@
329
303
  v-for="(item, index) in info.codes"
330
304
  :key="index"
331
305
  >
332
- <view
333
- style="
306
+ <view style="
334
307
  color: #999;
335
308
  background: #eee;
336
309
  border-radius: 20rpx;
@@ -340,9 +313,7 @@
340
313
  font-size: 24rpx;
341
314
  padding: 10rpx 0;
342
315
  margin: 32rpx 0 32rpx 32rpx;
343
- "
344
- >{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view
345
- >
316
+ ">{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view>
346
317
  <view
347
318
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-num"
348
319
  v-if="item.show_type === 'text' && !item.password"
@@ -353,8 +324,7 @@
353
324
  <view
354
325
  class="jfb-base-order-detail__body-num-info-copy"
355
326
  @click="copy(item.code)"
356
- >复制</view
357
- >
327
+ >复制</view>
358
328
  <view
359
329
  v-if="item.code_end_time"
360
330
  class="jfb-base-order-detail__body-cashier-code"
@@ -363,9 +333,7 @@
363
333
  color: mainColor,
364
334
  background: bgColor,
365
335
  }"
366
- >
367
- {{ item.code_end_time }}
368
- </view>
336
+ >{{ item.code_end_time }}</view>
369
337
  </view>
370
338
 
371
339
  <view
@@ -385,8 +353,7 @@
385
353
  <view
386
354
  class="jfb-base-order-detail__body-num-info-copy"
387
355
  @click="copy(item.code)"
388
- >复制</view
389
- >
356
+ >复制</view>
390
357
  </view>
391
358
  <view
392
359
  class="jfb-base-order-detail__body-num"
@@ -406,12 +373,9 @@
406
373
  color: mainColor,
407
374
  background: bgColor,
408
375
  }"
409
- >
410
- {{ item.code_end_time }}
411
- </view>
376
+ >{{ item.code_end_time }}</view>
412
377
  </view>
413
378
  </view>
414
-
415
379
  <view
416
380
  class="jfb-base-order-detail__body-card"
417
381
  v-if="item.show_type === 'qrcode'"
@@ -423,7 +387,7 @@
423
387
  <view
424
388
  class="jfb-base-order-detail__body-num-info-copy"
425
389
  style="margin-top: 0;"
426
- @click="handleShowCode(item)">查看二维码和密码</view>
390
+ @click="handleShowCode(item)">查看二维码和{{ item.password_title }}</view>
427
391
  <view
428
392
  v-if="item.code_end_time"
429
393
  class="jfb-base-order-detail__body-cashier-code"
@@ -471,8 +435,7 @@
471
435
  <view
472
436
  class="jfb-base-order-detail__body-num-info-copy"
473
437
  @click="handleToJump(item.code)"
474
- >访问</view
475
- >
438
+ >访问</view>
476
439
  <view
477
440
  class="jfb-base-order-detail__body-num-info-copy"
478
441
  @click="copy(item.code)"
@@ -491,7 +454,7 @@
491
454
  </view>
492
455
  </view>
493
456
  </view>
494
- <view v-if="info.support_shops">
457
+ <view v-if="info.support_shops && is_show_support_shop === 'Y'">
495
458
  <view
496
459
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-jump"
497
460
  :style="{
@@ -527,9 +490,7 @@
527
490
  >
528
491
  <view class="jfb-base-order-detail__body-shop-title">
529
492
  <view :style="{ background: mainColor }"></view>
530
- <view>
531
- {{ info.shop.layer_name }}
532
- </view>
493
+ <view>{{ info.shop.layer_name }}</view>
533
494
  </view>
534
495
  <view class="jfb-base-order-detail__body-shop-name">
535
496
  {{ info.shop.shop_name }}
@@ -795,6 +756,7 @@ export default {
795
756
  mixins: [componentsMixins, extsMixins, JfbBaseOrderDetailMixin],
796
757
  data() {
797
758
  return {
759
+
798
760
  info: null,
799
761
  brandPath: "", //查看品牌路径
800
762
  showPayCard: false,
@@ -813,6 +775,8 @@ export default {
813
775
  isPreview: false, //是否预览
814
776
  biz_code: "",
815
777
  is_not_show_price: "",
778
+ brandTextColor:'',
779
+ is_show_support_shop: "",
816
780
 
817
781
  showPassword: false,
818
782
  dialogPassword: "",
@@ -1068,80 +1032,28 @@ export default {
1068
1032
  */
1069
1033
  init(container) {
1070
1034
  this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
1071
- this.brandPath = getContainerPropsValue(container, "content.brandPath", {
1072
- value: "",
1073
- }).value;
1074
- this.payPath = getContainerPropsValue(container, "content.payPath", {
1075
- value: "",
1076
- }).value;
1077
- // this.logisticsPath = getContainerPropsValue(
1078
- // container,
1079
- // "content.logisticsPath",
1080
- // { value: "" }
1081
- // ).value;
1082
- this.packageListPath = getContainerPropsValue(
1083
- container,
1084
- "content.packageListPath",
1085
- { value: "" }
1086
- ).value;
1087
- this.webViewPath = getContainerPropsValue(
1088
- container,
1089
- "content.webViewPath",
1090
- {
1091
- value: "",
1092
- }
1093
- ).value;
1094
- this.margin = getContainerPropsValue(container, "content.margin", {
1095
- top: 0,
1096
- left: 0,
1097
- right: 0,
1098
- bottom: 0,
1099
- });
1035
+ this.brandPath = getContainerPropsValue(container, "content.brandPath", {value: "",}).value;
1036
+ this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
1037
+
1038
+
1039
+ this.packageListPath = getContainerPropsValue(container, "content.packageListPath", { value: "" }).value;
1040
+ this.webViewPath = getContainerPropsValue(container, "content.webViewPath", {value: "",}).value;
1041
+ this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
1100
1042
  this.radius = getContainerPropsValue(container, "content.radius", 0);
1101
- this.backgroundColor = getContainerPropsValue(
1102
- container,
1103
- "content.backgroundColor",
1104
- "#f8f8f8"
1105
- );
1043
+ this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
1044
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
1106
1045
  this.padding = getContainerPropsValue(container, "content.padding", 20);
1107
1046
 
1108
- this.is_shadow = getContainerPropsValue(
1109
- container,
1110
- "content.is_shadow",
1111
- "N"
1112
- );
1113
- this.is_shadow_bg = getContainerPropsValue(
1114
- container,
1115
- "content.is_shadow_bg",
1116
- "#fff"
1117
- );
1118
- this.is_shadow_w = getContainerPropsValue(
1119
- container,
1120
- "content.is_shadow_w",
1121
- "10"
1122
- );
1123
-
1124
- this.is_border = getContainerPropsValue(
1125
- container,
1126
- "content.is_border",
1127
- "N"
1128
- );
1047
+ this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
1048
+ this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
1049
+ this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
1050
+
1051
+ this.is_border = getContainerPropsValue(container, "content.is_border", "N");
1129
1052
  this.is_hot = getContainerPropsValue(container, "content.is_hot", "Y");
1130
- this.is_border_c = getContainerPropsValue(
1131
- container,
1132
- "content.is_border_c",
1133
- "#fff"
1134
- );
1135
- this.is_border_w = getContainerPropsValue(
1136
- container,
1137
- "content.is_border_w",
1138
- 2
1139
- );
1140
- this.viewStatus = getContainerPropsValue(
1141
- container,
1142
- "content.viewStatus",
1143
- "mall"
1144
- );
1053
+ this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
1054
+ this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
1055
+ this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
1056
+ this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
1145
1057
  },
1146
1058
  getCountDown() {
1147
1059
  this.timer = setInterval(() => {
@@ -1298,6 +1210,14 @@ export default {
1298
1210
 
1299
1211
  .jfb-base-order-detail {
1300
1212
  &__body {
1213
+ .brand-name {
1214
+ padding-top: 5rpx;
1215
+ font-size: 24rpx;
1216
+ margin-bottom: 6rpx;
1217
+ .uni-max-cut(2, 64);
1218
+ line-height: 32rpx;
1219
+ }
1220
+
1301
1221
  color: #333;
1302
1222
  .logo-icon {
1303
1223
  width: unit(80, rpx) !important;
@@ -1437,7 +1357,7 @@ export default {
1437
1357
  flex-direction: column;
1438
1358
  justify-content: space-between;
1439
1359
  margin-left: unit(28, rpx);
1440
- height: unit(160, rpx);
1360
+ min-height: unit(160, rpx);
1441
1361
 
1442
1362
  &-name {
1443
1363
  font-size: unit(32, rpx);
@@ -1453,7 +1373,7 @@ export default {
1453
1373
 
1454
1374
  &-sku {
1455
1375
  color: #999999;
1456
- font-size: unit(28, rpx);
1376
+ font-size: unit(24, rpx);
1457
1377
  .uni-max-cut(2, 80);
1458
1378
  }
1459
1379
 
@@ -32,12 +32,14 @@ export default {
32
32
  "loading_timeout": 0
33
33
  },
34
34
  "products": [{
35
+ 'brand_id': 2,
36
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
35
37
  "product_id": 60006948,
36
- "product_name": "实物商品jls(单规格)1",
38
+ "product_name": "动物奶油】ins小清新动物奶油生日蛋糕",
37
39
  "product_sku_id": "0",
38
40
  "product_sku_name": "草莓",
39
41
  "product_type": "good",
40
- "product_num": 1,
42
+ "product_num": 8,
41
43
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230406\/0b890cd5a947d9c5724b412d34cd4000.png",
42
44
  "sale_price": 1549,
43
45
  "product_form_data": [{"label": "祝福语", "value": "心想事成!"}]
@@ -52,6 +52,15 @@ export default {
52
52
  placeholder: '请选择背景颜色',
53
53
  classNmae: 'input80',
54
54
  },
55
+ {
56
+ label: '品牌文字颜色:',
57
+ ele: 'xd-color',
58
+ valueKey: 'brandTextColor',
59
+ groupKey:'style',
60
+ value: data['brandTextColor'] || null,
61
+ placeholder: '请选择品牌文字颜色',
62
+ classNmae: 'input80',
63
+ },
55
64
  {
56
65
  label: '间距:',
57
66
  ele: 'el-input',
@@ -44,6 +44,7 @@
44
44
  <image></image>
45
45
  <view class="jfb-base-order-list__body-order-item-content-info">
46
46
  <view class="jfb-base-order-list__body-order-item-content-info-name"></view>
47
+ <view class="brand_name"></view>
47
48
  <view class="jfb-base-order-list__body-order-item-content-info-price">
48
49
  <view></view>
49
50
  <view class="info-price"></view>
@@ -82,49 +83,26 @@
82
83
  :icon="item.biz_code_icon"
83
84
  :size="item['biz_code_icon_size']"
84
85
  ></xd-font-icon>
85
- <view :class="{ marginLeft: item.biz_code_icon }">{{
86
- item.biz_code_name
87
- }}</view>
86
+ <view :class="{ marginLeft: item.biz_code_icon }">{{item.biz_code_name }}</view>
88
87
  </view>
89
88
  <view class="jfb-base-order-list__body-order-item-title">
90
89
  <view>订单编号:{{ item.main_order_id }}</view>
91
- <view
92
- :style="{color:item.status.status_type !== 'error' ? mainColor : '#999999',}"
93
- >{{ item.status.status_name }}</view>
90
+ <view :style="{color:item.status.status_type !== 'error' ? mainColor : '#999999',}">{{ item.status.status_name }}</view>
94
91
  </view>
95
92
  <view class="order-list">
96
93
  <view
97
94
  class="jfb-base-order-list__body-order-item-content"
98
95
  v-for="(Sitem, Sindex) in item.products"
99
96
  :key="Sitem.key"
100
- v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']">
101
- <image
102
- :src="Sitem.product_thumb"
103
- style="background: #ffffff"
104
- mode="aspectFit"
105
- ></image>
97
+ v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']"
98
+ >
99
+ <image :src="Sitem.product_thumb" style="background: #ffffff" mode="aspectFit"></image>
106
100
  <view class="jfb-base-order-list__body-order-item-content-info">
107
- <view
108
- class="jfb-base-order-list__body-order-item-content-info-name"
109
- >{{ Sitem.product_name }}</view
110
- >
111
- <view
112
- v-if="Sitem.product_sku_name"
113
- class="jfb-base-order-list__body-order-item-content-info-skuname"
114
- >规格:{{ Sitem.product_sku_name }}</view
115
- >
116
- <view
117
- class="jfb-base-order-list__body-order-item-content-info-price"
118
- >
119
- <view :style="{ fontSize: '32rpx', color: mainColor }">
120
- <!-- <xd-unit
121
- :isOld="false"
122
- :price="Sitem.sale_price"
123
- :color="mainColor"
124
- :fontSize="32"
125
- v-if="item.biz_code !== 'gift'"
126
- ></xd-unit> -->
127
- </view>
101
+ <view class="jfb-base-order-list__body-order-item-content-info-name">{{ Sitem.product_name }}</view>
102
+ <view class="brand-name" v-if="Sitem.brand_name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
103
+ <view v-if="Sitem.product_sku_name" class="jfb-base-order-list__body-order-item-content-info-skuname">规格:{{ Sitem.product_sku_name }}</view>
104
+ <view class="jfb-base-order-list__body-order-item-content-info-price">
105
+ <view></view>
128
106
  <view class="info-price">
129
107
  <text>X</text>
130
108
  <text>{{ Sitem.product_num }}</text>
@@ -180,8 +158,7 @@
180
158
  :type="getBtnType(btn.action)"
181
159
  size="mini"
182
160
  @click="handleBtnEvent(btn.action, item)"
183
- >{{ btn.text }}
184
- </xd-button>
161
+ >{{ btn.text }}</xd-button>
185
162
  </view>
186
163
  </view>
187
164
  </view>
@@ -224,6 +201,7 @@ export default {
224
201
  mixins: [componentsMixins, extsMixins, JfbBaseOrderListMixin],
225
202
  data() {
226
203
  return {
204
+
227
205
  showLen: 3,
228
206
  tabList: [],
229
207
  tabIndex: 0,
@@ -241,6 +219,7 @@ export default {
241
219
  //基础
242
220
  radius: 0,
243
221
  backgroundColor: "",
222
+ brandTextColor:'',
244
223
  padding: 0,
245
224
 
246
225
  //投影
@@ -320,72 +299,34 @@ export default {
320
299
  * @param container {object} 业务组件对象自己
321
300
  */
322
301
  init(container) {
323
- this.margin = getContainerPropsValue(container, "content.margin", {
324
- top: 0,
325
- left: 0,
326
- right: 0,
327
- bottom: 0,
328
- });
302
+ this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
329
303
  this.radius = getContainerPropsValue(container, "content.radius", 0);
330
- this.backgroundColor = getContainerPropsValue(
331
- container,
332
- "content.backgroundColor",
333
- "#f8f8f8"
334
- );
304
+ this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
305
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
335
306
  this.padding = getContainerPropsValue(container, "content.padding", 20);
336
307
 
337
- this.is_shadow = getContainerPropsValue(
338
- container,
339
- "content.is_shadow",
340
- "N"
341
- );
342
- this.is_shadow_bg = getContainerPropsValue(
343
- container,
344
- "content.is_shadow_bg",
345
- "#fff"
346
- );
347
- this.is_shadow_w = getContainerPropsValue(
348
- container,
349
- "content.is_shadow_w",
350
- "10"
351
- );
308
+ this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
309
+ this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
310
+ this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
352
311
 
353
- this.is_border = getContainerPropsValue(
354
- container,
355
- "content.is_border",
356
- "N"
357
- );
358
- this.is_border_c = getContainerPropsValue(
359
- container,
360
- "content.is_border_c",
361
- "#fff"
362
- );
363
- this.is_border_w = getContainerPropsValue(
364
- container,
365
- "content.is_border_w",
366
- 2
367
- );
312
+ this.is_border = getContainerPropsValue(container, "content.is_border", "N");
313
+ this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
314
+ this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
368
315
 
369
- this.detailPath = getContainerPropsValue(
370
- container,
371
- "content.detailPath",
372
- { value: "" }
373
- ).value;
374
- this.payPath = getContainerPropsValue(container, "content.payPath", {
375
- value: "",
376
- }).value;
377
- this.tabList = getContainerPropsValue(
378
- container,
379
- "content.orderTypeList",
380
- []
381
- ).map((item) => {
316
+ this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
317
+ this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
318
+ this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
382
319
  return {
383
320
  name: item.customName || item.label,
384
321
  ...item,
385
322
  size: Number(item.size ? item.size : 18) * 2,
386
323
  };
387
324
  });
388
- console.log("this.tabList", this.tabList);
325
+
326
+ },
327
+
328
+ switchOpen(item){
329
+ item['isOpen'] = !item['isOpen']
389
330
  },
390
331
 
391
332
  switchOpen(item){
@@ -576,6 +517,12 @@ export default {
576
517
  }
577
518
  }
578
519
  &-order {
520
+ .brand-name {
521
+ font-size: 24rpx;
522
+ margin-bottom: 6rpx;
523
+ .uni-max-cut(2, 64);
524
+ line-height: 32rpx;
525
+ }
579
526
  &-item {
580
527
  .skeleton-wrap & {
581
528
  background-color: #FFFFFF;