jufubao-mall 2.0.16-beta1 → 2.0.16-beta3

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-beta3",
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
  >
@@ -175,7 +176,6 @@
175
176
  }, 500)
176
177
  }
177
178
  },
178
-
179
179
  },
180
180
  filters:{
181
181
  filterLabels(val){
@@ -184,7 +184,7 @@
184
184
  else str = val.join(',');
185
185
  let maxStr = 9;
186
186
  if($vm.filterItemsComp.length === 3) maxStr = 7;
187
- if($vm.filterItemsComp.length === 4) maxStr = 5;
187
+ if($vm.filterItemsComp.length === 4) maxStr = 4;
188
188
  if(str.length > maxStr) return str.substring(0,maxStr) + '...'
189
189
  return str;
190
190
  },
@@ -214,7 +214,7 @@
214
214
 
215
215
  queryWrapStyle(){
216
216
  let top = this.layoutInfo.top;
217
- if(this.isFixed) top = (this.layoutInfo.top + this.cateFixedHeight) + 'rpx';
217
+ if(this.isFixed) top = (this.layoutInfo.top) + 'rpx';
218
218
  return{
219
219
  zIndex: this.showQueryModal ? 1002 : 1,
220
220
  backgroundColor: this.filterBgcColor|| '#fff',
@@ -225,13 +225,13 @@
225
225
  },
226
226
 
227
227
  contStyleComp(){
228
- //let height = this.layoutInfo.bodyMinHeightRpx - 72;
228
+ let height = this.layoutInfo.bodyMinHeightRpx - 80;
229
229
  //大于一个标签显示标签
230
230
  //if(this.titleList.length > 1) height = height - 100;
231
231
  //if(this.mapIsExtend) height = height - 400;
232
- //height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
232
+ height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
233
233
  return {
234
- // height: height + 'rpx',
234
+ minHeight: height + 'rpx',
235
235
  padding: this.getMarginAndPadding(this.bodyPadding, 0),
236
236
  backgroundColor: this.contentBgColor
237
237
  }
@@ -248,6 +248,7 @@
248
248
  },
249
249
  created() {
250
250
  this.isPreview = this.$configProject.isPreview;
251
+ this.isFixed = !this.isPreview
251
252
  this.init(this.container);
252
253
  $vm= this;
253
254
  },
@@ -281,7 +282,6 @@
281
282
  }
282
283
  this.cusNames = cusNames;
283
284
  this.cusEntry = cusEntry;
284
- debugger
285
285
 
286
286
  //内容显示
287
287
  let cusContent = [];
@@ -365,7 +365,6 @@
365
365
  params['longitude'] = this.stateLocation.longitude;
366
366
  params['latitude'] = this.stateLocation.latitude;
367
367
  }
368
-
369
368
  return params
370
369
  },
371
370
 
@@ -503,9 +502,12 @@
503
502
 
504
503
  let data = {
505
504
  ...this.options,
506
- namespace: this.xnamespace,
505
+ namespace: 'cake',//this.xnamespace,
507
506
  keyword: this.keyword,
508
507
  city_code: this.stateCity.city_code,
508
+ type:'sell',
509
+ filter_item: this.filterMode.filter(item=>item !== 'filter').join(','),
510
+
509
511
  }
510
512
  jfbRootExec("getNewSearchFilterList", {
511
513
  vm: this,
@@ -566,8 +568,8 @@
566
568
  onJfbLoad(options) {
567
569
 
568
570
  //测试数据
569
- options['brand_id'] = '1007871,100535';
570
- options['shop_category_ids'] = 'book,cake';
571
+ // options['brand_id'] = '1007871,100535';
572
+ // options['shop_category_ids'] = 'book,cake';
571
573
 
572
574
  //删除空参数
573
575
  if(!baseIsEmpty(options)){
@@ -596,14 +598,12 @@
596
598
  }
597
599
 
598
600
  this.options = this.$xdUniHelper.cloneDeep(options);
599
-
600
601
  this.getSearchFilterList();
601
602
  this.getList();
602
603
  },
603
604
  onJfbReachBottom(options) {
604
605
  if(this.loading) return;
605
606
  if(this.hasNextPage){
606
- this.page_token = this.next_page_token;
607
607
  this.getList();
608
608
  }
609
609
  },
@@ -633,6 +633,11 @@
633
633
  position: relative;
634
634
  z-index: 103;
635
635
  height: 80rpx;
636
+ box-sizing: border-box;
637
+ &.isFixed {
638
+ position: fixed;
639
+ width: 100%;
640
+ }
636
641
 
637
642
  &_tabs {
638
643
  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">