|
@@ -1,5 +1,5 @@
|
|
|
import ColProtocol from '@/components/col-protocol'
|
|
|
-import { Button, Dialog, Icon, Popup, Sticky, Toast } from 'vant'
|
|
|
+import { Button, Dialog, Popup, Toast } from 'vant'
|
|
|
import ColPopup from '@/components/col-popup'
|
|
|
import { defineComponent } from 'vue'
|
|
|
import { postMessage } from '@/helpers/native-message'
|
|
@@ -14,7 +14,7 @@ import qs from 'query-string'
|
|
|
// status: 'success | fail'
|
|
|
// }})
|
|
|
|
|
|
-import iconTips from '@common/images/icon_tips.png'
|
|
|
+// import iconTips from '@common/images/icon_tips.png'
|
|
|
import Payment from './payment'
|
|
|
import UrlPayment from '../adapay/payment'
|
|
|
import ColHeader from '@/components/col-header'
|
|
@@ -31,7 +31,7 @@ import OrderLive from './order-live'
|
|
|
import OrderPractice from './order-practice'
|
|
|
import OrderVip from './order-vip'
|
|
|
import OrderMusic from './order-music'
|
|
|
-import { browser, moneyFormat } from '@/helpers/utils'
|
|
|
+import { moneyFormat } from '@/helpers/utils'
|
|
|
import OrderPinao from './order-pinao'
|
|
|
import { getMusicDetail } from '@/student/trade/tradeOrder'
|
|
|
import OrderActive from './order-active'
|
|
@@ -119,7 +119,18 @@ export default defineComponent({
|
|
|
//
|
|
|
}
|
|
|
}
|
|
|
- await this.getOrderPayType()
|
|
|
+ // 判断是否已经有支付方式了
|
|
|
+ const paymentConfig = orderStatus.orderObject.paymentConfig || {}
|
|
|
+ if (
|
|
|
+ paymentConfig.paymentVendor &&
|
|
|
+ paymentConfig.paymentVersion &&
|
|
|
+ orderStatus.orderObject.orderNo
|
|
|
+ ) {
|
|
|
+ this.paymentVersion = orderStatus.orderObject.paymentVendor || 'V1'
|
|
|
+ this.paymentVendor = orderStatus.orderObject.paymentVersion
|
|
|
+ } else {
|
|
|
+ await this.getOrderPayType()
|
|
|
+ }
|
|
|
this.orderAmount = orderStatus.orderObject.actualPrice || 0
|
|
|
this.orderPrice = orderStatus.orderObject.actualPrice || 0
|
|
|
this.dataLoading = false
|
|
@@ -214,7 +225,6 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- console.log(orderStatus.orderObject, 'orderInfo')
|
|
|
// 判断是否有订单号
|
|
|
if (orderStatus.orderObject.orderNo) {
|
|
|
if (this.paymentVersion === 'V1') {
|