jufubao-mall 2.0.32-beta2 → 2.0.32-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.32-beta2",
3
+ "version": "2.0.32-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -124,6 +124,13 @@
124
124
  <view v-if="item.product_id === productId"></view>
125
125
  </view>
126
126
  </view>
127
+ <view class="media-product-nodata" v-if="productList && productList.length === 0">
128
+ <xd-no-data
129
+ icon-type="product"
130
+ :scale-size="2"
131
+ height="100%"
132
+ >当前暂无商品</xd-no-data>
133
+ </view>
127
134
  <view class="media-detail" v-if="prodcutInfo">
128
135
  <view>商品详情</view>
129
136
  <view>
@@ -209,7 +216,8 @@
209
216
  if(this.cateTwoList.length > 0) other += 190 //二级分类高度
210
217
  other += 80 //底部缝隙高度
211
218
  other += 120 //底部高度
212
- other += 32
219
+ other += 32;
220
+ if(this.cateThreeList.length === 0) other -= 80
213
221
  return {
214
222
  height: `calc(${this.layoutInfo.bodyMinHeightPx}px - ${other* this.$rpxNum}px)`
215
223
  }
@@ -736,7 +744,7 @@
736
744
  page_token: this.page_token,
737
745
  page_size: this.page_size,
738
746
  custom_category_id: cate.category_id,
739
- //is_remove_same_prefix_name: 'Y'
747
+ is_remove_same_prefix_name: 'Y'
740
748
  }
741
749
 
742
750
  //设置是否展示划线价格
@@ -861,7 +869,7 @@
861
869
  display: flex;
862
870
  justify-content: flex-start;
863
871
  white-space: nowrap;
864
- padding: 16rpx 32rpx 30rpx;
872
+ padding: 16rpx 0 30rpx 32rpx;
865
873
  }
866
874
  &-item {
867
875
  margin-right: 16rpx;
@@ -943,7 +951,6 @@
943
951
  margin: 0 16rpx 16rpx;
944
952
  background-color: #fff;
945
953
  border-radius: 16rpx;
946
- min-height: var(--g-comp-min-height);
947
954
  }
948
955
 
949
956
  .media-input {
@@ -1022,7 +1029,14 @@
1022
1029
 
1023
1030
  }
1024
1031
  }
1025
-
1032
+ .media-product-nodata {
1033
+ padding: 24rpx;
1034
+ border-radius: var(--g-comp-radius);
1035
+ overflow: hidden;
1036
+ background: rgba(255, 255, 255, 1);
1037
+ margin-bottom: 24rpx;
1038
+ height: 700rpx;
1039
+ }
1026
1040
  .media-product {
1027
1041
  padding: 24rpx;
1028
1042
  border-radius: var(--g-comp-radius);
@@ -1035,6 +1049,8 @@
1035
1049
  align-items: center;
1036
1050
  flex-flow: wrap;
1037
1051
 
1052
+
1053
+
1038
1054
  &-item {
1039
1055
  width: calc((100% - 48rpx)/3);
1040
1056
  flex-shrink: 0;