jufubao-base 1.0.169-beta12 → 1.0.169-beta14

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.
@@ -116,6 +116,7 @@ module.exports = {
116
116
  card_point: 5000,
117
117
  card_type: "0",
118
118
  card_type_name: "满50减50",
119
+ show_name: "满50减50",
119
120
  unit: "点",
120
121
  end_time: "2024-11-23",
121
122
  is_valid: "Y",
@@ -134,6 +135,7 @@ module.exports = {
134
135
  card_point: 5000,
135
136
  card_type: "0",
136
137
  card_type_name: "满50减50",
138
+ show_name: "满50减50",
137
139
  unit: "点",
138
140
  end_time: "2024-11-23",
139
141
  is_valid: "Y",
@@ -152,6 +154,7 @@ module.exports = {
152
154
  card_point: 5000,
153
155
  card_type: "0",
154
156
  card_type_name: "满50减50",
157
+ show_name: "满50减50",
155
158
  unit: "点",
156
159
  end_time: "2024-11-23",
157
160
  is_valid: "Y",
@@ -170,6 +173,7 @@ module.exports = {
170
173
  card_point: 5000,
171
174
  card_type: "0",
172
175
  card_type_name: "满50减50",
176
+ show_name: "满50减50",
173
177
  unit: "点",
174
178
  end_time: "2024-11-23",
175
179
  is_valid: "Y",
@@ -183,496 +187,6 @@ module.exports = {
183
187
  card_use_rule: "满50减0",
184
188
  is_transfering: "N"
185
189
  },
186
- {
187
- card_number: "10001000001166",
188
- card_point: 5000,
189
- card_type: "0",
190
- card_type_name: "满50减50",
191
- unit: "点",
192
- end_time: "2024-11-23",
193
- is_valid: "Y",
194
- main_business_code_name: "",
195
- other_card_point: 0,
196
- is_exchange: "N",
197
- card_point_type: 1,
198
- business_codes: ["cake", "movie", "video", "market", "book"],
199
- is_login: "N",
200
- consume_type: "2",
201
- card_use_rule: "满50减0",
202
- is_transfering: "N"
203
- },
204
- {
205
- card_number: "10001000001165",
206
- card_point: 5000,
207
- card_type: "0",
208
- card_type_name: "满50减50",
209
- unit: "点",
210
- end_time: "2024-11-23",
211
- is_valid: "Y",
212
- main_business_code_name: "",
213
- other_card_point: 0,
214
- is_exchange: "N",
215
- card_point_type: 1,
216
- business_codes: ["cake", "movie", "video", "market", "book"],
217
- is_login: "N",
218
- consume_type: "2",
219
- card_use_rule: "满50减0",
220
- is_transfering: "N"
221
- },
222
- {
223
- card_number: "10001000001164",
224
- card_point: 5000,
225
- card_type: "0",
226
- card_type_name: "满50减50",
227
- unit: "点",
228
- end_time: "2024-11-23",
229
- is_valid: "Y",
230
- main_business_code_name: "",
231
- other_card_point: 0,
232
- is_exchange: "N",
233
- card_point_type: 1,
234
- business_codes: ["cake", "movie", "video", "market", "book"],
235
- is_login: "N",
236
- consume_type: "2",
237
- card_use_rule: "满50减0",
238
- is_transfering: "N"
239
- },
240
- {
241
- card_number: "10001000001163",
242
- card_point: 5000,
243
- card_type: "0",
244
- card_type_name: "满50减50",
245
- unit: "点",
246
- end_time: "2024-11-23",
247
- is_valid: "Y",
248
- main_business_code_name: "",
249
- other_card_point: 0,
250
- is_exchange: "N",
251
- card_point_type: 1,
252
- business_codes: ["cake", "movie", "video", "market", "book"],
253
- is_login: "N",
254
- consume_type: "2",
255
- card_use_rule: "满50减0",
256
- is_transfering: "N"
257
- },
258
- {
259
- card_number: "10001000001162",
260
- card_point: 5000,
261
- card_type: "0",
262
- card_type_name: "满50减50",
263
- unit: "点",
264
- end_time: "2024-11-23",
265
- is_valid: "Y",
266
- main_business_code_name: "",
267
- other_card_point: 0,
268
- is_exchange: "N",
269
- card_point_type: 1,
270
- business_codes: ["cake", "movie", "video", "market", "book"],
271
- is_login: "N",
272
- consume_type: "2",
273
- card_use_rule: "满50减0",
274
- is_transfering: "N"
275
- },
276
- {
277
- card_number: "10001000001161",
278
- card_point: 5000,
279
- card_type: "0",
280
- card_type_name: "满50减50",
281
- unit: "点",
282
- end_time: "2024-11-23",
283
- is_valid: "Y",
284
- main_business_code_name: "",
285
- other_card_point: 0,
286
- is_exchange: "N",
287
- card_point_type: 1,
288
- business_codes: ["cake", "movie", "video", "market", "book"],
289
- is_login: "N",
290
- consume_type: "2",
291
- card_use_rule: "满50减0",
292
- is_transfering: "N"
293
- },
294
- {
295
- card_number: "10001000001160",
296
- card_point: 5000,
297
- card_type: "0",
298
- card_type_name: "满50减50",
299
- unit: "点",
300
- end_time: "2024-11-23",
301
- is_valid: "Y",
302
- main_business_code_name: "",
303
- other_card_point: 0,
304
- is_exchange: "N",
305
- card_point_type: 1,
306
- business_codes: ["cake", "movie", "video", "market", "book"],
307
- is_login: "N",
308
- consume_type: "2",
309
- card_use_rule: "满50减0",
310
- is_transfering: "N"
311
- },
312
- {
313
- card_number: "101001000007025",
314
- card_point: 3210,
315
- card_type: "27",
316
- card_type_name: "聚福宝福",
317
- unit: "点",
318
- end_time: "2024-10-31",
319
- is_valid: "Y",
320
- main_business_code_name: "",
321
- other_card_point: 0,
322
- is_exchange: "N",
323
- card_point_type: 1,
324
- business_codes: [
325
- "cake",
326
- "movie",
327
- "video",
328
- "market",
329
- "book",
330
- "food",
331
- "event12",
332
- "event18",
333
- "event26",
334
- "event29",
335
- "event32"
336
- ],
337
- is_login: "N",
338
- consume_type: "1",
339
- card_use_rule: "",
340
- is_transfering: "N"
341
- },
342
- {
343
- card_number: "110101000000025",
344
- card_point: 4999,
345
- card_type: "65",
346
- card_type_name: "满减券100减20",
347
- unit: "点",
348
- end_time: "2026-04-30",
349
- is_valid: "Y",
350
- main_business_code_name: "",
351
- other_card_point: 0,
352
- is_exchange: "N",
353
- card_point_type: 1,
354
- business_codes: ["video"],
355
- is_login: "N",
356
- consume_type: "2",
357
- card_use_rule: "满50减0",
358
- is_transfering: "N"
359
- },
360
- {
361
- card_number: "261001000002762",
362
- card_point: 100,
363
- card_type: "35",
364
- card_type_name: "大礼包测试",
365
- unit: "次",
366
- end_time: "2025-05-31",
367
- is_valid: "Y",
368
- main_business_code_name: "",
369
- other_card_point: 0,
370
- is_exchange: "N",
371
- card_point_type: 1,
372
- business_codes: ["gift"],
373
- is_login: "N",
374
- consume_type: "1",
375
- card_use_rule: "",
376
- is_transfering: "N"
377
- },
378
- {
379
- card_number: "261001000002761",
380
- card_point: 100,
381
- card_type: "35",
382
- card_type_name: "大礼包测试",
383
- unit: "次",
384
- end_time: "2025-05-31",
385
- is_valid: "Y",
386
- main_business_code_name: "",
387
- other_card_point: 0,
388
- is_exchange: "N",
389
- card_point_type: 1,
390
- business_codes: ["gift"],
391
- is_login: "N",
392
- consume_type: "1",
393
- card_use_rule: "",
394
- is_transfering: "N"
395
- },
396
- {
397
- card_number: "101001000007024",
398
- card_point: 3110,
399
- card_type: "27",
400
- card_type_name: "聚福宝福",
401
- unit: "点",
402
- end_time: "2024-10-31",
403
- is_valid: "Y",
404
- main_business_code_name: "",
405
- other_card_point: 0,
406
- is_exchange: "N",
407
- card_point_type: 1,
408
- business_codes: [
409
- "cake",
410
- "movie",
411
- "video",
412
- "market",
413
- "book",
414
- "food",
415
- "event12",
416
- "event18",
417
- "event26",
418
- "event29",
419
- "event32"
420
- ],
421
- is_login: "N",
422
- consume_type: "1",
423
- card_use_rule: "",
424
- is_transfering: "N"
425
- },
426
- {
427
- card_number: "171003500000593",
428
- card_point: 200,
429
- card_type: "39",
430
- card_type_name: "一对一次卡(无限制)",
431
- unit: "次",
432
- end_time: "2025-10-31",
433
- is_valid: "Y",
434
- main_business_code_name: "",
435
- other_card_point: 0,
436
- is_exchange: "N",
437
- card_point_type: 1,
438
- business_codes: [
439
- "cake",
440
- "movie",
441
- "video",
442
- "market",
443
- "book",
444
- "health",
445
- "travel",
446
- "play",
447
- "small"
448
- ],
449
- is_login: "N",
450
- consume_type: "1",
451
- card_use_rule: "",
452
- is_transfering: "N"
453
- },
454
- {
455
- card_number: "171003500000590",
456
- card_point: 100,
457
- card_type: "39",
458
- card_type_name: "一对一次卡(无限制)",
459
- unit: "次",
460
- end_time: "2024-08-31",
461
- is_valid: "Y",
462
- main_business_code_name: "",
463
- other_card_point: 0,
464
- is_exchange: "N",
465
- card_point_type: 1,
466
- business_codes: ["cake", "movie", "video", "market", "book"],
467
- is_login: "N",
468
- consume_type: "1",
469
- card_use_rule: "",
470
- is_transfering: "N"
471
- },
472
- {
473
- card_number: "101001000008569",
474
- card_point: 15884,
475
- card_type: "27",
476
- card_type_name: "聚福宝福",
477
- unit: "点",
478
- end_time: "2024-12-31",
479
- is_valid: "Y",
480
- main_business_code_name: "",
481
- other_card_point: 0,
482
- is_exchange: "N",
483
- card_point_type: 1,
484
- business_codes: [
485
- "cake",
486
- "movie",
487
- "video",
488
- "market",
489
- "book",
490
- "health",
491
- "travel",
492
- "play",
493
- "small",
494
- "supermarket",
495
- "food"
496
- ],
497
- is_login: "N",
498
- consume_type: "1",
499
- card_use_rule: "",
500
- is_transfering: "N"
501
- },
502
- {
503
- card_number: "171003500000666",
504
- card_point: 9500,
505
- card_type: "2146",
506
- card_type_name: "一对一次卡(2d抵扣45,3d2张兑换一张)",
507
- unit: "次",
508
- end_time: "2025-07-26",
509
- is_valid: "Y",
510
- main_business_code_name: "",
511
- other_card_point: 0,
512
- is_exchange: "N",
513
- card_point_type: 1,
514
- business_codes: [
515
- "cake",
516
- "movie",
517
- "video",
518
- "market",
519
- "book",
520
- "health",
521
- "travel",
522
- "play",
523
- "small",
524
- "supermarket",
525
- "food"
526
- ],
527
- is_login: "N",
528
- consume_type: "1",
529
- card_use_rule: "",
530
- is_transfering: "N"
531
- },
532
- {
533
- card_number: "171003500000665",
534
- card_point: 10000,
535
- card_type: "2146",
536
- card_type_name: "一对一次卡(2d抵扣45,3d2张兑换一张)",
537
- unit: "次",
538
- end_time: "2025-07-26",
539
- is_valid: "Y",
540
- main_business_code_name: "",
541
- other_card_point: 0,
542
- is_exchange: "N",
543
- card_point_type: 1,
544
- business_codes: [
545
- "cake",
546
- "movie",
547
- "video",
548
- "market",
549
- "book",
550
- "health",
551
- "travel",
552
- "play",
553
- "small",
554
- "supermarket",
555
- "food"
556
- ],
557
- is_login: "N",
558
- consume_type: "1",
559
- card_use_rule: "",
560
- is_transfering: "N"
561
- },
562
- {
563
- card_number: "171003500000659",
564
- card_point: 1000,
565
- card_type: "2146",
566
- card_type_name: "一对一次卡(2d抵扣45,3d2张兑换一张)",
567
- unit: "次",
568
- end_time: "2025-06-30",
569
- is_valid: "Y",
570
- main_business_code_name: "",
571
- other_card_point: 0,
572
- is_exchange: "N",
573
- card_point_type: 1,
574
- business_codes: ["cake"],
575
- is_login: "N",
576
- consume_type: "1",
577
- card_use_rule: "",
578
- is_transfering: "N"
579
- },
580
- {
581
- card_number: "171003500000658",
582
- card_point: 1000,
583
- card_type: "2146",
584
- card_type_name: "一对一次卡(2d抵扣45,3d2张兑换一张)",
585
- unit: "次",
586
- end_time: "2025-06-30",
587
- is_valid: "Y",
588
- main_business_code_name: "",
589
- other_card_point: 0,
590
- is_exchange: "N",
591
- card_point_type: 1,
592
- business_codes: ["cake"],
593
- is_login: "N",
594
- consume_type: "1",
595
- card_use_rule: "",
596
- is_transfering: "N"
597
- },
598
- {
599
- card_number: "101001000008586",
600
- card_point: 99788102,
601
- card_type: "27",
602
- card_type_name: "聚福宝福",
603
- unit: "点",
604
- end_time: "2027-07-31",
605
- is_valid: "Y",
606
- main_business_code_name: "",
607
- other_card_point: 0,
608
- is_exchange: "N",
609
- card_point_type: 1,
610
- business_codes: ["cake", "movie", "10755f84"],
611
- is_login: "N",
612
- consume_type: "1",
613
- card_use_rule: "",
614
- is_transfering: "N"
615
- },
616
- {
617
- card_number: "101001000008601",
618
- card_point: 93040,
619
- card_type: "27",
620
- card_type_name: "聚福宝福",
621
- unit: "点",
622
- end_time: "2026-04-30",
623
- is_valid: "Y",
624
- main_business_code_name: "",
625
- other_card_point: 0,
626
- is_exchange: "N",
627
- card_point_type: 1,
628
- business_codes: [
629
- "cake",
630
- "movie",
631
- "video",
632
- "market",
633
- "book",
634
- "health",
635
- "travel",
636
- "play",
637
- "small",
638
- "supermarket",
639
- "food"
640
- ],
641
- is_login: "N",
642
- consume_type: "1",
643
- card_use_rule: "",
644
- is_transfering: "N"
645
- },
646
- {
647
- card_number: "101001000008609",
648
- card_point: 111897,
649
- card_type: "27",
650
- card_type_name: "聚福宝福",
651
- unit: "点",
652
- end_time: "2026-04-30",
653
- is_valid: "Y",
654
- main_business_code_name: "",
655
- other_card_point: 0,
656
- is_exchange: "N",
657
- card_point_type: 1,
658
- business_codes: [
659
- "cake",
660
- "movie",
661
- "video",
662
- "market",
663
- "book",
664
- "health",
665
- "travel",
666
- "play",
667
- "small",
668
- "supermarket",
669
- "food"
670
- ],
671
- is_login: "N",
672
- consume_type: "1",
673
- card_use_rule: "",
674
- is_transfering: "N"
675
- },
676
190
  ],
677
191
  request_id: "413e08844fe1d1af"
678
192
  }
@@ -14,7 +14,7 @@
14
14
  ></xd-unit>
15
15
  <!-- <text style="font-size: 24rpx;">{{ item.unit }}</text> -->
16
16
  </view>
17
- <view class="_rule">{{ item.card_use_rule }}</view>
17
+ <view class="_rule">{{ item.show_name }}</view>
18
18
  </view>
19
19
  <view class="coupon_right" :style="couponRightItemBoxStyle">
20
20
  <view class="cont_top" :style="{
@@ -153,7 +153,7 @@
153
153
  },
154
154
  couponRightItemBoxStyle(){
155
155
  let image = {};
156
- if(this.cardImageUrl) image = {
156
+ if(this.couponImageUrl) image = {
157
157
  backgroundImage: `url(${this.getCouponBgImage})`,
158
158
  backgroundSize: '100%',
159
159
  backgroundRepeat: 'no-repeat',
@@ -5,7 +5,10 @@
5
5
  >
6
6
  <view class="module_title" :style="moduleItemTitleStyle">{{ parent.name }}</view>
7
7
  <view v-if="parent.type !== 'product'" class="module_cont">
8
- <view v-for="(item, i) in parent.items" :key="i">
8
+ <view v-for="(item, i) in parent.items" :key="item.key"
9
+ class="module_cont_inner"
10
+ :style="moduleItemContStyle"
11
+ >
9
12
  <content-cinema v-if="parent.type === 'cinema'"
10
13
  style="width: 100%; height: 100%"
11
14
  :keyword="keyword"
@@ -48,11 +51,11 @@
48
51
  </view>
49
52
  </view>
50
53
  <view v-else class="module_cont product_wrap">
51
- <view v-for="(item, i) in parent.items" :key="i"
52
- :style="{
53
- width: getProductCell(parent.tab) == 2 ? (outItemProduct + 'rpx'): '100%',
54
- marginBottom: $parentVm.outSpacing + 'rpx',
55
- }"
54
+ <view v-for="(item, i) in parent.items" :key="item.key"
55
+ class="module_cont_inner"
56
+ :style="[moduleItemContStyle, {
57
+ width: getProductCell(parent.tab) == 2 ? `calc(50% - ${$parentVm.allModuleItemContMargin/2}rpx)`: '100%',
58
+ }]"
56
59
  >
57
60
  <content-product v-if="parent.type === 'product'"
58
61
  style="width: 100%; height: 100%"
@@ -109,6 +112,7 @@
109
112
  return str
110
113
  },
