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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.160-beta1",
3
+ "version": "1.0.162-beta10",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -32,6 +32,15 @@ export default {
32
32
  inline: false,
33
33
  notice: '间距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
34
34
  },
35
+ {
36
+ label: '品牌文字颜色:',
37
+ ele: 'xd-color',
38
+ valueKey: 'brandTextColor',
39
+ groupKey:'style',
40
+ value: data['brandTextColor'] || null,
41
+ placeholder: '请选择品牌文字颜色',
42
+ classNmae: 'input80',
43
+ },
35
44
  {
36
45
  ele: 'title',
37
46
  label: '投影设置',
@@ -10,9 +10,7 @@
10
10
  :class="{ editx: isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-after-order-detail__edit-icon" @click="delEdit"
14
- >删除</view
15
- >
13
+ <view class="jfb-base-after-order-detail__edit-icon" @click="delEdit">删除</view>
16
14
  </view>
17
15
  <!-- #endif -->
18
16
  <view
@@ -48,20 +46,13 @@
48
46
  :key="index"
49
47
  class="jfb-base-after-order-detail__body-movie-content"
50
48
  >
51
- <image
52
- style="background: #ffffff"
53
- mode="aspectFit"
54
- :src="item.thumb"
55
- ></image>
49
+ <image style="background: #ffffff" mode="aspectFit" :src="item.thumb"></image>
56
50
  <view class="jfb-base-after-order-detail__body-movie-content-info">
57
- <view
58
- class="jfb-base-after-order-detail__body-movie-content-info-top"
59
- >
60
- <view> {{ item.product_name }} </view>
51
+ <view class="jfb-base-after-order-detail__body-movie-content-info-top">
52
+ <view>{{ item.product_name }} </view>
53
+ <view v-if="item.brand_name" class="brand-name" :style="{color:brandTextColor}">{{ item.brand_name }}</view>
61
54
  </view>
62
- <view
63
- class="jfb-base-after-order-detail__body-movie-content-info-bottom"
64
- >
55
+ <view class="jfb-base-after-order-detail__body-movie-content-info-bottom">
65
56
  <view >
66
57
  <xd-unit v-if="info.business_icon !== 'gift' && info.is_not_show_price !== 'Y'" :price="item.sale_price"></xd-unit>
67
58
  </view>
@@ -74,15 +65,9 @@
74
65
  <view
75
66
  v-if="info.after_sale_method === 'exchange'"
76
67
  :style="{ color: mainColor }"
77
- >换成:{{ info.exchangeMsg }}</view>
78
- <!-- <view
79
- v-else-if="info.after_sale_method === 'again'"
80
- :style="{ color: mainColor }"
81
- >补发快递:{{ info['express_name'] }}</view> -->
68
+ >换成:{{ info.exchangeMsg }}</view>
82
69
  <view v-else :style="{ color: mainColor }">
83
- <view v-if="info.business_code !== 'gift' && info.is_not_show_price !== 'Y'">
84
- 已退款:¥{{ info.total_refund_sale_amount }}
85
- </view>
70
+ <view v-if="info.business_code !== 'gift' && info.is_not_show_price !== 'Y'">已退款:¥{{ info.total_refund_sale_amount }}</view>
86
71
  </view>
87
72
  </view>
88
73
  </view>
@@ -156,6 +141,7 @@ export default {
156
141
  //基础
157
142
  radius: 0,
158
143
  backgroundColor: "",
144
+ brandTextColor:'',
159
145
  padding: 0,
160
146
 
161
147
  //投影
@@ -169,12 +155,7 @@ export default {
169
155
  is_border_c: "",
170
156
 
171
157
  //其他
172
- margin: {
173
- top: 0,
174
- left: 0,
175
- right: 0,
176
- bottom: 0,
177
- },
158
+ margin: {},
178
159
  };
179
160
  },
180
161
  watch: {
@@ -287,51 +268,19 @@ export default {
287
268
  * @param container {object} 业务组件对象自己
288
269
  */
289
270
  init(container) {
290
- this.margin = getContainerPropsValue(container, "content.margin", {
291
- top: 0,
292
- left: 0,
293
- right: 0,
294
- bottom: 0,
295
- });
271
+ this.margin = getContainerPropsValue(container, "content.margin", {});
296
272
  this.radius = getContainerPropsValue(container, "content.radius", 0);
297
- this.backgroundColor = getContainerPropsValue(
298
- container,
299
- "content.backgroundColor",
300
- "#f8f8f8"
301
- );
273
+ this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
274
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
302
275
  this.padding = getContainerPropsValue(container, "content.padding", 20);
303
276
 
304
- this.is_shadow = getContainerPropsValue(
305
- container,
306
- "content.is_shadow",
307
- "N"
308
- );
309
- this.is_shadow_bg = getContainerPropsValue(
310
- container,
311
- "content.is_shadow_bg",
312
- "#fff"
313
- );
314
- this.is_shadow_w = getContainerPropsValue(
315
- container,
316
- "content.is_shadow_w",
317
- "10"
318
- );
277
+ this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
278
+ this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
279
+ this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
319
280
 
320
- this.is_border = getContainerPropsValue(
321
- container,
322
- "content.is_border",
323
- "N"
324
- );
325
- this.is_border_c = getContainerPropsValue(
326
- container,
327
- "content.is_border_c",
328
- "#fff"
329
- );
330
- this.is_border_w = getContainerPropsValue(
331
- container,
332
- "content.is_border_w",
333
- 2
334
- );
281
+ this.is_border = getContainerPropsValue(container, "content.is_border", "N");
282
+ this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
283
+ this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
335
284
  },
336
285
  },
337
286
  };
@@ -357,6 +306,13 @@ export default {
357
306
 
358
307
  .jfb-base-after-order-detail {
359
308
  &__body {
309
+ .brand-name {
310
+ padding-top: 5rpx;
311
+ font-size: 24rpx;
312
+ margin-bottom: 6rpx;
313
+ .uni-max-cut(2, 64);
314
+ line-height: 32rpx;
315
+ }
360
316
  &-card {
361
317
  border-radius: unit(20, rpx);
362
318
  padding: unit(30,rpx) unit(40, rpx);
@@ -397,15 +353,24 @@ export default {
397
353
  display: flex;
398
354
  flex-direction: column;
399
355
  justify-content: space-between;
400
- height: unit(160,rpx);
356
+ min-height: unit(160,rpx);
401
357
 
402
358
  &-top {
403
- display: flex;
404
- justify-content: space-between;
405
- align-items: center;
406
359
  color: #333;
407
360
  font-size: unit(32, rpx);
408
- .uni-max-cut(1, 64);
361
+
362
+ .brand-name {
363
+ padding-top: 5rpx;
364
+ font-size: 24rpx;
365
+ margin-bottom: 6rpx;
366
+ .uni-max-cut(2, 64);
367
+ line-height: 32rpx;
368
+ }
369
+
370
+ & > view:nth-child(1) {
371
+ .uni-max-cut(2, 80);
372
+ line-height: 40rpx;
373
+ }
409
374
  }
410
375
 
411
376
  &-bottom {
@@ -24,8 +24,10 @@ module.exports = {
24
24
  "refund_freight_price": 0,
25
25
  "is_refund_freight_price": "Y",
26
26
  "sale_goods": [{
27
+ 'brand_id': 2,
28
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
27
29
  "product_id": 581,
28
- "product_name": "聚福宝-万里归途",
30
+ "product_name": "动物奶油】ins小清新动物奶油生日蛋糕",
29
31
  "product_sku_id": "F60487-9137767320-1306340102#07#04",
30
32
  "product_sku_name": "5厅(看3D影片需自备3D眼镜)-7排4列",
31
33
  "thumb": "https:\/\/p0.pipi.cn\/mmdb\/25bfd6ddb53c7e5015d23c5bc24d876c03d41.jpg?imageMogr2\/thumbnail\/1246x1246%3E",
@@ -43,7 +45,6 @@ module.exports = {
43
45
  "created_time": 1680233512,
44
46
  "refund_method_name": "原路返回",
45
47
  "after_sale_type_name": "",
46
- "business_name": "",
47
48
  "business_icon": "icondangao-01",
48
49
  "request_id": "5be757202592d8e1"
49
50
  }
@@ -27,6 +27,15 @@ export default {
27
27
  placeholder: '请选择背景颜色',
28
28
  classNmae: 'input80',
29
29
  },
30
+ {
31
+ label: '品牌文字颜色:',
32
+ ele: 'xd-color',
33
+ valueKey: 'brandTextColor',
34
+ groupKey:'style',
35
+ value: data['brandTextColor'] || null,
36
+ placeholder: '请选择品牌文字颜色',
37
+ classNmae: 'input80',
38
+ },
30
39
  {
31
40
  label: '间距:',
32
41
  ele: 'el-input',
@@ -13,9 +13,7 @@
13
13
  :class="{ editx: isEditx && active }"
14
14
  v-if="isEditx && active && !noBorder"
15
15
  >
16
- <view class="jfb-base-after-order-list__edit-icon" @click="delEdit"
17
- >删除</view
18
- >
16
+ <view class="jfb-base-after-order-list__edit-icon" @click="delEdit">删除</view>
19
17
  </view>
20
18
  <!-- #endif -->
21
19
  <view class="jfb-base-after-order-list__body">
@@ -40,7 +38,10 @@
40
38
  </view>
41
39
  <view class="jfb-base-after-order-list__body-order-content">
42
40
  <view class="image"></view>
43
- <view></view>
41
+ <view>
42
+ <view></view>
43
+ <view></view>
44
+ </view>
44
45
  </view>
45
46
  </view>
46
47
  </view>
@@ -69,32 +70,23 @@
69
70
  :size="item.business_icon_size"
70
71
  ></xd-font-icon>
71
72
  </view>
72
-
73
73
  <view>{{ item.business_name }}订单</view>
74
74
  </view>
75
75
  <view class="jfb-base-after-order-list__body-order-title">
76
76
  <view>服务单号:{{ item.order_id }}</view>
77
- <view :style="{ color: mainColor }">
78
- <!-- <xd-font-icon
79
- style="margin-right: 16rpx"
80
- icon="iconqianbao-01"
81
- size="40rpx"
82
- :color="mainColor"
83
- ></xd-font-icon> -->
84
- {{ item.after_sale_method_name }}
85
- </view>
77
+ <view :style="{ color: mainColor }">{{ item.after_sale_method_name }}</view>
86
78
  </view>
87
79
  <view
88
80
  class="jfb-base-after-order-list__body-order-content"
89
81
  v-for="(Sitem, Sindex) in item.sale_goods"
90
82
  :key="Sindex"
91
83
  >
92
- <image
93
- style="background: #ffffff"
94
- mode="aspectFit"
95
- :src="Sitem.thumb"
96
- ></image>
97
- <view>{{ Sitem.product_name }}</view>
84
+ <view><image mode="aspectFit" :src="Sitem.thumb"></image></view>
85
+ <view>
86
+ <view>{{ Sitem.product_name }}</view>
87
+ <view v-if="Sitem.brand_name" class="brand-name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
88
+ </view>
89
+
98
90
  </view>
99
91
  </view>
100
92
  </view>
@@ -129,6 +121,7 @@ export default {
129
121
  mixins: [componentsMixins, extsMixins, JfbBaseAfterOrderListMixin],
130
122
  data() {
131
123
  return {
124
+
132
125
  orderList: [],
133
126
  detailPath: "",
134
127
  page_size: 10,
@@ -136,6 +129,7 @@ export default {
136
129
  hasNext: true,
137
130
  next_page_token: "",
138
131
  loadingList: true,
132
+ brandTextColor:'',
139
133
 
140
134
  //基础
141
135
  radius: 0,
@@ -153,12 +147,7 @@ export default {
153
147
  is_border_c: "",
154
148
 
155
149
  //其他
156
- margin: {
157
- top: 0,
158
- left: 0,
159
- right: 0,
160
- bottom: 0,
161
- },
150
+ margin: {},
162
151
  };
163
152
  },
164
153
  watch: {
@@ -198,51 +187,21 @@ export default {
198
187
  * @param container {object} 业务组件对象自己
199
188
  */
200
189
  init(container) {
201
- this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
190
+ this.margin = getContainerPropsValue(container, "content.margin", {});
202
191
  this.radius = getContainerPropsValue(container, "content.radius", 0);
203
- this.backgroundColor = getContainerPropsValue(
204
- container,
205
- "content.backgroundColor",
206
- "#f8f8f8"
207
- );
192
+ this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
193
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
194
+
208
195
  this.padding = getContainerPropsValue(container, "content.padding", 20);
209
196
 
210
- this.is_shadow = getContainerPropsValue(
211
- container,
212
- "content.is_shadow",
213
- "N"
214
- );
215
- this.is_shadow_bg = getContainerPropsValue(
216
- container,
217
- "content.is_shadow_bg",
218
- "#fff"
219
- );
220
- this.is_shadow_w = getContainerPropsValue(
221
- container,
222
- "content.is_shadow_w",
223
- "10"
224
- );
197
+ this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
198
+ this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
199
+ this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
225
200
 
226
- this.is_border = getContainerPropsValue(
227
- container,
228
- "content.is_border",
229
- "N"
230
- );
231
- this.is_border_c = getContainerPropsValue(
232
- container,
233
- "content.is_border_c",
234
- "#fff"
235
- );
236
- this.is_border_w = getContainerPropsValue(
237
- container,
238
- "content.is_border_w",
239
- 2
240
- );
241
- this.detailPath = getContainerPropsValue(
242
- container,
243
- "content.detailPath",
244
- { value: "" }
245
- ).value;
201
+ this.is_border = getContainerPropsValue(container, "content.is_border", "N");
202
+ this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
203
+ this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
204
+ this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
246
205
  },
247
206
  getList() {
248
207
  this.$xdShowLoading({});
@@ -313,6 +272,13 @@ export default {
313
272
 
314
273
  .jfb-base-after-order-list {
315
274
  &__body {
275
+ .brand-name {
276
+ padding-top: 5rpx;
277
+ font-size: 24rpx;
278
+ margin-bottom: 6rpx;
279
+ .uni-max-cut(2, 64);
280
+ line-height: 32rpx;
281
+ }
316
282
  &-no {
317
283
  display: flex;
318
284
  justify-content: center;
@@ -381,11 +347,18 @@ export default {
381
347
  align-items: center;
382
348
  padding-top: unit(40, rpx);
383
349
 
384
- image {
385
- width: unit(160, rpx);
386
- height: unit(160, rpx);
387
- border-radius: unit(8, rpx);
350
+ & > view:first-child {
351
+ width: 160rpx;
352
+ height: 160rpx;
388
353
  flex-shrink: 0;
354
+ margin-right: 20rpx;
355
+
356
+ image {
357
+ width: unit(160, rpx);
358
+ height: unit(160, rpx);
359
+ border-radius: unit(8, rpx);
360
+ flex-shrink: 0;
361
+ }
389
362
  }
390
363
 
391
364
  .image{
@@ -395,21 +368,28 @@ export default {
395
368
  flex: none;
396
369
  }
397
370
  }
398
- & > view:last-child{
399
- .skeleton-wrap &{
400
- .skeleton-item(300rpx);
401
- }
402
- }
403
371
 
404
- view {
405
- margin-left: unit(20, rpx);
372
+ & > view:last-child {
406
373
  flex: 1;
407
- font-size: unit(32, rpx);
408
- color: #333333;
409
- font-weight: 500;
410
- .uni-max-cut(1, 64);
411
- line-height: unit(64, rpx);
374
+ & > view {
375
+ &:nth-child(2) {
376
+ margin-top: 20rpx;
377
+ }
378
+ .skeleton-wrap &{
379
+ .skeleton-item(100%);
380
+ }
381
+ }
412
382
  }
383
+
384
+ //& > view {
385
+ // margin-left: unit(20, rpx);
386
+ // flex: 1;
387
+ // font-size: unit(32, rpx);
388
+ // color: #333333;
389
+ // font-weight: 500;
390
+ // .uni-max-cut(1, 64);
391
+ // line-height: unit(64, rpx);
392
+ //}
413
393
  }
414
394
 
415
395
  &-bottom {
@@ -24,6 +24,8 @@ module.exports = {
24
24
  "express_code": "59",
25
25
  "express_number": "4421323",
26
26
  "sale_goods": [{
27
+ 'brand_id': 2,
28
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
27
29
  "product_id": 60007292,
28
30
  "product_name": "按体积测试运费商品jls---00002",
29
31
  "product_sku_id": "70015687",
@@ -67,6 +69,8 @@ module.exports = {
67
69
  "express_code": "59",
68
70
  "express_number": "123",
69
71
  "sale_goods": [{
72
+ 'brand_id': 2,
73
+ 'brand_name': "北京味多美蛋糕叔叔",
70
74
  "product_id": 60007292,
71
75
  "product_name": "按体积测试运费商品jls---00002",
72
76
  "product_sku_id": "70015687",
@@ -110,6 +114,8 @@ module.exports = {
110
114
  "express_code": "59",
111
115
  "express_number": "12312",
112
116
  "sale_goods": [{
117
+ 'brand_id': 2,
118
+ 'brand_name': "HEYTEA",
113
119
  "product_id": 60007216,
114
120
  "product_name": "花(多规格)0426s",
115
121
  "product_sku_id": "70015857",
@@ -153,6 +159,8 @@ module.exports = {
153
159
  "express_code": "59",
154
160
  "express_number": "11111",
155
161
  "sale_goods": [{
162
+ 'brand_id': 2,
163
+ 'brand_name': "喜茶/凯蒂猫",
156
164
  "product_id": 60006948,
157
165
  "product_name": "实物商品jls(单规格)1",
158
166
  "product_sku_id": "0",