jufubao-base 1.0.162-beta11 → 1.0.162-beta13

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.162-beta11",
3
+ "version": "1.0.162-beta13",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -76,7 +76,8 @@ export default {
76
76
  isPreview: false,
77
77
  backgroundColor: "",
78
78
  other: false,
79
- show: false
79
+ show: false,
80
+ flag: true
80
81
  };
81
82
  },
82
83
  computed: {
@@ -192,12 +193,14 @@ export default {
192
193
  return;
193
194
  }
194
195
  }
196
+ console.log(55555);
195
197
  this.other = true;
196
198
  this.show = false;
199
+ this.flag = false;
197
200
  },
198
201
  // 扫描失败后的回调函数
199
202
  fail: (error) => {
200
- // console.log(44444);
203
+ console.log(44444,'fail');
201
204
  this.other = false;
202
205
  this.show = true;
203
206
  // 如果error是字符串类型,则将其转换为对象类型
@@ -209,7 +212,7 @@ export default {
209
212
  this.$xdLog.setARMSError(error);
210
213
  },
211
214
  cancel: ()=>{
212
- console.log(44444);
215
+ console.log(44444,'fail');
213
216
  this.other = false;
214
217
  this.show = true;
215
218
  }
@@ -271,6 +274,7 @@ export default {
271
274
  }
272
275
  this.other = true;
273
276
  this.show = false;
277
+ this.flag = false;
274
278
  },
275
279
  fail: (error) => {
276
280
  // 如果扫描失败,则调用$xdLog.setARMSError方法记录错误信息
@@ -307,6 +311,10 @@ export default {
307
311
  }).value;
308
312
  },
309
313
  onJfbShow(options) {
314
+ if(this.flag) {
315
+ this.other = false;
316
+ this.show = true;
317
+ }
310
318
  console.log("event.onJfbShow", options);
311
319
  },
312
320
  },
@@ -325,7 +333,6 @@ export default {
325
333
  padding-top: 300rpx;
326
334
  align-items: center;
327
335
  flex-direction: column;
328
- height: 100%;
329
336
  &-text {
330
337
  margin-top: 40rpx;
331
338
  color: #666;