jufubao-mall 2.0.16-beta1 → 2.0.16-beta2

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-beta2",
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
20
  <view v-if="showQuery === 'Y' && isFixed" :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
  >
@@ -176,6 +177,10 @@
176
177
  }
177
178
  },
178
179
 
180
+ searchFilterList(val){
181
+ debugger
182
+ }
183
+
179
184
  },
180
185
  filters:{
181
186
  filterLabels(val){
@@ -184,7 +189,7 @@
184
189
  else str = val.join(',');
185
190
  let maxStr = 9;
186
191
  if($vm.filterItemsComp.length === 3) maxStr = 7;
187
- if($vm.filterItemsComp.length === 4) maxStr = 5;
192
+ if($vm.filterItemsComp.length === 4) maxStr = 4;
188
193
  if(str.length > maxStr) return str.substring(0,maxStr) + '...'
189
194
  return str;
190
195
  },
@@ -214,7 +219,7 @@
214
219
 
215
220
  queryWrapStyle(){
216
221
  let top = this.layoutInfo.top;
217
- if(this.isFixed) top = (this.layoutInfo.top + this.cateFixedHeight) + 'rpx';
222
+ if(this.isFixed) top = (this.layoutInfo.top) + 'rpx';
218
223
  return{
219
224
  zIndex: this.showQueryModal ? 1002 : 1,
220
225
  backgroundColor: this.filterBgcColor|| '#fff',
@@ -225,13 +230,13 @@
225
230
  },
226
231
 
227
232
  contStyleComp(){
228
- //let height = this.layoutInfo.bodyMinHeightRpx - 72;
233
+ let height = this.layoutInfo.bodyMinHeightRpx - 80;
229
234
  //大于一个标签显示标签
230
235
  //if(this.titleList.length > 1) height = height - 100;
231
236
  //if(this.mapIsExtend) height = height - 400;
232
- //height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
237
+ height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
233
238
  return {
234
- // height: height + 'rpx',
239
+ minHeight: height + 'rpx',
235
240
  padding: this.getMarginAndPadding(this.bodyPadding, 0),
236
241
  backgroundColor: this.contentBgColor
237
242
  }
@@ -248,6 +253,7 @@
248
253
  },
249
254
  created() {
250
255
  this.isPreview = this.$configProject.isPreview;
256
+ this.isFixed = !this.isPreview
251
257
  this.init(this.container);
252
258
  $vm= this;
253
259
  },
@@ -281,7 +287,6 @@
281
287
  }
282
288
  this.cusNames = cusNames;
283
289
  this.cusEntry = cusEntry;
284
- debugger
285
290
 
286
291
  //内容显示
287
292
  let cusContent = [];
@@ -289,6 +294,7 @@
289
294
  if(gCPVal(container,'showStoreAddress','Y') === 'Y') cusContent.push('address'); //门店地址
290
295
  if(gCPVal(container,'showStoreDistance','Y') === 'Y') cusContent.push('distance'); //地址
291
296
  if(gCPVal(container,'showStorePrice','Y') === 'Y') cusContent.push('price'); // 折扣/价格
297
+ cusContent.push('image');
292
298
  this.cusContent = cusContent;
293
299
 
294
300
  //style
@@ -365,7 +371,6 @@
365
371
  params['longitude'] = this.stateLocation.longitude;
366
372
  params['latitude'] = this.stateLocation.latitude;
367
373
  }
368
-
369
374
  return params
370
375
  },
371
376
 
@@ -503,9 +508,12 @@
503
508
 
504
509
  let data = {
505
510
  ...this.options,
506
- namespace: this.xnamespace,
511
+ namespace: 'cake',//this.xnamespace,
507
512
  keyword: this.keyword,
508
513
  city_code: this.stateCity.city_code,
514
+ type:'sell',
515
+ filter_item: this.filterMode.filter(item=>item !== 'filter').join(','),
516
+
509
517
  }
510
518
  jfbRootExec("getNewSearchFilterList", {
511
519
  vm: this,
@@ -566,8 +574,8 @@
566
574
  onJfbLoad(options) {
567
575
 
568
576
  //测试数据
569
- options['brand_id'] = '1007871,100535';
570
- options['shop_category_ids'] = 'book,cake';
577
+ // options['brand_id'] = '1007871,100535';
578
+ // options['shop_category_ids'] = 'book,cake';
571
579
 
572
580
  //删除空参数
573
581
  if(!baseIsEmpty(options)){
@@ -596,14 +604,12 @@
596
604
  }
597
605
 
598
606
  this.options = this.$xdUniHelper.cloneDeep(options);
599
-
600
607
  this.getSearchFilterList();
601
608
  this.getList();
602
609
  },
603
610
  onJfbReachBottom(options) {
604
611
  if(this.loading) return;
605
612
  if(this.hasNextPage){
606
- this.page_token = this.next_page_token;
607
613
  this.getList();
608
614
  }
609
615
  },
@@ -633,6 +639,11 @@
633
639
  position: relative;
634
640
  z-index: 103;
635
641
  height: 80rpx;
642
+ box-sizing: border-box;
643
+ &.isFixed {
644
+ position: fixed;
645
+ width: 100%;
646
+ }
636
647
 
637
648
  &_tabs {
638
649
  display: flex;
@@ -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">