jufubao-mall 2.0.16-beta1 → 2.0.16-beta11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.16-beta1",
3
+ "version": "2.0.16-beta11",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -30,7 +30,7 @@ module.exports = [
30
30
  title: "获取搜索过滤条件",
31
31
  path: "/mall/v1/msearch/search-filter",
32
32
  isRule: true,
33
- params: {
33
+ data: {
34
34
  type:['搜类型', 'String', '必选','sell'],
35
35
  filter_item:['过滤参数', 'String', '必选','area,brand,shop_category'],
36
36
  keyword: ['关键字', 'String', '必选'],
@@ -15,11 +15,12 @@
15
15
  </view>
16
16
  </view>
17
17
  <!-- #endif -->
18
- <view class="jfb-mall-new-shop-list__body">
18
+ <view class="jfb-mall-new-shop-list__body" >
19
19
  <!--搜索条件-->
20
- <view v-if="showQuery === 'Y' && isFixed" :style="{height:cateFixedHeight + 'rpx'}"></view>
20
+ <view v-if="showQuery === 'Y' && isFixed && searchFilterList.length > 0" :style="{height:cateFixedHeight + 'rpx'}"></view>
21
21
  <view
22
22
  class="query_wrap"
23
+ :class="{isFixed:isFixed}"
23
24
  v-if="showQuery === 'Y' && searchFilterList.length > 0"
24
25
  :style="[queryWrapStyle]"
25
26
  >
@@ -75,6 +76,11 @@
75
76
  @on-event="handleToEvent"
76
77
  ></cus-shops>
77
78
  </view>
79
+ <xd-more
80
+ v-if="(isPreview || !hasNextPage) && (shopList && shopList.length > 0)"
81
+ :color="footerColor"
82
+ :background="footerColor"
83
+ ><text>我是有底线的</text></xd-more>
78
84
  </view>
79
85
  </view>
80
86
  </template>
@@ -91,6 +97,7 @@
91
97
  import XdQueryFilter from "./XdQueryFilter"
92
98
  import { baseIsEmpty, } from "@/utils/xd.base";
93
99
  import CusShops from "@/components/CusShops/CusShops.vue";
100
+ import XdMore from "@/components/XdMore/XdMore.vue";
94
101
  let $vm = null;
95
102
 
96
103
  export default {
@@ -100,11 +107,13 @@
100
107
  XdFontIcon,
101
108
  XdButton,
102
109
  XdQueryFilter,
110
+ XdMore
103
111
  },
104
112
  mixins: [componentsMixins,extsMixins,JfbMallNewShopListMixin],
105
113
  data() {
106
114
  return {
107
115
  //系统变量
116
+ isPreview:false,
108
117
  closeMask: true,
109
118
  shopList: null,
110
119
  page_size: 10,
@@ -134,6 +143,7 @@
134
143
  bodyPadding:{},
135
144
  contentBgColor:'rgba(0,0,0,0)',
136
145
  cusStyle:{}, //门店样式设置
146
+ footerColor:'#ddd',
137
147
 
138
148
 
139
149
  //搜索条件
@@ -175,7 +185,9 @@
175
185
  }, 500)
176
186
  }
177
187
  },
178
-
188
+ showQuery(val){
189
+ if(val === 'Y') this.getSearchFilterList();
190
+ },
179
191
  },
