jufubao-mall 2.0.16-beta58 → 2.0.16-beta59

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-beta58",
3
+ "version": "2.0.16-beta59",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -596,6 +596,9 @@
596
596
  }
597
597
  // 折扣/价格
598
598
  this.showStorePrice = gCPVal(container,'showStorePrice', 'Y');
599
+ if(this.showStorePrice==='Y'){
600
+ cusContent.push('price')
601
+ }
599
602
  //折扣/价格选项
600
603
  // this.showPriceType = gCPVal(container,'showPriceType', 'discount');
601
604
  // if(this.showStorePrice==='Y'){
@@ -606,6 +609,7 @@
606
609
  // }
607
610
  // }
608
611
  this.cusContent = cusContent;
612
+ console.log(this.cusContent,'cusContent')
609
613
  //筛选条件状态
610
614
  let showQuery = gCPVal(container,'showQuery', 'Y');
611
615
  if(showQuery === 'Y') this.filterMode = gCPVal(container, 'filterMode', ['filter'])
@@ -781,12 +785,13 @@
781
785
  consume_mode: this.consume_mode,
782
786
  keyword: this.keyword
783
787
  }
784
-
785
- if(this.dimension==='business'){
786
- data.namespaces = this.namespace
787
- } else {
788
- //当导航维度是按门店分类时,用category_id承载namespace
789
- data.category_ids = this.namespace
788
+ if(this.showBusinessLine==='Y'){
789
+ if(this.dimension==='business'){
790
+ data.namespaces = this.namespace
791
+ } else {
792
+ //当导航维度是按门店分类时,用category_id承载namespace
793
+ data.category_ids = this.namespace
794
+ }
790
795
  }
791
796
  if(this.area_code) data.area_code = this.area_code;
792
797
  this.$xdShowLoading({});
@@ -852,6 +857,7 @@
852
857
  params['longitude'] = this.stateLocation.longitude;
853
858
  params['latitude'] = this.stateLocation.latitude;
854
859
  }
860
+ console.log(params,'params' )
855
861
  return params
856
862
  },
857
863
  getFilter(cb, options){
@@ -931,7 +937,7 @@
931
937
  }
932
938
  // setTimeout(()=>{
933
939
  this.$nextTick(()=>{
934
- this.$xdUniHelper.getWindowHeight(['.menu_wrap','.business_wrap','addr_wrap','.brand_wrap','.query_filter'], this)
940
+ this.$xdUniHelper.getWindowHeight(['.menu_wrap','.business_wrap','.addr_wrap','.brand_wrap','.query_filter'], this)
935
941
  .then(res => {
936
942
  console.log(res,'res')
937
943
  let num = 0;let menuWrapNum;let modelTop=0;
@@ -13,19 +13,19 @@ import {
13
13
  export default (data, gValue, gColor, oldData) => {
14
14
  console.log(data,'dddddsss')
15
15
  let showStoreImg = 'Y'
16
- let showStoreAddress = 'Y'
16
+ // let showStoreAddress = 'Y'
17
17
  //变化的时候
18
18
  if(oldData.layout!==data.layout){
19
19
  if(data.layout==='v3'){
20
20
  showStoreImg = 'N';
21
21
  }
22
- if(data.layout==='v2'){
23
- showStoreAddress = 'N';
24
- }
22
+ // if(data.layout==='v2'){
23
+ // showStoreAddress = 'N';
24
+ // }
25
25
  }
26
26
  else{
27
27
  if(data['showStoreImg']) showStoreImg = data['showStoreImg']
28
- if(data['showStoreAddress']) showStoreAddress = data['showStoreAddress']
28
+ // if(data['showStoreAddress']) showStoreAddress = data['showStoreAddress']
29
29
  }
30
30
  console.log(data.layout,data.showStoreImg,data.layout==='v3',oldData,'asdasda')
31
31
  let defQuickEntry = [
@@ -263,7 +263,7 @@ export default (data, gValue, gColor, oldData) => {
263
263
  label: '门店地址',
264
264
  ele: 'xd-cus-switch',
265
265
  valueKey: 'showStoreAddress',
266
- value: showStoreAddress,
266
+ value: dataVal({data, key:'showStoreAddress', dValue:"Y", gValue}),
267
267
  isRefresh: true,
268
268
  className: 'input100',
269
269
  groupKey:'content',
@@ -291,7 +291,7 @@ export default (data, gValue, gColor, oldData) => {
291
291
  label: '折扣/价格',
292
292
  ele: 'xd-cus-switch',
293
293
  valueKey: 'showStorePrice',
294
- value: dataVal({data, key:'showStorePrice', dValue:"Y", gValue}),
294
+ value: dataVal({data, key:'showStorePrice', dValue:"N", gValue}),
295
295
  className: 'input100',
296
296
  groupKey:'content',
297
297
  labelInline:true,