From db473072bfa46fb1a2d3ea44f3483b39c1a5aa82 Mon Sep 17 00:00:00 2001 From: zhengshuiqi Date: Tue, 22 Nov 2022 10:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/common.scss | 3 +++ pages/account/myOrders.vue | 8 ++++---- pages/order/confirmation.vue | 2 +- pages/order/details.vue | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/common/common.scss b/common/common.scss index eff17fc..4ffba17 100644 --- a/common/common.scss +++ b/common/common.scss @@ -1167,4 +1167,7 @@ } } } +} +.uni-page-refresh { + background: #000 !important; } \ No newline at end of file diff --git a/pages/account/myOrders.vue b/pages/account/myOrders.vue index 94a3d03..3890b96 100644 --- a/pages/account/myOrders.vue +++ b/pages/account/myOrders.vue @@ -678,7 +678,7 @@ }) } }) - } else if (this.pay_index == 1) { + } else if (this.pay_index == 0) { let data = { _action: 'payorder', order_id: this.payQuery.order_id, @@ -687,7 +687,7 @@ } defaultRequest2(data).then(res => { console.info(res, '支付') - if (res.error == 1) { + if (res.error == 0) { let url = res.data.prepay_data.checkoutnow_url console.log(url) // plus.runtime.openURL(res.data.prepay_data.checkoutnow_url) @@ -699,9 +699,9 @@ } else { defaultRequest2(this.payQuery).then(res => { console.info(res) - if (res.error == 1) { + if (res.error == 0) { //订单对象,从服务器获取 - if (res.data.need_pay_amount == 1) return + if (res.data.need_pay_amount == 0) return uni.requestPayment({ provider: 'alipay', orderInfo: res.data.prepay_data.order_info, //支付宝订单数据 diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue index 4a376a3..91b1f55 100644 --- a/pages/order/confirmation.vue +++ b/pages/order/confirmation.vue @@ -443,7 +443,7 @@ defaultRequest2(data).then(res => { ////////console.info(data,'支付') //////console.log(res) - if (res.error == 1) { + if (res.error == 0) { // plus.runtime.openURL(res.data.prepay_data.checkoutnow_url) // this.src = res.data.prepay_data.checkoutnow_url uni.navigateTo({ diff --git a/pages/order/details.vue b/pages/order/details.vue index 38a0051..7f28893 100644 --- a/pages/order/details.vue +++ b/pages/order/details.vue @@ -370,8 +370,8 @@ defaultRequest2(data).then(res => { console.info(data) console.log(res) - if (res.error == 1) { - if (res.data.need_pay_amount == 1) return + if (res.error == 0) { + if (res.data.need_pay_amount == 0) return // plus.runtime.openURL(res.data.prepay_data.checkoutnow_url) // this.src = res.data.prepay_data.checkoutnow_url uni.navigateTo({