180
192
  filters:{
181
193
  filterLabels(val){
@@ -184,7 +196,7 @@
184
196
  else str = val.join(',');
185
197
  let maxStr = 9;
186
198
  if($vm.filterItemsComp.length === 3) maxStr = 7;
187
- if($vm.filterItemsComp.length === 4) maxStr = 5;
199
+ if($vm.filterItemsComp.length === 4) maxStr = 4;
188
200
  if(str.length > maxStr) return str.substring(0,maxStr) + '...'
189
201
  return str;
190
202
  },
@@ -214,7 +226,7 @@
214
226
 
215
227
  queryWrapStyle(){
216
228
  let top = this.layoutInfo.top;
217
- if(this.isFixed) top = (this.layoutInfo.top + this.cateFixedHeight) + 'rpx';
229
+ if(this.isFixed) top = (this.layoutInfo.top) + 'rpx';
218
230
  return{
219
231
  zIndex: this.showQueryModal ? 1002 : 1,
220
232
  backgroundColor: this.filterBgcColor|| '#fff',
@@ -225,13 +237,13 @@
225
237
  },
226
238
 
227
239
  contStyleComp(){
228
- //let height = this.layoutInfo.bodyMinHeightRpx - 72;
240
+ let height = this.layoutInfo.bodyMinHeightRpx - 80;
229
241
  //大于一个标签显示标签
230
242
  //if(this.titleList.length > 1) height = height - 100;
231
243
  //if(this.mapIsExtend) height = height - 400;
232
- //height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
244
+ height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
233
245
  return {
234
- // height: height + 'rpx',
246
+ minHeight: height + 'rpx',
235
247
  padding: this.getMarginAndPadding(this.bodyPadding, 0),
236
248
  backgroundColor: this.contentBgColor
237
249
  }
@@ -248,6 +260,7 @@
248
260
  },
249
261
  created() {
250
262
  this.isPreview = this.$configProject.isPreview;
263
+ this.isFixed = !this.isPreview
251
264
  this.init(this.container);
252
265
  $vm= this;
253
266
  },
@@ -281,7 +294,6 @@
281
294
  }
282
295
  this.cusNames = cusNames;
283
296
  this.cusEntry = cusEntry;
284
- debugger
285
297
 
286
298
  //内容显示
287
299
  let cusContent = [];
@@ -292,7 +304,7 @@
292
304
  this.cusContent = cusContent;
293
305
 
294
306
  //style
295
- let sValue = `{"cardItemSpace":16,"margin":{"bottom":16,"left":0,"right":0,"top":16},"backgroundColor":"rgba(245, 245, 245, 1)"}`
307
+ let sValue = `{"cardItemSpace":16,"margin":{"bottom":16,"left":16,"right":16,"top":16},"backgroundColor":"rgba(245, 245, 245, 1)"}`
296
308
  let shopStyle = this.getRelationStatus(container,'shopStyle', { cardItemSpaceStatus:['cardItemSpace'],bodyPaddingStatus:['bodyPadding']}, sValue);
297
309
  this.bodyPadding = gCPVal(container,'bodyPadding', [{ bottom:0,left:16, right:16,top:16}], {sKey:'bodyPaddingStatus',fields:['bodyPadding'],cusFields: ['shopStyle','margin',shopStyle],isPMR: true});
298
310
  this.contentBgColor = gCPVal(container,'contentBgColor', '#f8f8f8', {sKey:'contentBgColorStatus',fields:['contentBgColor']});
@@ -328,7 +340,7 @@
328
340
  //高级属性
329
341
  this.shopInfoPath = gCPVal(container, "shopInfoPath", {value: ""}).value;
330
342
  this.isAutoJump = gCPVal(container, 'isAutoJump', []);
331
- this.scanPath = gCPVal(container, 'cscanPath', {value: ''}).value;
343
+ this.scanPath = gCPVal(container, 'scanPath', {value: ''}).value;
332
344
  this.jhdPath = gCPVal(container, "jhdPath", {value: ""}).value;
333
345
  this.qpPath = gCPVal(container, 'qpPath', {value: ''}).value;
334
346
  this.seatPath = gCPVal(container, 'seatPath', {value: ''}).value;
@@ -365,7 +377,6 @@
365
377
  params['longitude'] = this.stateLocation.longitude;
366
378
  params['latitude'] = this.stateLocation.latitude;
367
379
  }
368
-
369
380
  return params
370
381
  },
371
382
 
@@ -503,9 +514,10 @@
503
514
 
504
515
  let data = {
505
516
  ...this.options,
506
- namespace: this.xnamespace,
517
+ namespace: 'cake',//this.xnamespace,
507
518
  keyword: this.keyword,
508
519
  city_code: this.stateCity.city_code,
520
+ type:'sell',
509
521
  }
