|
@@ -13,6 +13,7 @@ import { useRouter } from 'vue-router'
|
|
import ColResult from '@/components/col-result'
|
|
import ColResult from '@/components/col-result'
|
|
import { moneyFormat } from '@/helpers/utils'
|
|
import { moneyFormat } from '@/helpers/utils'
|
|
import { orderStatus } from '@/views/order-detail/orderStatus'
|
|
import { orderStatus } from '@/views/order-detail/orderStatus'
|
|
|
|
+import { postMessage } from '@/helpers/native-message'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'train-tool',
|
|
name: 'train-tool',
|
|
@@ -176,37 +177,37 @@ export default defineComponent({
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
|
|
- const res = await request.post('/api-student/userOrder/getPendingOrder', {
|
|
|
|
- data: {
|
|
|
|
- goodType: 'TENANT_ALBUM',
|
|
|
|
- bizId: details.id
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // const res = await request.post('/api-student/userOrder/getPendingOrder', {
|
|
|
|
+ // data: {
|
|
|
|
+ // goodType: 'TENANT_ALBUM',
|
|
|
|
+ // bizId: details.id
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
|
|
- const result = res.data
|
|
|
|
- if (result) {
|
|
|
|
- state.popupStatus = false
|
|
|
|
- Dialog.confirm({
|
|
|
|
- title: '提示',
|
|
|
|
- message: '您有一个未支付的订单,是否继续支付?',
|
|
|
|
- confirmButtonColor: '#269a93',
|
|
|
|
- cancelButtonText: '取消订单',
|
|
|
|
- confirmButtonText: '继续支付'
|
|
|
|
- })
|
|
|
|
- .then(async () => {
|
|
|
|
- orderStatus.orderObject.orderNo = result.orderNo
|
|
|
|
- orderStatus.orderObject.actualPrice = result.actualPrice
|
|
|
|
- orderStatus.orderObject.discountPrice = result.discountPrice
|
|
|
|
- routerTo()
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- Dialog.close()
|
|
|
|
- // 只用取消订单,不用做其它处理
|
|
|
|
- cancelPayment(result.orderNo)
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- routerTo()
|
|
|
|
- }
|
|
|
|
|
|
+ // const result = res.data
|
|
|
|
+ // if (result) {
|
|
|
|
+ // state.popupStatus = false
|
|
|
|
+ // Dialog.confirm({
|
|
|
|
+ // title: '提示',
|
|
|
|
+ // message: '您有一个未支付的订单,是否继续支付?',
|
|
|
|
+ // confirmButtonColor: '#269a93',
|
|
|
|
+ // cancelButtonText: '取消订单',
|
|
|
|
+ // confirmButtonText: '继续支付'
|
|
|
|
+ // })
|
|
|
|
+ // .then(async () => {
|
|
|
|
+ // orderStatus.orderObject.orderNo = result.orderNo
|
|
|
|
+ // orderStatus.orderObject.actualPrice = result.actualPrice
|
|
|
|
+ // orderStatus.orderObject.discountPrice = result.discountPrice
|
|
|
|
+ // routerTo()
|
|
|
|
+ // })
|
|
|
|
+ // .catch(() => {
|
|
|
|
+ // Dialog.close()
|
|
|
|
+ // // 只用取消订单,不用做其它处理
|
|
|
|
+ // cancelPayment(result.orderNo)
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ routerTo()
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
const routerTo = () => {
|
|
const routerTo = () => {
|
|
const album = state.details
|
|
const album = state.details
|