mation.vue 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="center">
  3. <view class="box">
  4. <view class="textBox flex">
  5. <view class="font">交易前</view>
  6. <view class="number">{{ before }}</view>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import {moneyLog} from '@/api/finance.js';
  13. export default {
  14. data(){
  15. return {
  16. id:'',
  17. before: '2000',
  18. jy: '2000',
  19. after: '2000',
  20. text: '1111',
  21. code: '',
  22. type: '',
  23. }
  24. },
  25. onLoad(option){
  26. console.log(option)
  27. this.id = option.id;
  28. this.code = option.code;
  29. this.type = option.type;
  30. this.loadData();
  31. },
  32. methods:{
  33. async loadData() {
  34. let obj = this;
  35. moneyLog({
  36. page: 1,
  37. limit: 10000,
  38. type: obj.type,
  39. }, obj.code,obj.id).then(({
  40. data
  41. }) => {
  42. console.log(data);
  43. obj.list = data.list;
  44. });
  45. },
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. .box {
  51. height: 618rpx;
  52. background: #FFFFFF;
  53. box-shadow: 3px 3px 6px 0px rgba(31, 31, 31, 0.17);
  54. border-radius: 40px;
  55. }
  56. </style>