jufubao-base 1.0.159-beta16 → 1.0.159-beta18

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 (38) 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 +47 -18
  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/JfbBaseCardV2/Attr.js +39 -2
  18. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +46 -24
  19. package/src/components/JfbBaseCardV2/Mock.js +12 -11
  20. package/src/components/JfbBaseCardV3/Attr.js +13 -1
  21. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +5 -1
  22. package/src/components/JfbBaseCardV3/Mock.js +1 -1
  23. package/src/components/JfbBaseMultipleExpress/Attr.js +9 -0
  24. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +20 -28
  25. package/src/components/JfbBaseMultipleExpress/Mock.js +10 -0
  26. package/src/components/JfbBaseOrderDetail/Attr.js +23 -0
  27. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +55 -135
  28. package/src/components/JfbBaseOrderDetail/bizMock.js +4 -2
  29. package/src/components/JfbBaseOrderList/Attr.js +9 -0
  30. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +33 -90
  31. package/src/components/JfbBaseOrderList/Mock.js +27 -5
  32. package/src/components/JfbBasePhoneCollect/Attr.js +11 -0
  33. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +3 -0
  34. package/src/components/JfbBasePoster/Attr.js +1 -0
  35. package/src/components/JfbBasePosterBigSmall/Attr.js +3 -0
  36. package/src/components/JfbBasePosterType/Attr.js +35 -25
  37. package/src/components/JfbBasePosterType/FourScreen.vue +18 -19
  38. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +12 -0
@@ -11,6 +11,8 @@ module.exports = {
11
11
  "logistics_number": "SF1685689779402",
12
12
  "package_id": "K8bX6_E7KZcIq7K6DiHJb",
13
13
  "product_list": [{
14
+ 'brand_id': 20001,
15
+ 'brand_name': "维尔纳斯",
14
16
  "product_id": 60006948,
15
17
  "product_name": "生日蛋糕",
16
18
  "sku_id": "0",
@@ -19,6 +21,8 @@ module.exports = {
19
21
  "thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230406\/0b890cd5a947d9c5724b412d34cd4000.png",
20
22
  "price": 2103
21
23
  }, {
24
+ 'brand_id': 20001,
25
+ 'brand_name': "维尔纳斯",
22
26
  "product_id": 60006948,
23
27
  "product_name": "生日蛋糕",
24
28
  "sku_id": "0",
@@ -36,6 +40,8 @@ module.exports = {
36
40
  "logistics_number": "75580431357494",
37
41
  "package_id": "GSoLqqSNzneETTn-QlZZG",
38
42
  "product_list": [{
43
+ 'brand_id': 2,
44
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
39
45
  "product_id": 60006948,
40
46
  "product_name": "生日蛋糕",
41
47
  "sku_id": "0",
@@ -53,6 +59,8 @@ module.exports = {
53
59
  "logistics_number": "75580918666266",
54
60
  "package_id": "oxrqHZEeKn_a9qrjwYwRG",
55
61
  "product_list": [{
62
+ 'brand_id': 2,
63
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
56
64
  "product_id": 60006948,
57
65
  "product_name": "生日蛋糕",
58
66
  "sku_id": "0",
@@ -70,6 +78,8 @@ module.exports = {
70
78
  "logistics_number": "1231",
71
79
  "package_id": "axz_Mgal3f3G5k3eELsUd",
72
80
  "product_list": [{
81
+ 'brand_id': 20167,
82
+ 'brand_name': "派悦坊",
73
83
  "product_id": 60006948,
74
84
  "product_name": "生日蛋糕",
75
85
  "sku_id": "0",
@@ -260,6 +260,20 @@ export default {
260
260
  }
261
261
  },
262
262
  },
263
+ {
264
+ label: "是否展示可用门店:",
265
+ ele: 'xd-radio',
266
+ valueKey: "is_show_support_shop",
267
+ value: data['is_show_support_shop'] || 'N',
268
+ groupKey:'content',
269
+ placeholder: '请选择是否展示可用门店',
270
+ multiple: false,
271
+ className: 'input80',
272
+ list: [
273
+ { label: '是', value: 'Y' },
274
+ { label: '否', value: 'N' },
275
+ ]
276
+ },
263
277
  {
264
278
  label: '外填充:',
265
279
  ele: 'xd-margin-padding',
@@ -273,6 +287,15 @@ export default {
273
287
  inline: false,
274
288
  notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
275
289
  },
290
+ {
291
+ label: '品牌文字颜色:',
292
+ ele: 'xd-color',
293
+ valueKey: 'brandTextColor',
294
+ groupKey:'style',
295
+ value: data['brandTextColor'] || null,
296
+ placeholder: '请选择品牌文字颜色',
297
+ classNmae: 'input80',
298
+ },
276
299
  {
277
300
  label: '背景颜色:',
278
301
  ele: 'xd-color',
@@ -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
@@ -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'"
@@ -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',