jufubao-base 1.0.162-beta12 → 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
|
@@ -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
|
-
|
|
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,8 +311,10 @@ export default {
|
|
|
307
311
|
}).value;
|
|
308
312
|
},
|
|
309
313
|
onJfbShow(options) {
|
|
310
|
-
this.
|
|
311
|
-
|
|
314
|
+
if(this.flag) {
|
|
315
|
+
this.other = false;
|
|
316
|
+
this.show = true;
|
|
317
|
+
}
|
|
312
318
|
console.log("event.onJfbShow", options);
|
|
313
319
|
},
|
|
314
320
|
},
|