income.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {extend name="public/base"/}
  2. {block name="css"}
  3. <style>
  4. .header {background-color: var(--blue);color: #ffffff;padding: 15px;}
  5. .header .title {text-align: center;}
  6. .header .title .money{font-size: 40px;padding-bottom: 5px;}
  7. .header .sub-title{padding-top: 30px;display: flex;justify-content: space-between;}
  8. </style>
  9. {/block}
  10. {block name="body"}
  11. <van-nav-bar
  12. class="nav-theme"
  13. :fixed="true"
  14. :placeholder="true"
  15. left-text="返回"
  16. left-arrow
  17. @click-left="onBack"
  18. >
  19. <template #title>
  20. <span class="text-white">收益明细</span>
  21. </template>
  22. </van-nav-bar>
  23. <div class="header">
  24. <div class="title">
  25. <div class="money">{{broker.income}}</div>
  26. <div>
  27. 当前收益
  28. </div>
  29. </div>
  30. <div class="sub-title">
  31. <div>上月获得:<span>{{month_income}}</span> 元</div>
  32. <div>累计已获:<span>{{broker.income_total}}</span> 元</div>
  33. </div>
  34. </div>
  35. {include file="public/list_load" list="<income-list :list='list'></income-list>" /}
  36. {/block}
  37. {block name="script"}
  38. <script>
  39. function v_setup() {
  40. let base = list_load('my/listIncome');
  41. base.onBack = () => {
  42. location.href = "{:url('/mobile/my/index')}";
  43. };
  44. base.broker = {$broker};
  45. base.month_income = {$month_income};
  46. return base;
  47. }
  48. </script>
  49. {/block}
  50. {block name="vue"}
  51. <script src="__COMPONENTS__/incomeList.js"></script>
  52. {/block}