jufubao-base 1.0.61-beta1004 → 1.0.61-beta1005

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-base",
3
- "version": "1.0.61-beta1004",
3
+ "version": "1.0.61-beta1005",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -69,7 +69,7 @@ export default {
69
69
 
70
70
  },
71
71
 
72
- async handleCardComputed(){
72
+ async handleCardComputed(paddingBottom){
73
73
  this.$xdShowLoading({});
74
74
  if(this.contentStatus === false) await this.getBoxTop();
75
75
  this.$nextTick(()=>{
@@ -79,7 +79,7 @@ export default {
79
79
  let card = this.cardComputedList.filter(it=>{
80
80
  return item.dataset.card === it.card_number;
81
81
  })[0];
82
- card['height'] = item.height + 15;
82
+ card['height'] = item.height + (paddingBottom * this.$rpxNum);
83
83
  card['top'] = this.cardNextTop;
84
84
  this.cardNextTop = this.cardNextTop + card['height']
85
85
  return card
@@ -95,7 +95,7 @@ export default {
95
95
  })
96
96
  },
97
97
 
98
- handleCardInit(cardList,isChange = false){
98
+ handleCardInit(cardList,isChange = false, paddingBottom = 30){
99
99
  let newCardList = this.$xdUniHelper.cloneDeep(cardList);
100
100
  let validCardList = this.getCardGroupItem(newCardList.list.filter((item) => {
101
101
  if(isChange === true) return item["is_valid"] === "Y";
@@ -106,7 +106,7 @@ export default {
106
106
  });
107
107
  this.cardOrgList = this.$xdUniHelper.cloneDeep(validCardList);
108
108
  this.cardComputedList = this.cardOrgList.slice(this.cardPageNum,this.cardPageLen);
109
- this.handleCardComputed().then().catch();
109
+ this.handleCardComputed(paddingBottom).then().catch();
110
110
  },
111
111
 
112
112
  onJfbReachBottom(){