用工小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.3 KiB

8 months ago
  1. <template>
  2. <view class="u-page">
  3. <view class="se-p-40 se-pos">
  4. <image class="se-w-p-100 se-h-300 se-br-20" src="@/static/image/6584.png" mode=""></image>
  5. <view class="se-pos-lc se-fs-32 se-c-white se-flex se-flex-v se-flex-ff se-pl-60">
  6. <text>钱包</text>
  7. <text class="se-mt-20 se-fw-6 se-fs-34">7890</text>
  8. </view>
  9. </view>
  10. <view class="se-mx-40">
  11. <u-tabs :list="nav"
  12. :current="current"
  13. lineColor="#ff7a31"
  14. :activeStyle="{
  15. color: '#ff7a31',
  16. transform: 'scale(1.05)'
  17. }"
  18. :inactiveStyle="{
  19. color: '#333',
  20. transform: 'scale(1)'
  21. }"
  22. :scrollable="true"
  23. itemStyle="padding-left: 20rpx; padding-right: 20rpx;font-size:18rpx; height: 60rpx;"
  24. @click="tabClick"></u-tabs>
  25. </view>
  26. <withdrawalBox v-if="current==0" />
  27. <rechargeBox v-if="current==1" />
  28. </view>
  29. </template>
  30. <script>
  31. import withdrawalBox from "./component/withdrawal.vue"
  32. import rechargeBox from "./component/recharge.vue"
  33. export default{
  34. components:{
  35. withdrawalBox,
  36. rechargeBox
  37. },
  38. data(){
  39. return{
  40. current:0,
  41. nav: [
  42. {
  43. name: '提现',
  44. }, {
  45. name: '充值',
  46. }
  47. ],
  48. money:null,
  49. }
  50. },
  51. methods:{
  52. tabClick(event){
  53. this.current = event.index
  54. }
  55. }
  56. }
  57. </script>
  58. <style>
  59. </style>