|
@@ -22,7 +22,7 @@ Component(
|
|
|
canPay: false,
|
|
|
prescriptionList: [],
|
|
|
actionsheetVisible: false,
|
|
|
- isUserPersonalAccount: true, // 默认使用个账
|
|
|
+ isUserPersonalAccount: false, // 默认使用个账
|
|
|
isCulculate: false,
|
|
|
preConfirmInfo: {},
|
|
|
},
|
|
@@ -164,13 +164,17 @@ Component(
|
|
|
});
|
|
|
if (!err) {
|
|
|
// 预结算成功
|
|
|
- my.hideLoading();
|
|
|
const ybData = await getYbParams(result);
|
|
|
- this.setData({
|
|
|
- preConfirmInfo: Object.assign(result, ybData),
|
|
|
- isCulculate: false,
|
|
|
- canPay: true,
|
|
|
- });
|
|
|
+ this.setData(
|
|
|
+ {
|
|
|
+ preConfirmInfo: Object.assign(result, ybData),
|
|
|
+ isCulculate: false,
|
|
|
+ canPay: true,
|
|
|
+ },
|
|
|
+ () => {
|
|
|
+ my.hideLoading();
|
|
|
+ }
|
|
|
+ );
|
|
|
} else {
|
|
|
my.hideLoading();
|
|
|
my.showToast({
|