orderBillDetail.vue 2.5 KB

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