orderBillDetail.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="账单详情"></c-nav-bar>
  4. <view class="box">
  5. <image src="https://i.ringzle.com/file/20240224/d2b9acd9522747ac89239dcde0894c93.png"></image>
  6. <text class="tit" v-if="merchantType==10">{{infoMation.playDate}}
  7. {{infoMation.playTime}}出发/{{infoMation.orderType==2?'包船':'拼船'}}/{{infoMation.boatNo}}</text>
  8. <text class="tit" v-else>{{infoMation.productName}}</text>
  9. <text class="money"><text>{{merchantType==10?infoMation.realPrice:infoMation.realityPay}}</text></text>
  10. </view>
  11. <view class="info">
  12. <view class="li">
  13. <text>当前状态</text>
  14. <text>交易成功</text>
  15. <!-- <text>{{infoMation.state==''?'':status[infoMation.state]}}</text> -->
  16. </view>
  17. <view class="li">
  18. <text>创建时间</text>
  19. <text>{{infoMation.orderTime}}</text>
  20. </view>
  21. <view class="li">
  22. <text>订单号</text>
  23. <text>{{infoMation.orderCode}}</text>
  24. </view>
  25. <!-- <view class="li">
  26. <text>交易类型</text>
  27. <text>结算提现</text>
  28. </view> -->
  29. <view class="li">
  30. <text>商品名称</text>
  31. <text>{{merchantType==10?infoMation.goodsName:(infoMation.thingName||infoMation.productName)}}</text>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. infoMation: {
  41. thingName: '',
  42. price: 0,
  43. orderCode: '',
  44. orderTime: '',
  45. state: ''
  46. },
  47. status: {
  48. '0': '待支付',
  49. '1': '已支付',
  50. '-1': '已取消',
  51. '-2': '退款中',
  52. '-3': '已退款',
  53. '3': '已完成',
  54. '4': '待使用',
  55. '5': '已预约'
  56. },
  57. merchantType: uni.getStorageSync('merchantType'),
  58. }
  59. },
  60. onLoad(option) {
  61. const info = JSON.parse(decodeURIComponent(option.info ? option
  62. .info : infoMation));
  63. if (this.merchantType == 4) {
  64. info.realityPay = info.realityPay < 0 ? info.realityPay : '+' + info.realityPay;
  65. } else {
  66. info.realPrice = info.realPrice < 0 ? info.realPrice : '+' + info.realPrice;
  67. }
  68. this.infoMation = info;
  69. },
  70. methods: {
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .box {
  76. width: calc(100% - 80rpx);
  77. padding: 30rpx 0 60rpx;
  78. color: #333;
  79. border-bottom: 1rpx solid #EFEFEF;
  80. text-align: center;
  81. image {
  82. width: 80rpx;
  83. height: 80rpx;
  84. }
  85. text {
  86. display: block;
  87. }
  88. .tit {
  89. margin: 26rpx 0 14rpx;
  90. font-size: 26rpx;
  91. }
  92. .money {
  93. font-size: 28rpx;
  94. text {
  95. display: inline-block;
  96. font-weight: bold;
  97. font-size: 32rpx;
  98. }
  99. }
  100. }
  101. .info {
  102. padding: 60rpx 40rpx 0;
  103. .li {
  104. margin-bottom: 32rpx;
  105. text {
  106. &:first-child {
  107. display: inline-block;
  108. width: 104rpx;
  109. color: #999;
  110. }
  111. margin-right: 40rpx;
  112. color: #111;
  113. }
  114. }
  115. }
  116. </style>