xuxueyang
2024-08-28 a70759652a7167e83076dcf96af09471a0c1c83c
sub_pages/customer/shopping/confirm.vue
@@ -179,7 +179,7 @@
                        console.log('pay,', data)
                        // /api/pub/init/callback?orderId=
                        // if(env.pro)
                        if (data && (data['_testV2OrderId'] || data['_testOrderId']) &&
                        if (false && data && (data['_testV2OrderId'] || data['_testOrderId']) &&
                           environments.httpBaseUri.startsWith(
                              'http://47.99.58.211/flower')) {
                           //回调
@@ -204,13 +204,18 @@
                                 tmp.$message.showToast('支付成功')
                                 //返回上一页
                                 await tmp.$store.dispatch('sign_add', 'shopping')
                                 uni.navigateBack()
                                 // setTimeout(() => {
                                 // uni.navigateBack()
                                 // }, 500)
                                 await tmp.$message.showToast('支付成功')
                              },
                              async fail(err) {
                                 console.error('pay fail', err)
                                 tmp.$message.showToast('支付失败')
                                 await tmp.$store.dispatch('sign_add', 'shopping')
                                 uni.navigateBack()
                                 // await tmp.$store.dispatch('sign_add', 'shopping')
                                 // uni.navigateBack()
                              }
                           })