jufubao-base 1.0.166 → 1.0.167-beta3

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 (67) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderDetail/Attr.js +9 -0
  3. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +42 -81
  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 +11 -3
  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 +2 -3
  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/JfbBaseMultipleExpress/Attr.js +9 -0
  28. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +20 -28
  29. package/src/components/JfbBaseMultipleExpress/Mock.js +10 -0
  30. package/src/components/JfbBaseOrderDetail/Attr.js +23 -0
  31. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +57 -140
  32. package/src/components/JfbBaseOrderDetail/bizMock.js +11 -3
  33. package/src/components/JfbBaseOrderList/Attr.js +9 -0
  34. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +37 -90
  35. package/src/components/JfbBaseOrderList/Mock.js +27 -5
  36. package/src/components/JfbBasePhoneCollect/Attr.js +11 -0
  37. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +4 -9
  38. package/src/components/JfbBasePoster/Attr.js +1 -0
  39. package/src/components/JfbBasePosterBigSmall/Attr.js +3 -0
  40. package/src/components/JfbBasePosterType/Attr.js +35 -25
  41. package/src/components/JfbBasePosterType/FourScreen.vue +18 -19
  42. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +12 -0
  43. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -2
  44. package/src/components/JfbBaseTfkCardBind/Api.js +58 -0
  45. package/src/components/JfbBaseTfkCardBind/Attr.js +58 -0
  46. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +111 -0
  47. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBindLess.less +79 -0
  48. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBindMixin.js +30 -0
  49. package/src/components/JfbBaseTfkCardBind/Mock.js +13 -0
  50. package/src/components/JfbBaseTfkCardDetail/Api.js +58 -0
  51. package/src/components/JfbBaseTfkCardDetail/Attr.js +58 -0
  52. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +111 -0
  53. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetailLess.less +79 -0
  54. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetailMixin.js +30 -0
  55. package/src/components/JfbBaseTfkCardDetail/Mock.js +13 -0
  56. package/src/components/JfbBaseTfkCardLogin/Api.js +58 -0
  57. package/src/components/JfbBaseTfkCardLogin/Attr.js +58 -0
  58. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +111 -0
  59. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLoginLess.less +79 -0
  60. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLoginMixin.js +30 -0
  61. package/src/components/JfbBaseTfkCardLogin/Mock.js +13 -0
  62. package/src/components/JfbBaseTfkSearch/Api.js +58 -0
  63. package/src/components/JfbBaseTfkSearch/Attr.js +58 -0
  64. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +111 -0
  65. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearchLess.less +79 -0
  66. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearchMixin.js +30 -0
  67. package/src/components/JfbBaseTfkSearch/Mock.js +13 -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>
@@ -231,9 +209,7 @@
231
209
  class="jfb-base-order-detail__body-delivery-bottom"
232
210
  v-if="item.info && item.info.length > 0"
233
211
  >
234
- <view class="jfb-base-order-detail__body-delivery-bottom-title"
235
- >配送信息</view
236
- >
212
+ <view class="jfb-base-order-detail__body-delivery-bottom-title">配送信息</view>
237
213
  <view
238
214
  v-for="(Ditem, Dindex) in item.info"
239
215
  :key="Dindex"
@@ -264,9 +240,7 @@
264
240
  v-for="(item, index) in info.settle_tag_info.settle_tag_info_list"
265
241
  :key="index"
266
242
  class="jfb-base-order-detail__body-settle-list"
267
- >
268
- {{ item.label }}:{{ item.value }}
269
- </view>
243
+ >{{ item.label }}:{{ item.value }}</view>
270
244
  </view>
271
245
  <view v-if="info.codes && info.codes.length > 0">
272
246
  <view
@@ -297,7 +271,7 @@
297
271
  </view>
298
272
 
299
273
  <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 : "查看密码" }}
274
+ {{ showPassword ? info.codes[0].can_read_code : "查看" }}
301
275
  </view>
302
276
  <view v-else class="jfb-base-order-detail__body-cashier-text">
