猫妈狗爸伴宠师小程序前端代码
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.

59 lines
1.2 KiB

  1. <template>
  2. <view>
  3. <up-sticky bgColor="#fff">
  4. <view class="container-tabs">
  5. <up-tabs :list="list" lineWidth="68rpx"
  6. :activeStyle="{
  7. color: '#FFFFFF',
  8. fontWeight: 'bold',
  9. transform: 'scale(1.05)'
  10. }"
  11. :inactiveStyle="{
  12. color: '#FFFFFF',
  13. transform: 'scale(1)'
  14. }"
  15. :itemStyle="{height:'88rpx',padding:'0 52rpx'}"
  16. lineColor="#FFFFFF"></up-tabs>
  17. </view>
  18. </up-sticky>
  19. <view class="container">
  20. <systemOrder v-if="current===0"/>
  21. <personOrder v-if="current===1"/>
  22. <lossOrder v-if="current===2"/>
  23. </view>
  24. </view>
  25. </template>
  26. <script setup>
  27. import {reactive,ref} from "vue";
  28. import systemOrder from "./components/systemOrder.vue";
  29. import personOrder from "./components/personOrder.vue";
  30. import lossOrder from "./components/lossOrder.vue";
  31. const current = ref(0)
  32. const list = reactive([
  33. {
  34. name: '系统派单',
  35. badge: {
  36. value: 5,
  37. }
  38. },
  39. {
  40. name: '个人订单',
  41. badge: {
  42. value: 5,
  43. }
  44. },
  45. {
  46. name: '流失订单',
  47. badge: {
  48. value: 5,
  49. }
  50. },
  51. ])
  52. </script>
  53. <style scoped lang="scss">
  54. @import "index.scss";
  55. </style>