wallet.vue 750 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="wallet-index flex-common-css box-sizing-border iPhone-bottom">
  3. <WalletNav @setNavType='setNavType'></WalletNav>
  4. <view class="wallet-info">
  5. <Recharge v-if="navType === 1"></Recharge>
  6. <Income v-else></Income>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import WalletNav from './model/wallet-nav.vue'
  12. import Income from './model/income.vue'
  13. import Recharge from './model/recharge.vue'
  14. export default {
  15. components:{WalletNav,Income,Recharge},
  16. data(){
  17. return{
  18. navType:1, //1 充值 2收益
  19. }
  20. },
  21. methods:{
  22. setNavType(e){
  23. this.navType = e *1;
  24. },
  25. },
  26. }
  27. </script>
  28. <style scoped lang="scss">
  29. .wallet-index{
  30. position: relative;
  31. .wallet-info{
  32. flex: 1;
  33. overflow: auto;
  34. }
  35. }
  36. </style>