303
277
  {{ info.codes[0].can_read_code }}
@@ -313,9 +287,7 @@
313
287
  color: mainColor,
314
288
  background: bgColor,
315
289
  }"
316
- >
317
- {{ info.codes[0].code_end_time }}
318
- </view>
290
+ >{{ info.codes[0].code_end_time }}</view>
319
291
  </view>
320
292
  <view v-else>
321
293
  <view
@@ -329,8 +301,7 @@
329
301
  v-for="(item, index) in info.codes"
330
302
  :key="index"
331
303
  >
332
- <view
333
- style="
304
+ <view style="
334
305
  color: #999;
335
306
  background: #eee;
336
307
  border-radius: 20rpx;
@@ -340,9 +311,7 @@
340
311
  font-size: 24rpx;
341
312
  padding: 10rpx 0;
342
313
  margin: 32rpx 0 32rpx 32rpx;
343
- "
344
- >{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view
345
- >
314
+ ">{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view>
346
315
  <view
347
316
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-num"
348
317
  v-if="item.show_type === 'text' && !item.password"
@@ -353,8 +322,7 @@
353
322
  <view
354
323
  class="jfb-base-order-detail__body-num-info-copy"
355
324
  @click="copy(item.code)"
356
- >复制</view
357
- >
325
+ >复制</view>
358
326
  <view
359
327
  v-if="item.code_end_time"
360
328
  class="jfb-base-order-detail__body-cashier-code"
@@ -363,9 +331,7 @@
363
331
  color: mainColor,
364
332
  background: bgColor,
365
333
  }"
366
- >
367
- {{ item.code_end_time }}
368
- </view>
334
+ >{{ item.code_end_time }}</view>
369
335
  </view>
370
336
 
371
337
  <view
@@ -385,8 +351,7 @@
385
351
  <view
386
352
  class="jfb-base-order-detail__body-num-info-copy"
387
353
  @click="copy(item.code)"
388
- >复制</view
389
- >
354
+ >复制</view>
390
355
  </view>
391
356
  <view
392
357
  class="jfb-base-order-detail__body-num"
@@ -406,12 +371,9 @@
406
371
  color: mainColor,
407
372
  background: bgColor,
408
373
  }"
409
- >
410
- {{ item.code_end_time }}
411
- </view>
374
+ >{{ item.code_end_time }}</view>
412
375
  </view>
413
376
  </view>
414
-
415
377
  <view
416
378
  class="jfb-base-order-detail__body-card"
417
379
  v-if="item.show_type === 'qrcode'"
@@ -423,7 +385,7 @@
423
385
  <view
424
386
  class="jfb-base-order-detail__body-num-info-copy"
425
387
  style="margin-top: 0;"
426
- @click="handleShowCode(item)">查看二维码和密码</view>
388
+ @click="handleShowCode(item)">查看二维码和{{ item.password_title }}</view>
427
389
  <view
428
390
  v-if="item.code_end_time"
429
391
  class="jfb-base-order-detail__body-cashier-code"
@@ -471,8 +433,7 @@
471
433
  <view
472
434
  class="jfb-base-order-detail__body-num-info-copy"
473
435
  @click="handleToJump(item.code)"
474
- >访问</view
475
- >
436
+ >访问</view>
476
437
  <view
477
438
  class="jfb-base-order-detail__body-num-info-copy"
478
439
  @click="copy(item.code)"
@@ -491,7 +452,7 @@
491
452
  </view>
492
453
  </view>
493
454
  </view>
494
- <view v-if="info.support_shops">
455
+ <view v-if="info.support_shops && is_show_support_shop === 'Y'">
495
456
  <view
496
457
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-jump"
497
458
  :style="{
@@ -527,9 +488,7 @@
527
488
  >
528
489
  <view class="jfb-base-order-detail__body-shop-title">
529
490
  <view :style="{ background: mainColor }"></view>
530
- <view>
531
- {{ info.shop.layer_name }}
532
- </view>
491
+ <view>{{ info.shop.layer_name }}</view>
533
492
  </view>
