jufubao-mall 2.0.24 → 2.0.26

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.24",
3
+ "version": "2.0.26",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -113,7 +113,7 @@
113
113
  <view
114
114
  v-if="showQueryModal"
115
115
  class="jfb-filter-mask"
116
- :style="[queryTopComp]"
116
+ :style="[queryMaskComp]"
117
117
  @click="closeQueryModal"
118
118
  @touchmove.stop.prevent="moveHandle"
119
119
  ></view>
@@ -259,6 +259,13 @@ export default {
259
259
  top: this.topHeight + this.layoutInfo.top + (height + paddingTb - 2) + 'rpx'
260
260
  }
261
261
  },
262
+ queryMaskComp(){
263
+ let {paddingTb} = this.cusMenuStyle;
264
+ let height = 48;//默认90高,填充0
265
+ return {
266
+ top: this.topHeight + this.layoutInfo.top + (height + paddingTb) + 'rpx'
267
+ }
268
+ },
262
269
  menuTextColorComp(){
263
270
  return {
264
271
  color: this.cusMenuStyle.color || '#999'
@@ -592,7 +599,9 @@ export default {
592
599
  initFilterData(){
593
600
  if(this.remoteList.length === 0) this.filterTabsOrg = [];
594
601
  else {
595
- this.filterTabsOrg = this.$xdUniHelper.cloneDeep(this.remoteList).map(item=>{
602
+ this.filterTabsOrg = this.$xdUniHelper.cloneDeep(this.remoteList).filter(item=>{
603
+ return item.options && item.options.length > 0
604
+ }).map(item=>{
596
605
  let isOwnAttr = !(item.value.indexOf('attr') === 0);
597
606
  //当前菜单不在快捷方式里面时候进行数据初始化
598
607
  if(isOwnAttr) {
@@ -132,6 +132,7 @@
132
132
  :class="'cell_' + row_num"
133
133
  :style="[contProductStyles]"
134
134
  v-for="item in productList" :key="item"
135
+ @click="handleDetail(item)"
135
136
  >
136
137
  <view class="product_img" :style="[contProductImageStyle]">
137
138
  <image :src="item.thumb" mode="aspectFill"></image>
@@ -696,7 +697,7 @@
696
697
  },
697
698
  handleDetail(item){
698
699
  if (this.$configProject['isPreview'])return;
699
- toProductDetail(this, item, this.codePath, true);
700
+ toProductDetail(this, item, this.codePath, this.isAddCart==='Y');
700
701
  },
701
702
  toCallPhone(){
702
703
  uni.makePhoneCall({