111
114
  moduleItemStyle(){
115
+ const { allModuleRadius } = this.$parentVm;
112
116
  let padding = `${this.$parentVm.checkValue(this.$parentVm.allModulePadding.top, 20)}rpx`;
113
117
  padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModulePadding.right, 20)}rpx`;
114
118
  padding = `${padding} ${this.$parentVm.checkValue(this.$parentVm.allModulePadding.bottom, 20)}rpx`;
@@ -117,7 +121,8 @@
117
121
  return this.styleObjectToString({
118
122
  background: this.$parentVm.allListBgColor,
119
123
  padding: padding,
120
- marginBottom: this.$parentVm.allModuleMargin + 'rpx'
124
+ marginBottom: this.$parentVm.allModuleMargin + 'rpx',
125
+ borderRadius: allModuleRadius + 'rpx',
121
126
  })
122
127
  },
123
128
  moduleItemTitleStyle(){
@@ -136,6 +141,35 @@
136
141
 
137
142
  return this.styleObjectToString(style);
138
143
  },
144
+ moduleItemContStyle(){
145
+ let {
146
+ allModuleItemContBorder, allModuleItemContShadow, allModuleItemContPadding, allModuleItemContMargin,
147
+ allModuleItemContRadius, allModuleItemContBgColor
148
+ } = this.$parentVm;
149
+ let border = "none";
150
+ let boxShadow = "none";
151
+ if(allModuleItemContBorder && allModuleItemContBorder.type === 'Y'){
152
+ let { width, color } = allModuleItemContBorder.value;
153
+ border = `${width}rpx solid ${color}`;
154
+ }
155
+ if(allModuleItemContShadow && allModuleItemContShadow.type === 'Y'){
156
+ let { width, color } = allModuleItemContShadow.value;
157
+ boxShadow = `0 0 ${width}rpx ${color}`;
158
+ }
159
+ let padding = `${this.$parentVm.checkValue(allModuleItemContPadding.top, 20)}rpx`;
160
+ padding = `${padding} ${this.$parentVm.checkValue(allModuleItemContPadding.right, 20)}rpx`;
161
+ padding = `${padding} ${this.$parentVm.checkValue(allModuleItemContPadding.bottom, 20)}rpx`;
162
+ padding = `${padding} ${this.$parentVm.checkValue(allModuleItemContPadding.left, 20)}rpx`;
163
+ console.log("allModuleItemContShadow", allModuleItemContShadow)
164
+ return this.styleObjectToString({
165
+ padding: padding,
166
+ border: border,
167
+ borderRadius: allModuleItemContRadius + 'rpx',
168
+ boxShadow: boxShadow,
169
+ marginBottom: allModuleItemContMargin + 'rpx',
170
+ background: allModuleItemContBgColor,
171
+ })
172
+ },
139
173
  moduleMoreStyle(){
140
174
  let allModuleMoreStyle = this.$parentVm.allModuleMoreStyle;
141
175
  let style = {};
@@ -150,6 +184,7 @@
150
184
  },
151
185
  outItemProduct(){
152
186
  //获取每列元素最大宽度
187
+ // return 300;
153
188
  let num = (750 - 3 * Number(this.$parentVm.outSpacing))/2;
154
189
  num = num - this.$parentVm.checkValue(this.$parentVm.contMargin.right, 20) - this.$parentVm.checkValue(this.$parentVm.contMargin.left, 20);
155
190
  return num - this.$parentVm.contBorderWidth * 2
@@ -178,7 +213,7 @@
178
213
  this.getList();
179
214
  },
180
215
  methods: {
181
- getProductCell(str){
216
+ getProductCell(str = ''){
182
217
  let cellNum = str.split("@")[3] || 1;
183
218
  return Number(cellNum);
184
219
  },
@@ -207,7 +242,13 @@
207
242
  this.$emit('on-list', {
208
243
  params: params,
209
244
  cb:(list)=>{
210
- this.list = list || [];
245
+ this.list = (list || []).map(parent => {
246
+ parent.items = parent.items.map(item => {
247
+ item['key'] = item.product_id || item.resource_shop_id || item.cinema_id || item.film_id;
248
+ return item;
249
+ })
250
+ return parent;
251
+ });
211
252
  this.$xdHideLoading();
212
253
  }
213
254
  })
@@ -237,6 +278,10 @@
237
278
  justify-content: space-between;
238
279
  flex-wrap: wrap;
239
280
  }
281
+
282
+ .module_cont_inner{
283
+ box-sizing: border-box;
284
+ }
240
285
  }
241
286
  .module_more{
242
287
  display: flex;
@@ -249,7 +294,7 @@
249
294
  display: flex;
250
295
  justify-content: center;
251
296
  align-items: center;
252
- height: 80rpx;
297
+ height: 70rpx;
253
298
  width: 200rpx;
254
299
  border-radius: 80rpx;
255
300
  }
@@ -9,7 +9,7 @@ module.exports = [
9
9
  //设置方法名字当别忘记加上【模块名字】:Tfk
10
10
  mapFnName: 'getTfkSearchList',
11
11
  title: '获取s搜索列表',
12
- path: '/mall/v1/search',
12
+ path: '/mall/v1/msearch',
13
13
  isRule: false,
14
14
  params: {
15
15
  keyword: ['模糊搜索关键字', 'Number', '必选'],