money-running-detail.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="money-running-detail">
  3. <view class="app-item">
  4. <text>金额</text>
  5. <text>{{ (info.type == 1 || info.type == 3) ? '- ' : '+ ' }}{{ info.pay_money }}</text>
  6. </view>
  7. <view class="app-item">
  8. <text>摘要</text>
  9. <text>{{ info.type | getRunningStatus }}</text>
  10. </view>
  11. <view v-if="info.order_num" class="app-item">
  12. <text>订单号</text>
  13. <text>{{ info.order_num }}</text>
  14. </view>
  15. <view class="app-item">
  16. <text>流水号</text>
  17. <text>{{ info.pay_num }}</text>
  18. </view>
  19. <view class="app-item">
  20. <text>时间</text>
  21. <text>{{ info.updated_at }}</text>
  22. </view>
  23. <view class="app-item">
  24. <text>备注</text>
  25. <text>{{ info.remark }}</text>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. info: {}
  34. };
  35. },
  36. filters: {
  37. getRunningStatus(status) {
  38. switch (status.toString()) {
  39. case '0':
  40. return '账户充值'
  41. case '1':
  42. return '购买商品'
  43. case '2':
  44. return '订单退款'
  45. case '3':
  46. return '后台扣款'
  47. default:
  48. return ''
  49. }
  50. }
  51. },
  52. onLoad({ key }) {
  53. this.info = JSON.parse(uni.getStorageSync(key))
  54. uni.removeStorageSync(key)
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. .money-running-detail {
  60. height: 100vh;
  61. background: $app-base-bg;
  62. }
  63. </style>