jufubao-base 1.0.169-beta13 → 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',
@@ -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', '必选'],
@@ -32,7 +32,7 @@
32
32
  <template v-if="type_other !== 2">
33
33
  <view
34
34
  v-for="item in dataList"
35
- :key="item.id"
35
+ :key="item.cuid"
36
36
  :style="{
37
37
  marginBottom:$parentVm.outSpacing + 'rpx',
38
38
  padding:contMarginComp,
@@ -99,7 +99,7 @@
99
99
  <view
100
100
  v-if="productTowList[listKey] !== null"
101
101
  v-for="item in productTowList[listKey]"
102
- :key="item.id"
102
+ :key="item.cuid"
103
103
  :style="{
104
104
  marginBottom:$parentVm.outSpacing + 'rpx',
105
105
  padding:contMarginComp,
@@ -127,7 +127,6 @@
127
127
  </view>
128
128
  </view>
129
129
  </view>
130
-
131
130
  </view>
132
131
  </view>
133
132
  </template>
@@ -258,7 +257,9 @@ export default {
258
257
  this.onCusReloadList();
259
258
  },500)
260
259
  },
260
+
261
261
  tabId(){
262
+ this.handleClear();
262
263
  this.parseTab()
263
264
  this.onCusReloadList();
264
265
  },
@@ -281,8 +282,6 @@ export default {
281
282
  parseTab(){
282
283
  let tabs = this.tabId.split('@');
283
284
  this.type_code = tabs[1];
284
- this.search_range = tabs[0]
285
- this.is_open_city = tabs[2];
286
285
  if(this.type_code === 'product'){
287
286
  this.type_other = Number(tabs[3]);
288
287
  if(this.type_other === 2) this.skeletonCount = 12
@@ -292,13 +291,15 @@ export default {
292
291
  this.skeletonCount = 6;
293
292
  this.type_other = null
294
293
  }
294
+ this.search_range = tabs[0]
295
+ this.is_open_city = tabs[2];
295
296
  },
296
297
 
297
298
  handleClear(){
298
299
  this.is_open_city = 'N';
299
300
  this.dataConfig = null;
300
301
  this.page_token = '1';
301
- this.dataList = null;
302
+ this.dataList = [];
302
303
  this.productTowList = {
303
304
  left:null,
304
305
  right:null,
@@ -325,15 +326,18 @@ export default {
325
326
 
326
327
 
327
328
  getList(){
329
+ let time = new Date().getTime();
328
330
 
329
331
  //无关键字不搜索
330
332
  if(this.keyword === '') {
331
333
  return;
332
334
  }
333
335
  this.$xdShowLoading({});
336
+ console.log(new Date().getTime()-time)
334
337
  this.$emit('on-list', {
335
338
  params:this.getParams,
336
339
  cb:(res)=>{
340
+ console.log(new Date().getTime()-time)
337
341
  //无数据处理
338
342
  if(res === null){
339
343
  this.hasNoData = true;
@@ -348,10 +352,7 @@ export default {
348
352
 
349
353
  //整理为统一ID
350
354
  res.items = res.items.map((item,index)=>{
351
- if(!item.id){
352
- item.id = item.product_id || item.resource_shop_id || item.cinema_id || item.film_id
353
- }
354
- //item.list_title = `${index} - ${ item.list_title}`
355
+ item.cuid = `${this.$xdUniHelper.randomChar(5)}_${item.product_id || item.resource_shop_id || item.cinema_id || item.film_id}`
355
356
  return item;
356
357
  })
357
358
 
@@ -371,7 +372,11 @@ export default {
371
372
  this.dataList = (this.dataList||[]).concat(res.items);
372
373
  this.page_token = res.next_page_token
373
374
  this.hasNoData = false;
374
- this.$xdHideLoading();
375
+ this.$nextTick(()=>{
376
+ setTimeout(()=>{
377
+ this.$xdHideLoading();
378
+ },300)
379
+ })
375
380
  }
376
381
  })
377
382
  }