|
@@ -244,10 +244,14 @@
|
|
|
ref
|
|
|
} from "vue";
|
|
|
import {
|
|
|
+ orderAdd,
|
|
|
+ orderPayAli,
|
|
|
+ orderPayWx,
|
|
|
+ orderPayApple,
|
|
|
getOrderList,
|
|
|
orderInfo,
|
|
|
- orderAdd
|
|
|
- } from "@/api/order";
|
|
|
+ orderCheck
|
|
|
+ } from "@/api/order.js"
|
|
|
import {
|
|
|
onLoad
|
|
|
} from "@dcloudio/uni-app";
|
|
@@ -397,14 +401,14 @@
|
|
|
id: orderId.value
|
|
|
}).then(res3 => {
|
|
|
console.log('res3', res3);
|
|
|
- if (res3.code == 0) {
|
|
|
+ if (res3.code == 0&&res3.data.success) {
|
|
|
genggaiVip(res3.data)
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
orderCheck({
|
|
|
id: orderId.value
|
|
|
}).then(res4 => {
|
|
|
- if (res4.code == 0) {
|
|
|
+ if (res4.code == 0&&res4.data.success) {
|
|
|
genggaiVip(res4.data)
|
|
|
} else {
|
|
|
toast(
|
|
@@ -547,7 +551,7 @@
|
|
|
id: orderId.value
|
|
|
}).then(res3 => {
|
|
|
console.log('res3', res3);
|
|
|
- if (res3.code == 0) {
|
|
|
+ if (res3.code == 0&&res3.data.success) {
|
|
|
|
|
|
genggaiVip(res3.data)
|
|
|
} else {
|
|
@@ -555,7 +559,7 @@
|
|
|
orderCheck({
|
|
|
id: orderId.value
|
|
|
}).then(res4 => {
|
|
|
- if (res4.code == 0) {
|
|
|
+ if (res4.code == 0&&res4.data.success) {
|
|
|
genggaiVip(res4.data)
|
|
|
} else {
|
|
|
toast(
|
|
@@ -615,7 +619,7 @@
|
|
|
orderCheck({
|
|
|
id: orderId.value
|
|
|
}).then(res3 => {
|
|
|
- if (res3.code == 0) {
|
|
|
+ if (res3.code == 0&&res3.data.success) {
|
|
|
genggaiVip(res3.data)
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
@@ -623,7 +627,7 @@
|
|
|
id: orderId.value
|
|
|
}).then(res4 => {
|
|
|
if (res4.code ==
|
|
|
- 0) {
|
|
|
+ 0&&res4.data.success) {
|
|
|
genggaiVip(res4.data)
|
|
|
} else {
|
|
|
toast(
|