534
493
  <view class="jfb-base-order-detail__body-shop-name">
535
494
  {{ info.shop.shop_name }}
@@ -813,6 +772,8 @@ export default {
813
772
  isPreview: false, //是否预览
814
773
  biz_code: "",
815
774
  is_not_show_price: "",
775
+ brandTextColor:'',
776
+ is_show_support_shop: "",
816
777
 
817
778
  showPassword: false,
818
779
  dialogPassword: "",
@@ -1068,80 +1029,28 @@ export default {
1068
1029
  */
1069
1030
  init(container) {
1070
1031
  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
- });
1032
+ this.brandPath = getContainerPropsValue(container, "content.brandPath", {value: "",}).value;
1033
+ this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
1034
+
1035
+
1036
+ this.packageListPath = getContainerPropsValue(container, "content.packageListPath", { value: "" }).value;
1037
+ this.webViewPath = getContainerPropsValue(container, "content.webViewPath", {value: "",}).value;
1038
+ this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
1100
1039
  this.radius = getContainerPropsValue(container, "content.radius", 0);
1101
- this.backgroundColor = getContainerPropsValue(
1102
- container,
1103
- "content.backgroundColor",
1104
- "#f8f8f8"
1105
- );
1040
+ this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
1041
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
1106
1042
  this.padding = getContainerPropsValue(container, "content.padding", 20);
1107
1043
 
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
- );
1044
+ this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
1045
+ this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
1046
+ this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
1047
+
1048
+ this.is_border = getContainerPropsValue(container, "content.is_border", "N");
1129
1049
  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
- );
1050
+ this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
1051
+ this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
1052
+ this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
1053
+ this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
1145
1054
  },
1146
1055
  getCountDown() {
1147
1056
  this.timer = setInterval(() => {
@@ -1298,6 +1207,14 @@ export default {
1298
1207
 
1299
1208
  .jfb-base-order-detail {
1300
1209
  &__body {
1210
+ .brand-name {
1211
+ padding-top: 5rpx;
1212
+ font-size: 24rpx;
1213
+ margin-bottom: 6rpx;
1214
+ .uni-max-cut(2, 64);
1215
+ line-height: 32rpx;
1216
+ }
1217
+
1301
1218
  color: #333;
1302
1219
  .logo-icon {
1303
1220
  width: unit(80, rpx) !important;
@@ -1437,7 +1354,7 @@ export default {
1437
1354
  flex-direction: column;
1438
1355
  justify-content: space-between;
1439
1356
  margin-left: unit(28, rpx);
1440
- height: unit(160, rpx);
1357
+ min-height: unit(160, rpx);
1441
1358
 
1442
1359
  &-name {
1443
1360
  font-size: unit(32, rpx);
@@ -1453,7 +1370,7 @@ export default {
1453
1370
 
1454
1371
  &-sku {
1455
1372
  color: #999999;
1456
- font-size: unit(28, rpx);
1373
+ font-size: unit(24, rpx);
1457
1374
  .uni-max-cut(2, 80);
1458
1375
  }
1459
1376
 
@@ -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": "心想事成!"}]
@@ -82,7 +84,13 @@ export default {
82
84
  "cards": [{"card_number": "101001000007170", "card_type_name": "聚福宝福", "card_use_point": 21649}]
83
85
  },
84
86
  "extras": {"first_logistics_package_id": "", "logistics_count": 0},
85
- "request_id": "ff8234b90362f21a"
87
+ "request_id": "ff8234b90362f21a",
88
+ "support_shops": {
89
+ "layer_name": "附近门店",
90
+ "brand_id": 100003,
91
+ "brand_name": "品牌jls0519",
92
+ "region_limit_tpl_id": ""
93
+ }
86
94
  },
87
95
  cashier: {
88
96
  "detail": [{"label": "主订单号", "value": "c516938076507504640", "type": "copy", "style": "bold"}, {
@@ -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;