510
522
  jfbRootExec("getNewSearchFilterList", {
511
523
  vm: this,
@@ -565,9 +577,10 @@
565
577
  //==system event===
566
578
  onJfbLoad(options) {
567
579
 
580
+
568
581
  //测试数据
569
- options['brand_id'] = '1007871,100535';
570
- options['shop_category_ids'] = 'book,cake';
582
+ // options['brand_id'] = '1007871,100535';
583
+ // options['shop_category_ids'] = 'book,cake';
571
584
 
572
585
  //删除空参数
573
586
  if(!baseIsEmpty(options)){
@@ -596,14 +609,12 @@
596
609
  }
597
610
 
598
611
  this.options = this.$xdUniHelper.cloneDeep(options);
599
-
600
612
  this.getSearchFilterList();
601
613
  this.getList();
602
614
  },
603
615
  onJfbReachBottom(options) {
604
616
  if(this.loading) return;
605
617
  if(this.hasNextPage){
606
- this.page_token = this.next_page_token;
607
618
  this.getList();
608
619
  }
609
620
  },
@@ -633,6 +644,11 @@
633
644
  position: relative;
634
645
  z-index: 103;
635
646
  height: 80rpx;
647
+ box-sizing: border-box;
648
+ &.isFixed {
649
+ position: fixed;
650
+ width: 100%;
651
+ }
636
652
 
637
653
  &_tabs {
638
654
  display: flex;
@@ -645,6 +661,8 @@
645
661
  &_title {
646
662
  text-align: center;
647
663
  flex: 1;
664
+ font-size: 28rpx;
665
+ color: #333;
648
666
  }
649
667
 
650
668
  &_item {
@@ -480,366 +480,6 @@ module.exports = {
480
480
  "latitude": "36.49419441977518",
481
481
  "discount_ratio": 8100
482
482
  },
483
- {
484
- "brand_id": 20013,
485
- "brand_name": "塞奇",
486
- "brand_type": "MA",
487
- "business_status": "OPEN_BUSINESS",
488
- "consume_mode": [
489
- "SELL"
490
- ],
491
- "consume_options":[],
492
- "consume_mode_name": "",
493
- "distance": "1233km",
494
- "distance_conversion": "1,232.4km",
495
- "default_consume_type": "CV",
496
- "consume_type": [
497
- "CV"
498
- ],
499
- "is_support_jhd": true,
500
- "address": "兰州新区兰州市新区中川园区栖霞中心社区京都之星购物中心1F-1029-2号",
501
- "province_name": "",
502
- "city_name": "",
503
- "area_name": "",
504
- "street_name": "",
505
- "phone": "0931-8423221",
506
- "resource_shop_id": 8057328,
507
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDU3MzI4LCJzaG9wX2lkIjoxMTM2OTYxLCJ2ZXJzaW9uIjoyfQ",
508
- "resource_shop_name": "塞奇新区京都广场店[无]",
509
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/43c89de1f4563758938f4c1585695523.png",
510
- "shop_id": 1136961,
511
- "shop_tags": [],
512
- "stars": 0,
513
- "time_slot_name": "-",
514
- "business_code": "",
515
- "longitude": "103.67888288761792",
516
- "latitude": "36.487307479335655",
517
- "discount_ratio": 8100
518
- },
519
- {
520
- "brand_id": 20007,
521
- "brand_name": "甜美香积",
522
- "brand_type": "MA",
523
- "business_status": "OPEN_BUSINESS",
524
- "consume_mode": [
525
- "SELL"
526
- ],
527
- "consume_options":[],
528
- "consume_mode_name": "",
529
- "distance": "1234km",
530
- "distance_conversion": "1,233.0km",
531
- "default_consume_type": "CV",
532
- "consume_type": [
533
- "CV"
534
- ],
535
- "is_support_jhd": false,
536
- "address": "城关区城区甘肃省兰州市城关区雁儿湾路236号欣欣嘉园东区9-103室",
537
- "province_name": "",
538
- "city_name": "",
539
- "area_name": "",
540
- "street_name": "",
541
- "phone": "0931-8696076",
542
- "resource_shop_id": 3500732,
543
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjozNTAwNzMyLCJzaG9wX2lkIjoxMDA3MzIsInZlcnNpb24iOjJ9",
544
- "resource_shop_name": "甜美香积欣欣嘉园店[无]",
545
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/bc0d713ffe1ad05c9105ce3b7cac3256.png",
546
- "shop_id": 100732,
547
- "shop_tags": [],
548
- "stars": 0,
549
- "time_slot_name": "08:00-21:00",
550
- "business_code": "",
551
- "longitude": "103.90956080000001",
552
- "latitude": "36.048156600000006",
553
- "discount_ratio": 8100
554
- },
555
- {
556
- "brand_id": 20013,
557
- "brand_name": "塞奇",
558
- "brand_type": "MA",
559
- "business_status": "OPEN_BUSINESS",
560
- "consume_mode": [
561
- "SELL"
562
- ],
563
- "consume_options":[],
564
- "consume_mode_name": "",
565
- "distance": "1234km",
566
- "distance_conversion": "1,233.1km",
567
- "default_consume_type": "CV",
568
- "consume_type": [
569
- "CV"
570
- ],
571
- "is_support_jhd": false,
572
- "address": "城关区兰州市城关区雁南街道刘家滩村608府25-2号",
573
- "province_name": "",
574
- "city_name": "",
575
- "area_name": "",
576
- "street_name": "",
577
- "phone": "13919270868",
578
- "resource_shop_id": 8000467,
579
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwNDY3LCJzaG9wX2lkIjoxMDM5NzQ0LCJ2ZXJzaW9uIjoyfQ",
580
- "resource_shop_name": "塞奇科教城店[无]",
581
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/43c89de1f4563758938f4c1585695523.png",
582
- "shop_id": 1039744,
583
- "shop_tags": [],
584
- "stars": 0,
585
- "time_slot_name": "-",
586
- "business_code": "",
587
- "longitude": "103.90137905904297",
588
- "latitude": "36.0615664312187",
589
- "discount_ratio": 8100
590
- },
591
- {
592
- "brand_id": 20007,
593
- "brand_name": "甜美香积",
594
- "brand_type": "MA",
595
- "business_status": "OPEN_BUSINESS",
596
- "consume_mode": [
597
- "SELL"
598
- ],
599
- "consume_options":[],
600
- "consume_mode_name": "",
601
- "distance": "1234km",
602
- "distance_conversion": "1,233.7km",
603
- "default_consume_type": "CV",
604
- "consume_type": [
605
- "CV"
606
- ],
607
- "is_support_jhd": false,
608
- "address": "城关区城区甘肃省兰州市城关区格林小镇16号8号商铺",
609
- "province_name": "",
610
- "city_name": "",
611
- "area_name": "",
612
- "street_name": "",
613
- "phone": "0931-8594076",
614
- "resource_shop_id": 3500731,
615
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjozNTAwNzMxLCJzaG9wX2lkIjoxMDA3MzEsInZlcnNpb24iOjJ9",
616
- "resource_shop_name": "甜美香积格林小镇店[无]",
617
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/bc0d713ffe1ad05c9105ce3b7cac3256.png",
618
- "shop_id": 100731,
619
- "shop_tags": [],
620
- "stars": 0,
621
- "time_slot_name": "08:00-21:00",
622
- "business_code": "",
623
- "longitude": "103.89042809999998",
624
- "latitude": "36.0665271",
625
- "discount_ratio": 8100
626
- },
627
- {
628
- "brand_id": 20156,
629
- "brand_name": "安旗",
630
- "brand_type": "MA",
631
- "business_status": "OPEN_BUSINESS",
632
- "consume_mode": [
633
- "SELL"
634
- ],
635
- "consume_options":[],
636
- "consume_mode_name": "",
637
- "distance": "1234km",
638
- "distance_conversion": "1,233.7km",
639
- "default_consume_type": "CV",
640
- "consume_type": [
641
- "CV"
642
- ],
643
- "is_support_jhd": false,
644
- "address": "城关区焦家湾街道甘肃省兰州市城关区东岗东路483号",
645
- "province_name": "",
646
- "city_name": "",
647
- "area_name": "",
648
- "street_name": "",
649
- "phone": "156-0931-3067",
650
- "resource_shop_id": 3512729,
651
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjozNTEyNzI5LCJzaG9wX2lkIjoxMTE3MDMsInZlcnNpb24iOjJ9",
652
- "resource_shop_name": "安旗焦家湾店[无]",
653
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20210119/2fa6587feb8dce76942010d6adc4a1e3.jpg",
654
- "shop_id": 111703,
655
- "shop_tags": [],
656
- "stars": 0,
657
- "time_slot_name": "09:00-21:00",
658
- "business_code": "",
659
- "longitude": "103.90647489999999",
660
- "latitude": "36.03784149999999",
661
- "discount_ratio": 7700
662
- },
663
- {
664
- "brand_id": 20011,
665
- "brand_name": "红房子",
666
- "brand_type": "MA",
667
- "business_status": "OPEN_BUSINESS",
668
- "consume_mode": [
669
- "SELL"
670
- ],
671
- "consume_options":[],
672
- "consume_mode_name": "",
673
- "distance": "1234km",
674
- "distance_conversion": "1,234.0km",
675
- "default_consume_type": "CV",
676
- "consume_type": [
677
- "CV"
678
- ],
679
- "is_support_jhd": false,
680
- "address": "城关区城区甘肃省兰州市城关区雁南路18号软件大厦一层A-B-2-3室",
681
- "province_name": "",
682
- "city_name": "",
683
- "area_name": "",
684
- "street_name": "",
685
- "phone": "0931-8853015",
686
- "resource_shop_id": 3500717,
687
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjozNTAwNzE3LCJzaG9wX2lkIjoxMDA3MTcsInZlcnNpb24iOjJ9",
688
- "resource_shop_name": "红房子飞雁街店[无]",
689
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/2853d901c59fccd9d69526ad394a6d3c.png",
690
- "shop_id": 100717,
691
- "shop_tags": [],
692
- "stars": 0,
693
- "time_slot_name": "08:00-21:00",
694
- "business_code": "",
695
- "longitude": "103.894136",
696
- "latitude": "36.054105",
697
- "discount_ratio": 8600
698
- },
699
- {
700
- "brand_id": 21103,
701
- "brand_name": "谷麦密码",
702
- "brand_type": "MA",
703
- "business_status": "OPEN_BUSINESS",
704
- "consume_mode": [
705
- "SELL"
706
- ],
707
- "consume_options":[],
708
- "consume_mode_name": "",
709
- "distance": "1235km",
710
- "distance_conversion": "1,234.2km",
711
- "default_consume_type": "CV",
712
- "consume_type": [
713
- "CV"
714
- ],
715
- "is_support_jhd": false,
716
- "address": "城关区兰州市城关区南滨河路东路5002号(室内步行街1层1012号商铺)",
717
- "province_name": "",
718
- "city_name": "",
719
- "area_name": "",
720
- "street_name": "",
721
- "phone": "13919033881",
722
- "resource_shop_id": 3517423,
723
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjozNTE3NDIzLCJzaG9wX2lkIjoxMzU2MDAsInZlcnNpb24iOjJ9",
724
- "resource_shop_name": "谷麦密码名城广场店[无]",
725
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20230529/5c5e45188cde68ea6efa95dcb8c982c4.jpg",
726
- "shop_id": 135600,
727
- "shop_tags": [],
728
- "stars": 0,
729
- "time_slot_name": "09:00-21:00",
730
- "business_code": "",
731
- "longitude": "103.87480457697183",
732
- "latitude": "36.084009425167906",
733
- "discount_ratio": 7700
734
- },
735
- {
736
- "brand_id": 20011,
737
- "brand_name": "红房子",
738
- "brand_type": "MA",
739
- "business_status": "OPEN_BUSINESS",
740
- "consume_mode": [
741
- "SELL"
742
- ],
743
- "consume_options":[],
744
- "consume_mode_name": "",
745
- "distance": "1235km",
746
- "distance_conversion": "1,234.3km",
747
- "default_consume_type": "CV",
748
- "consume_type": [
749
- "CV"
750
- ],
751
- "is_support_jhd": false,
752
- "address": "城关区甘肃省兰州市城关区雁滩路3566-2号",
753
- "province_name": "",
754
- "city_name": "",
755
- "area_name": "",
756
- "street_name": "",
757
- "phone": "0931-8230106",
758
- "resource_shop_id": 3517647,
759
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjozNTE3NjQ3LCJzaG9wX2lkIjoxMzMwOTksInZlcnNpb24iOjJ9",
760
- "resource_shop_name": "红房子雁滩店[无]",
761
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/2853d901c59fccd9d69526ad394a6d3c.png",
762
- "shop_id": 133099,
763
- "shop_tags": [],
764
- "stars": 0,
765
- "time_slot_name": "09:00-18:00",
766
- "business_code": "",
767
- "longitude": "103.88307653342991",
768
- "latitude": "36.06753095801935",
769
- "discount_ratio": 8600
770
- },
771
- {
772
- "brand_id": 20074,
773
- "brand_name": "法贝德",
774
- "brand_type": "MA",
775
- "business_status": "OPEN_BUSINESS",
776
- "consume_mode": [
777
- "SELL"
778
- ],
779
- "consume_options":[],
780
- "consume_mode_name": "",
781
- "distance": "1235km",
782
- "distance_conversion": "1,234.3km",
783
- "default_consume_type": "CV",
784
- "consume_type": [
785
- "CV"
786
- ],
787
- "is_support_jhd": false,
788
- "address": "城关区甘肃省兰州市城关区拱星墩街道段家滩路507号筑梦时代广场5栋1楼102号铺面",
789
- "province_name": "",
790
- "city_name": "",
791
- "area_name": "",
792
- "street_name": "",
793
- "phone": "18109317967",
794
- "resource_shop_id": 8002284,
795
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAyMjg0LCJzaG9wX2lkIjoxMDQxODA5LCJ2ZXJzaW9uIjoyfQ",
796
- "resource_shop_name": "法贝德筑梦时代店[无]",
797
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200804/d48dc9dc025ad2240c7602a4ca15260b.jpg",
798
- "shop_id": 1041809,
799
- "shop_tags": [],
800
- "stars": 0,
801
- "time_slot_name": "-",
802
- "business_code": "",
803
- "longitude": "103.89317007380113",
804
- "latitude": "36.04904662594761",
805
- "discount_ratio": 8000
806
- },
807
- {
808
- "brand_id": 20007,
809
- "brand_name": "甜美香积",
810
- "brand_type": "MA",
811
- "business_status": "OPEN_BUSINESS",
812
- "consume_mode": [
813
- "SELL"
814
- ],
815
- "consume_options":[],
816
- "consume_mode_name": "",
817
- "distance": "1235km",
818
- "distance_conversion": "1,234.7km",
819
- "default_consume_type": "CV",
820
- "consume_type": [
821
- "CV"
822
- ],
823
- "is_support_jhd": false,
824
- "address": "城关区甘肃省兰州市城关区雁滩路3113号欣大百货一层1-22号",
825
- "province_name": "",
826
- "city_name": "",
827
- "area_name": "",
828
- "street_name": "",
829
- "phone": "09318833656",
830
- "resource_shop_id": 8000706,
831
- "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwNzA2LCJzaG9wX2lkIjoxMDQwNDc2LCJ2ZXJzaW9uIjoyfQ",
832
- "resource_shop_name": "甜美香积欣大百货店[无]",
833
- "shop_icon": "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20200629/bc0d713ffe1ad05c9105ce3b7cac3256.png",
834
- "shop_id": 1040476,
835
- "shop_tags": [],
836
- "stars": 0,
837
- "time_slot_name": "-",
838
- "business_code": "",
839
- "longitude": "103.87782198517985",
840
- "latitude": "36.06679685897937",
841
- "discount_ratio": 8100
842
- }
843
483
  ],
844
484
  "total_size": 1,
845
485
  "next_page_token":"",
@@ -4,7 +4,7 @@
4
4
  <view
5
5
  class="filter_item"
6
6
  v-for="tab in filterTabs"
7
- :key="tab.title"
7
+ :key="tab.value"
8
8
  :style="[contStyleComp]"
9
9
  >
10
10
  <view class="filter_title">
@@ -93,7 +93,7 @@ export default {
93
93
  };
94
94
  },
95
95
  boxListComp(){
96
- let maxHeight = this.$root.layoutInfo['bodyMinHeightRpx'] - 180;
96
+ let maxHeight = this.$root.layoutInfo['bodyMinHeightRpx'] - 400;
97
97
  if(this.$configProject.isPreview) maxHeight = 800;
98
98
  return {
99
99
  backgroundColor: this.filterStyle['filterListColor'] || '#f8f8f8',
@@ -215,16 +215,9 @@ export default {
215
215
  setChooseTag(tab, item){
216
216
  //单选
217
217
  if(!tab.multiple) {
218
- //取消
219
- if(this.selectedIds[tab.value] && this.selectedIds[tab.value].includes(item.value)) {
220
- this.setSelectData(tab.value, '', '', '')
221
- }
222
- //新增
223
- else {
224
- this.setSelectData(tab.value, item.value, item, item.label);
225
- //单选直接触发返回数据
226
- if(this.isShowBtn === false) this.onConfirm();
227
- }
218
+ this.setSelectData(tab.value, item.value, item, item.label);
219
+ //单选直接触发返回数据
220
+ if(this.isShowBtn === false) this.onConfirm();
228
221
  }
229
222
  //多选
230
223
  else {
@@ -127,13 +127,13 @@ export default (data, gValue, gColor, oldData={})=>{
127
127
  key: 'shopStyle',
128
128
  fields: checkFieldsBg,
129
129
  gValue,
130
- sValue:`{"cardItemSpace":16,"margin":{"bottom":16,"left":0,"right":0,"top":16},"backgroundColor":"rgba(245, 245, 245, 1)"}`,
130
+ sValue:`{"cardItemSpace":16,"margin":{"bottom":16,"left":16,"right":16,"top":16},"backgroundColor":"rgba(245, 245, 245, 1)"}`,
131
131
  }),
132
132
  labelInline:true,
133
133
  className: 'input100',
134
134
  handleCustom(cusRes) {
135
135
  XdBus.getParentApi('getCompStylesOptions')({
136
- layout_ids: 'HRpFvIp2mhuIUZujv9dnR',
136
+ layout_ids: '0kzfDGB7TKSmh5z2KTKH4',
137
137
  key: Date.now()
138
138
  })
139
139
  .then(res => {
@@ -300,12 +300,39 @@ export default (data, gValue, gColor, oldData={})=>{
300
300
  {value:'jhd', label: '聚好兑', input:'',def:'聚好兑', check: false,placeholder:'服务类型为支持核销时使用'},
301
301
  {value:'wb', label: '扫一扫',input:'',def:'扫一扫',check: false,placeholder:'服务类型为支持核销时使用'},
302
302
  {value:'qp', label: '快捷码',input:'',def:'去提货',check: false,placeholder:'服务类型为支持核销时使用'},
303
- {value:'seat', label: '在线选座',input:'',def:'去购票',check: false,placeholder:''},
303
+ {value:'seat', label: '在线选座',input:'',def:'去订票',check: false,placeholder:''},
304
304
  {value:'code', label: '电子码',input:'',def:'电子码',check: false,placeholder:''},
305
305
  {value:'hdself', label: '到店自取',input:'',def:'去下单',check: false,placeholder:'服务类型为小时达到店时使用'},
306
- {value:'travel', label: '旅游门票',input:'',def:'去购票',check: false,placeholder:''}
306
+ {value:'travel', label: '旅游门票',input:'',def:'去订票',check: false,placeholder:''}
307
307
  ])
308
308
  },
309
+ rules:[{
310
+ validator: (rule, value, callback) => {
311
+ debugger
312
+ let errorStr = '';
313
+ //设置为空
314
+ if(!value || (value && value.length === 0)) {
315
+ callback();
316
+ return;
317
+ }
318
+ //非空,判断设置的名称长度不能大于4
319
+ if(value && value.length > 0) {
320
+ let len = value.length;
321
+ for(let i = 0; i < len; i++) {
322
+ if(value[i].input.length > 4) {
323
+ errorStr = `${value[i].label}名称最大长度不能超过4个汉字`;
324
+ break
325
+ }
326
+ }
327
+ }
328
+ if(errorStr) {
329
+ callback(errorStr)
330
+ return
331
+ }
332
+
333
+ callback()
334
+ }, message: '输入名称内容最多4字', trigger: ['blur', 'change']
335
+ }]
309
336
  },
310
337
  {ele: 'group_end'},
311
338
  ].filter(i=>i)