VrRefundView.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template><page-meta :root-font-size="fontSize+'px'"></page-meta>
  2. <member-base :show="false"><view class="div member-information">
  3. <view class="div common-header-wrap">
  4. <view :style="'height:'+navHeight+'px'"></view>
  5. <view class="common-header-holder"></view>
  6. <view class="common-header-fixed">
  7. <title-header />
  8. <uni-nav-bar title="退款详情" class="common-header" left-icon="back" @clickLeft="goBack()">
  9. </uni-nav-bar>
  10. </view>
  11. </view>
  12. <view class="div main-content">
  13. <flex-line :show-border="true"><text class="span line-name">退款编号</text><text class="span" slot="right">{{refund.refund_sn}}</text></flex-line>
  14. <flex-line :show-border="true"><text class="span line-name">退款兑换码</text><text class="span" slot="right">{{code_array.join(',')}}</text></flex-line>
  15. <flex-line :show-border="true"><text class="span line-name">退款金额</text><text class="span" slot="right">{{refund.refund_amount}}</text></flex-line>
  16. <flex-line :show-border="true"><text class="span line-name">退款说明</text><text class="span" slot="right">{{refund.buyer_message}}</text></flex-line>
  17. <flex-line v-if="refund.admin_message" :show-border="true"><text class="span line-name">平台备注</text><text class="span" slot="right">{{refund.admin_message}}</text></flex-line>
  18. </view>
  19. </view></member-base>
  20. </template>
  21. <script>
  22. import {getFontSize} from '@/util/common'
  23. import TitleHeader from '../../TitleHeader'
  24. import MemberBase from '../MemberBase'
  25. import { getVrRefundInfo } from '../../../api/memberVrRefund'
  26. import flexLine from '../../flexLine'
  27. export default {
  28. components:{
  29. TitleHeader,
  30. MemberBase,
  31. flexLine,
  32. },
  33. name:'MemberVrRefundView',
  34. data(){
  35. return {
  36. navHeight: 0,
  37. refund_id: 0,
  38. refund: {},
  39. code_array:[],
  40. }
  41. },
  42. mounted(){
  43. // #ifdef MP-WEIXIN
  44. this.navHeight = uni.getMenuButtonBoundingClientRect().top
  45. // #endif
  46. },
  47. computed:{
  48. fontSize(){
  49. return getFontSize()
  50. },
  51. },
  52. onLoad: function (option) {
  53. this.refund_id=option.refund_id
  54. getVrRefundInfo(this.refund_id).then(res => {
  55. this.refund = res.result.refund
  56. this.code_array = res.result.code_array
  57. }).catch(function (error) {
  58. uni.showToast({icon:'none',title: error.message})
  59. })
  60. },
  61. methods:{
  62. goBack(){uni.navigateBack({delta:1})},
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .main-content{background: #fff;padding:0 $pageSpace}
  68. .swipe-wrapper {
  69. width: 100%;
  70. }
  71. .mint-popup {
  72. width: 100%;
  73. height: 100%;
  74. background-color: #000;
  75. }
  76. .mint-swipe,
  77. .mint-swipe-items-wrap {
  78. position: static;
  79. }
  80. .preview-picture {
  81. width: 100%;
  82. height: 100%;
  83. position: fixed;
  84. z-index: 10;
  85. top: 0;
  86. bottom: 0;
  87. left: 0;
  88. right: 0;
  89. background-color: #000;
  90. .picture-header {
  91. height:2.2rem;
  92. color: #000;
  93. background-color: #fff;
  94. display: flex;
  95. justify-content: center;
  96. align-content: center;
  97. align-items: center;
  98. width: 100%;
  99. top: 0;
  100. .span {
  101. font-size:$subFontSize;
  102. font-weight: normal;
  103. &:first-child {
  104. cursor: pointer;
  105. position: absolute;
  106. left:0.75rem;
  107. background-size:1.2rem;
  108. display: inline-block;
  109. height:2.2rem;
  110. line-height:2.2rem;
  111. }
  112. }
  113. }
  114. .picture-body {
  115. position: absolute;
  116. top:2.2rem;
  117. bottom:0;
  118. width: 100%;
  119. display: flex;
  120. justify-content: center;
  121. align-content: center;
  122. align-items: center;
  123. }
  124. }
  125. </style>