jufubao-base 1.0.63-beta4 → 1.0.63-beta6

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.63-beta4",
3
+ "version": "1.0.63-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -262,6 +262,8 @@ export default {
262
262
  },
263
263
  data() {
264
264
  return {
265
+ options: {},
266
+
265
267
  //提示文案
266
268
  noticeBackgroundColor: "",
267
269
  notice: "",
@@ -473,14 +475,15 @@ export default {
473
475
  },
474
476
 
475
477
  onJfbLoad(options) {
478
+ this.options = options;
476
479
  let { inCallback } = options;
477
- if (inCallback) {
478
- this.$storage.set("inCallback", inCallback, 0.05);
479
- inCallback = Base64.decode(inCallback);
480
- } else {
481
- inCallback = this.$storage.get("inCallback");
482
- if (inCallback) {
480
+ if(!inCallback) this.$storage.remove("inCallback"); //作为入口
481
+ else {
482
+ this.$storage.set("inCallback", inCallback);
483
+ try{
483
484
  inCallback = Base64.decode(inCallback);
485
+ }catch (e){
486
+ inCallback = null;
484
487
  }
485
488
  }
486
489
 
@@ -102,6 +102,9 @@ export default {
102
102
  this.cardPageNum*this.cardPageLen,
103
103
  this.cardPageNum*this.cardPageLen + this.cardPageLen
104
104
  );
105
+ if(this.cardComputedList.length < this.cardPageLen) {
106
+ this.hasContent = false;
107
+ }
105
108
  this.handleCardComputed(paddingBottom).then().catch();
106
109
  },
107
110
 
@@ -392,7 +392,7 @@ export default {
392
392
  data() {
393
393
  return {
394
394
  options:{},
395
-
395
+
396
396
  //提示文案
397
397
  noticeBackgroundColor: "",
398
398
  notice: "",
@@ -628,13 +628,13 @@ export default {
628
628
  onJfbLoad(options) {
629
629
  this.options = options;
630
630
  let { inCallback } = options;
631
- if (inCallback) {
632
- this.$storage.set("inCallback", inCallback, 0.05);
633
- inCallback = Base64.decode(inCallback);
634
- } else {
635
- inCallback = this.$storage.get("inCallback");
636
- if (inCallback) {
631
+ if(!inCallback) this.$storage.remove("inCallback"); //作为入口
632
+ else {
633
+ this.$storage.set("inCallback", inCallback);
634
+ try{
637
635
  inCallback = Base64.decode(inCallback);
636
+ }catch (e){
637
+ inCallback = null;
638
638
  }
639
639
  }
640
640
 
@@ -674,8 +674,8 @@ export default {
674
674
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
675
675
  return item["is_exchange"] === "Y";
676
676
  }), res['site_entry_settings']).length > 0;
677
-
678
-
677
+
678
+
679
679
  this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
680
680
  this.$xdHideLoading();
681
681
  })
@@ -91,7 +91,7 @@
91
91
  import componentsMixins from "@/mixins/componentsMixins";
92
92
  import extsMixins from "@/mixins/extsMixins";
93
93
  import {Base64} from "js-base64";
94
-
94
+
95
95
  export default {
96
96
  name: "JfbBaseCardV2",
97
97
  components: {
@@ -137,14 +137,23 @@
137
137
  methods: {
138
138
  onJfbLoad(options) {
139
139
  let { inCallback } = options;
140
- if (inCallback) inCallback = Base64.decode(inCallback);
140
+ if(!inCallback) this.$storage.remove("inCallback"); //作为入口
141
+ else {
142
+ this.$storage.set("inCallback", inCallback);
143
+ try{
144
+ inCallback = Base64.decode(inCallback);
145
+ }catch (e){
146
+ inCallback = null;
147
+ }
148
+ }
141
149
  this.inCallback = inCallback || this.settings.index;
142
-
150
+
151
+
143
152
  let params = {is_all: 'Y'};
144
153
  if (options['jfb_business_code']) {
145
154
  params['card_business_code'] = options['jfb_business_code'];
146
155
  }
147
-
156
+
148
157
  jfbRootExec("getListCardBind", {
149
158
  vm: this,
150
159
  data: params,
@@ -211,11 +220,11 @@
211
220
  url: `${this.cardInfoPath}?card_number=${item["card_number"]}`,
212
221
  });
213
222
  },
214
-
223
+
215
224
  onJfbBack(options) {
216
225
  this.$xdUniHelper.navigateBack()
217
226
  },
218
-
227
+
219
228
  }
220
229
  }
221
230
 
@@ -231,13 +240,13 @@
231
240
  right: 0;
232
241
  left: 0;
233
242
  background: #FFFFFF;
234
-
235
-
243
+
244
+
236
245
  padding: 0 unit(24, rpx);
237
246
  box-sizing: border-box;
238
247
  box-shadow: 0px 0px 8rpx 0px rgba(179, 193, 196, 0.5);
239
248
  z-index: 111;
240
-
249
+
241
250
  &>view {
242
251
  width: 100%;
243
252
  display: flex;
@@ -44,6 +44,7 @@
44
44
  import { getContainerPropsValue } from "@/utils/xd.base";
45
45
  import componentsMixins from "@/mixins/componentsMixins";
46
46
  import extsMixins from "@/mixins/extsMixins";
47
+ import {Base64} from "js-base64";
47
48
  export default {
48
49
  name: "JfbBaseCardV3",
49
50
  components: {
@@ -83,7 +84,15 @@
83
84
  methods: {
84
85
  onJfbLoad(options) {
85
86
  let { inCallback } = options;
86
- if (inCallback) inCallback = Base64.decode(inCallback);
87
+ if(!inCallback) this.$storage.remove("inCallback"); //作为入口
88
+ else {
89
+ this.$storage.set("inCallback", inCallback);
90
+ try{
91
+ inCallback = Base64.decode(inCallback);
92
+ }catch (e){
93
+ inCallback = null;
94
+ }
95
+ }
87
96
  this.inCallback = inCallback || this.settings.index;
88
97
 
89
98
  let params = {is_all: 'Y'};