orderBillDetail.vue 2.2 KB

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