jufubao-base 1.0.31 → 1.0.32-beta1
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
|
@@ -345,61 +345,60 @@ export default {
|
|
|
345
345
|
handleScan() {
|
|
346
346
|
console.log(getApp().globalData, "pageAtrr");
|
|
347
347
|
this.$xdShowLoading({});
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
.then((res) => {
|
|
354
|
-
this.$xdHideLoading();
|
|
355
|
-
if (this.jwxSDK !== null) {
|
|
356
|
-
setTimeout(() => {
|
|
357
|
-
// #ifdef H5
|
|
358
|
-
this.jwxSDK.scanQRCode({
|
|
359
|
-
needResult: 1,
|
|
360
|
-
scanType: ["qrCode"],
|
|
361
|
-
success: (res) => {
|
|
362
|
-
this.$xdUniHelper.navigateTo({
|
|
363
|
-
url: `${this.confirmUrl}?qrcode=${encodeURIComponent(
|
|
364
|
-
res.resultStr
|
|
365
|
-
)}`,
|
|
366
|
-
});
|
|
367
|
-
},
|
|
368
|
-
});
|
|
369
|
-
// #endif
|
|
370
|
-
// #ifdef MP
|
|
371
|
-
uni.scanCode({
|
|
372
|
-
success: (res) => {
|
|
373
|
-
console.log("scanCode", res);
|
|
374
|
-
this.$xdUniHelper.navigateTo({
|
|
375
|
-
url: `${this.confirmUrl}?qrcode=${encodeURIComponent(
|
|
376
|
-
res.resultStr
|
|
377
|
-
)}`,
|
|
378
|
-
});
|
|
379
|
-
},
|
|
380
|
-
});
|
|
381
|
-
// #endif
|
|
382
|
-
}, 100);
|
|
383
|
-
}
|
|
348
|
+
try {
|
|
349
|
+
//#ifdef H5
|
|
350
|
+
jfbRootExec("getH5WxAuthorize", {
|
|
351
|
+
vm: this,
|
|
352
|
+
data: {site_id: "wx_pub" },
|
|
384
353
|
})
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
354
|
+
.then((res) => {
|
|
355
|
+
this.$xdHideLoading();
|
|
356
|
+
if (this.jwxSDK !== null) {
|
|
357
|
+
setTimeout(() => {
|
|
358
|
+
this.jwxSDK.scanQRCode({
|
|
359
|
+
needResult: 1,
|
|
360
|
+
scanType: ["qrCode"],
|
|
361
|
+
success: (res) => {
|
|
362
|
+
this.$xdUniHelper.navigateTo({
|
|
363
|
+
url: `${this.confirmUrl}?qrcode=${encodeURIComponent(
|
|
364
|
+
res.resultStr
|
|
365
|
+
)}`,
|
|
366
|
+
});
|
|
367
|
+
},
|
|
368
|
+
fail:(error)=>{
|
|
369
|
+
this.setARMSError(error)
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
}, 100);
|
|
373
|
+
}
|
|
374
|
+
})
|
|
375
|
+
.catch((err) => {
|
|
376
|
+
this.$xdHideLoading();
|
|
377
|
+
this.$xdAlert({
|
|
378
|
+
content: err,
|
|
379
|
+
});
|
|
380
|
+
this.setARMSError(err)
|
|
389
381
|
});
|
|
382
|
+
//#endif
|
|
383
|
+
//#ifdef MP-WEIXIN
|
|
384
|
+
uni.scanCode({
|
|
385
|
+
scanType: ["qrCode"],
|
|
386
|
+
success: (res) => {
|
|
387
|
+
this.$xdHideLoading();
|
|
388
|
+
this.$xdUniHelper.navigateTo({
|
|
389
|
+
url: `${this.confirmUrl}?qrcode=${encodeURIComponent(res.result)}`,
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
fail: (error) => {
|
|
393
|
+
this.setARMSError(error)
|
|
394
|
+
this.$xdHideLoading();
|
|
395
|
+
},
|
|
390
396
|
});
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
this.$xdUniHelper.navigateTo({
|
|
397
|
-
url: `${this.confirmUrl}?qrcode=${encodeURIComponent(res.result)}`,
|
|
398
|
-
});
|
|
399
|
-
},
|
|
400
|
-
fail: () => {},
|
|
401
|
-
});
|
|
402
|
-
//#endif
|
|
397
|
+
//#endif
|
|
398
|
+
} catch (err) {
|
|
399
|
+
this.$xdHideLoading();
|
|
400
|
+
this.setARMSError(err)
|
|
401
|
+
}
|
|
403
402
|
},
|
|
404
403
|
|
|
405
404
|
handleToDisabled() {
|
|
@@ -526,10 +525,7 @@ export default {
|
|
|
526
525
|
return false;
|
|
527
526
|
});
|
|
528
527
|
this.changeList = this.cardList.filter((item) => {
|
|
529
|
-
|
|
530
|
-
return true;
|
|
531
|
-
}
|
|
532
|
-
return false;
|
|
528
|
+
return item["is_exchange"] === "Y";
|
|
533
529
|
});
|
|
534
530
|
this.showList = this.cardList;
|
|
535
531
|
this.$xdHideLoading();
|
|
@@ -349,20 +349,12 @@ export default {
|
|
|
349
349
|
},
|
|
350
350
|
})
|
|
351
351
|
.then((res) => {
|
|
352
|
-
if (this.type === "recharge") {
|
|
353
|
-
|
|
354
|
-
url:
|
|
355
|
-
this.rechargeSuccessPath +
|
|
356
|
-
`?order_id=${this.main_order_id}`,
|
|
357
|
-
});
|
|
358
|
-
} else {
|
|
359
|
-
this.$xdUniHelper.redirectTo({
|
|
360
|
-
url:
|
|
361
|
-
this.paySuccessPath + `?order_id=${this.main_order_id}`,
|
|
362
|
-
});
|
|
363
|
-
}
|
|
352
|
+
if (this.type === "recharge") this.$xdUniHelper.redirectTo({url: this.rechargeSuccessPath + `?order_id=${this.main_order_id}`,});
|
|
353
|
+
this.$xdUniHelper.redirectTo({url: this.paySuccessPath + `?order_id=${this.main_order_id}`});
|
|
364
354
|
})
|
|
365
|
-
.catch(
|
|
355
|
+
.catch(error=>{
|
|
356
|
+
this.$xdLog.setARMSCustomError('update_loading_fail', {options: this.options, error});
|
|
357
|
+
});
|
|
366
358
|
});
|
|
367
359
|
})
|
|
368
360
|
.catch((err) => this.$xdHideLoading());
|
|
@@ -169,9 +169,9 @@ export default {
|
|
|
169
169
|
* @description 监听事件变化
|
|
170
170
|
* @param container {object} 业务组件对象自己
|
|
171
171
|
*/
|
|
172
|
-
init(
|
|
173
|
-
//this.bgcolor = getContainerPropsValue(
|
|
174
|
-
//this.height = getContainerPropsValue(
|
|
172
|
+
init(container) {
|
|
173
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
174
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
175
175
|
},
|
|
176
176
|
reGetCode() {
|
|
177
177
|
if (this.time > 0) return;
|