jufubao-mall 2.0.78-beta4 → 2.0.78-beta5

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.78-beta4",
3
+ "version": "2.0.78-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -47,7 +47,7 @@
47
47
  <view
48
48
  class="special_nav"
49
49
  v-if="categories.length > 1"
50
- :style="[navFixed ? {position: 'fixed', top: '86rpx', zIndex: 9999} : {position: 'relative', zIndex: 9999}]"
50
+ :style="[navFixed ? {position: 'fixed', top: this.layoutInfo['top'] + 'rpx', zIndex: 9999} : {position: 'relative', zIndex: 9999}]"
51
51
  >
52
52
  <xd-tab
53
53
  class="tab"
@@ -73,13 +73,13 @@
73
73
  @scrolltolower="handleProdScroll"
74
74
  > -->
75
75
  <view class="product_section" :style="[productListPaddingTop]">
76
- <view
76
+ <!-- <view
77
77
  v-if="curCate.category_img && curCate['imgStatus'] === 'ok'"
78
78
  class="product_category"
79
79
  :style="{height: curCate.imgHeight + 'px'}"
80
80
  >
81
81
  <image :src="curCate.category_img" mode="widthFix"></image>
82
- </view>
82
+ </view> -->
83
83
  <view class="product_list" :style="[contWrapStyle]">
84
84
  <!--骨架-->
85
85
  <view
@@ -440,7 +440,7 @@
440
440
  watchScroll(scrollTop) {
441
441
  this.scrollTop = scrollTop;
442
442
  var scrollTopRpx = scrollTop / this.$rpxNum;
443
- this.navFixed = scrollTopRpx >= this.specialNavTop - 88;
443
+ this.navFixed = scrollTopRpx >= this.specialNavTop - this.layoutInfo['top'];
444
444
  },
445
445
  onJfbScroll(options) {
446
446
  this.watchScroll(options.e.scrollTop);
@@ -450,6 +450,7 @@
450
450
  * @param container {object} 业务组件对象自己
451
451
  */
452
452
  init(container) {
453
+ console.log(this.layoutInfo,'layoutInfo')
453
454
  this.xnamespace = gCPVal(container, 'xnamespace', this.projectAttr.business_code, {});
454
455
  let compConfig = getContainerPropsValue(container, "content.compConfig", null);
455
456
  let tagsKeys= this.getProductTagsKeys(compConfig,container)
@@ -558,8 +559,8 @@
558
559
  this.hasNextPage = res.next_page_token !== '';
559
560
  this.next_page_token = res.next_page_token;
560
561
  this.$nextTick(()=>{
561
- if(isTabLoading && this.scrollTop >= (this.specialNavTop + 88) * this.$rpxNum) {
562
- var targetScrollTop = (this.specialNavTop - 88) * this.$rpxNum;
562
+ if(isTabLoading && this.scrollTop >= (this.specialNavTop + this.layoutInfo['top']) * this.$rpxNum) {
563
+ var targetScrollTop = (this.specialNavTop - this.layoutInfo['top']) * this.$rpxNum;
563
564
  if(!this.navFixed) {
564
565
  targetScrollTop += 106 * this.$rpxNum;
565
566
  }