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

82 lines
2.0 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="bind-user">
  3. <view class="bind-user-header">
  4. <view class="flex mb28">
  5. <up-image width="120rpx" height="120rpx" src="https://cdn.uviewui.com/uview/album/1.jpg"
  6. shape="circle"></up-image>
  7. <view class="header-name">
  8. <view class="font32 mb20 color-040">微信用户</view>
  9. <view class="label1">
  10. 初级合伙人
  11. </view>
  12. <view class="flex font24">
  13. <view style="color: #B97132;">当前分成比例:
  14. <text style="color: #CD4732;">25%</text>
  15. </view>
  16. <view class="ml28" style="color: #B97132;">晋级后分成比例:
  17. <text style="color: #CD4732;">30%</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="bind-main">
  24. <view class="bind-main-content">
  25. <view class="bind-main-list">
  26. <!-- <up-empty
  27. mode="list"
  28. width="300px"
  29. height="300px"
  30. icon="http://cdn.uviewui.com/uview/empty/car.png"
  31. /> -->
  32. <view class="bind-tabs">
  33. <up-tabs :list="list" :current="current" lineWidth="68rpx" :activeStyle="{
  34. color: '#000000',
  35. fontWeight: 'bold',
  36. transform: 'scale(1.05)'
  37. }" :inactiveStyle="{
  38. color: '#000000',
  39. transform: 'scale(1)'
  40. }" :itemStyle="{height:'88rpx',padding:'0 100rpx'}" lineColor="#FFBF60" @click="tabClick">
  41. </up-tabs>
  42. </view>
  43. <view class="">
  44. <noOrder v-if="current == 0" />
  45. <haveOrder v-if="current == 1" />
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script setup>
  53. import {
  54. ref,
  55. reactive
  56. } from "vue"
  57. import haveOrder from "./components/haveOrder.vue"
  58. import noOrder from "./components/noOrder.vue"
  59. const code = ref('asdasaadsdsa')
  60. const url = ref('https://uview-plus.jiangruyi.com/components/button.html')
  61. const current = ref(0)
  62. const list = reactive([{
  63. name: '未下单'
  64. },
  65. {
  66. name: '已下单'
  67. },
  68. ]);
  69. const tabClick = (item) => {
  70. current.value = item.index
  71. }
  72. </script>
  73. <style scoped lang="scss">
  74. @import "index";
  75. </style>