videoRightsOrderInfo.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <script setup lang="ts">
  2. import StatusDisplay from '../components/StatusDisplay.vue'
  3. import { StaticUrl } from '@/config'
  4. import router from '@/router'
  5. definePage({
  6. name: 'video-rights-order-info',
  7. islogin: true,
  8. style: {
  9. navigationBarTitleText: '订单确认',
  10. },
  11. })
  12. const orderNo = ref('')
  13. onLoad((options: any) => {
  14. orderNo.value = options.orderNo
  15. console.log(options, '页面数据')
  16. })
  17. onMounted(() => {
  18. getOrderDetail()
  19. })
  20. const videoRightOrderDetail = ref<Api.VirtualOrderDetailVo>()
  21. async function getOrderDetail() {
  22. const res = await Apis.videoRight.orderDetail({ data: { orderNumber: orderNo.value } })
  23. videoRightOrderDetail.value = res.data
  24. }
  25. </script>
  26. <template>
  27. <view class="video-rights-order-info-page">
  28. <view class="box-border px24rpx">
  29. <view class="h-22rpx" />
  30. <StatusDisplay
  31. v-if="videoRightOrderDetail?.rechargeStatus"
  32. :status="videoRightOrderDetail.rechargeStatus"
  33. :static-url="StaticUrl"
  34. />
  35. <view class="mt-20rpx rounded-16rpx bg-#FFF p-24rpx">
  36. <view class="flex items-center gap-20rpx">
  37. <view class="h-160rpx w-160rpx">
  38. <image class="h-160rpx w-160rpx" :src="`${StaticUrl}/list-page-img.png`" />
  39. </view>
  40. <view>
  41. <view class="text-32rpx font-bold">
  42. {{ videoRightOrderDetail?.productName }}
  43. </view>
  44. <view class="mt-20rpx text-22rpx">
  45. ×{{ videoRightOrderDetail?.quantity }}
  46. </view>
  47. </view>
  48. </view>
  49. <view class="mt-26rpx h-2rpx w-full bg-#F0F0F0" />
  50. <view class="mt-24rpx flex items-center justify-between text-28rpx">
  51. <view>商品总价</view>
  52. <view>¥{{ videoRightOrderDetail?.totalPrice }}</view>
  53. </view>
  54. <view class="mt-24rpx flex items-center justify-between text-28rpx">
  55. <view>已支付</view>
  56. <view class="text-#FF4A39">
  57. ¥{{ videoRightOrderDetail?.paidAmount }}
  58. </view>
  59. </view>
  60. <view class="mt-24rpx flex items-center justify-between text-28rpx">
  61. <view>积分抵扣</view>
  62. <view class="text-#FF4A39">
  63. -{{ videoRightOrderDetail?.offsetPoints }}
  64. </view>
  65. </view>
  66. <view class="mt-26rpx h-2rpx w-full bg-#F0F0F0" />
  67. <view class="mt-24rpx text-22rpx">
  68. 充值账号:{{ videoRightOrderDetail?.rechargeAccount }}
  69. </view>
  70. </view>
  71. <view class="mt-20rpx rounded-16rpx bg-#FFF p-24rpx">
  72. <view class="flex items-center justify-between">
  73. <view class="text-28rpx text-#AAA">
  74. 订单编号
  75. </view>
  76. <view class="text-28rpx font-bold">
  77. {{ videoRightOrderDetail?.orderNumber }}
  78. </view>
  79. </view>
  80. <view class="mt-28rpx flex items-center justify-between">
  81. <view class="text-28rpx text-#AAA">
  82. 订单时间
  83. </view>
  84. <view class="text-28rpx font-bold">
  85. {{ videoRightOrderDetail?.createTime }}
  86. </view>
  87. </view>
  88. <view class="mt-28rpx flex items-center justify-between">
  89. <view class="text-28rpx text-#AAA">
  90. 支付方式
  91. </view>
  92. <view class="text-28rpx font-bold">
  93. {{ videoRightOrderDetail?.payType }}
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="fixed bottom-0 h-174rpx w-full border-[1rpx_solid_#EEEEEE] bg-#FFF px-24rpx">
  99. <wd-button custom-class="w-702rpx mt-10rpx" block size="large" @click="router.back()">
  100. 返回
  101. </wd-button>
  102. </view>
  103. </view>
  104. </template>
  105. <style lang="scss" scoped></style>