jufubao-mall 2.0.16-beta55 → 2.0.16-beta56

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-beta55",
3
+ "version": "2.0.16-beta56",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -784,10 +784,10 @@
784
784
  }
785
785
 
786
786
  if(this.dimension==='business'){
787
- data.namespace = this.namespace
787
+ data.namespaces = this.namespace
788
788
  } else {
789
789
  //当导航维度是按门店分类时,用category_id承载namespace
790
- data.category_id = this.namespace
790
+ data.category_ids = this.namespace
791
791
  }
792
792
  if(this.area_code) data.area_code = this.area_code;
793
793
  this.$xdShowLoading({});
@@ -881,10 +881,10 @@
881
881
  }
882
882
  // debugger
883
883
  if(this.dimension==='business'){
884
- data.namespace = this.namespace
884
+ data.namespaces = this.namespace
885
885
  } else {
886
886
  //当导航维度是按门店分类时,用category_id承载namespace
887
- data.category_id = this.namespace
887
+ data.category_ids = this.namespace
888
888
  }
889
889
  jfbRootExec("resourceGetSearchFilters", {
890
890
  vm: this,
@@ -914,6 +914,7 @@
914
914
  this.namespaceList = [{label: "全部", value: "all"}].concat(this.namespaceList);
915
915
  }
916
916
  this.namespace = this.namespaceList[0].value;
917
+ console.log(this.namespace,'nnnnn')
917
918
  }
918
919
  if(this.showAllBusinessLine == 'Y'){
919
920
  let hasAll = this.namespaceList.some(item=>item.value==='all');
@@ -921,7 +922,9 @@
921
922
  this.namespaceList = [{label: "全部", value: "all"}].concat(this.namespaceList);
922
923
  }
923
924
  }else{
924
- this.namespaceList = this.namespaceList.filter(item => item.value!=='all');
925
+ if(this.namespaceList.length){
926
+ this.namespaceList = this.namespaceList.filter(item => item.value!=='all');
927
+ }
925
928
  }
926
929
  }
927
930
  // setTimeout(()=>{
@@ -996,6 +999,13 @@
996
999
  this.getList();
997
1000
  },
998
1001
  handleSelectNamespace(val){
1002
+ if(this.dimension==='business'){
1003
+ this.category_ids = '';
1004
+ }else if(this.dimension==='store'){
1005
+ this.namespaces = '';
1006
+ }
1007
+ this.searchFilterParams = {};
1008
+ this.searchFilterLabels = {};
999
1009
  this.page_token = 1;
1000
1010
  if(this.namespace !== val){
1001
1011
  this.namespace = val;
@@ -10,6 +10,11 @@ module.exports = {
10
10
  { label: "电影", value: "movie" },
11
11
  { label: "商城百货1", value: "market" }
12
12
  ],
13
+ categories:[
14
+ {label: "商超", value: 100518},
15
+ {label: "蛋糕店", value: 100519},
16
+ {label: "电影", value: 200000},
17
+ ],
13
18
  brands: [
14
19
  {
15
20
  label: "味多美",