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

161 lines
3.5 KiB

  1. <template>
  2. <view class="bind-user">
  3. <view class="bind-user-header">
  4. <view class="flex mb28 ml20 ">
  5. <up-image width="140rpx" height="140rpx" 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 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="top box-size mb20" :style="{borderRadius:'16rpx'}">
  26. <view class="level account">
  27. <view class="fw700">
  28. 钱包余额
  29. </view>
  30. <view class="level text">
  31. <view @click="handleGoto('detail')">
  32. 明细
  33. </view>
  34. <view class="line" @click="handleGoto('cash')">
  35. 提现
  36. </view>
  37. </view>
  38. </view>
  39. <view class="money level fw700">
  40. <text class="text1">
  41. ¥
  42. </text>
  43. <text style="color: #FF2A2A; font-size: 36rpx;">29.00</text>
  44. </view>
  45. <view class="line1">
  46. </view>
  47. <view class="level divide">
  48. <view class="level flex-rowl">
  49. <view class="">
  50. 本月订单分成:&nbsp;&nbsp;
  51. </view>
  52. ¥<view class="">
  53. 0.00
  54. </view>
  55. </view>
  56. <view class="level flex-rowl">
  57. <view class="">
  58. 累积订单分成:&nbsp;&nbsp;
  59. </view>
  60. ¥<view class="">
  61. 0.00
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="my-data">
  67. <view class="my-data-total">
  68. <cardTitle :cardTitle="mounthName"></cardTitle>
  69. <cardData :cardData="nounthData"></cardData>
  70. </view>
  71. </view>
  72. <view class="my-data">
  73. <view class="my-data-total">
  74. <cardTitle :cardTitle="totalName"></cardTitle>
  75. <cardData :cardData="totalData"></cardData>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script setup>
  83. import tab from "@/plugins/tab.js"
  84. import cardTitle from '../components/cardTitle.vue'
  85. import cardData from '../components/cardData.vue'
  86. import {
  87. ref,
  88. reactive
  89. } from "vue"
  90. const mounthName = ref('本月数据')
  91. const totalName = ref('累计数据')
  92. const nounthData = reactive([{
  93. title: '本月注册用户',
  94. num: "0个"
  95. },
  96. {
  97. title: '本月下单用户',
  98. num: "0个"
  99. },
  100. {
  101. title: '本月有效用户',
  102. num: "0个"
  103. },
  104. {
  105. title: '本月订单金额',
  106. num: "¥0.00",
  107. color: 'red'
  108. },
  109. {
  110. title: '本月有效订单金额',
  111. num: "¥0.00",
  112. color: 'red'
  113. },
  114. ])
  115. const totalData = reactive([{
  116. title: '累计注册用户',
  117. num: "0个",
  118. },
  119. {
  120. title: '累计下单用户',
  121. num: "0个"
  122. },
  123. {
  124. title: '累计有效用户',
  125. num: "0个",
  126. },
  127. {
  128. title: '累计订单金额',
  129. num: "¥0.00",
  130. color: 'red'
  131. },
  132. {
  133. title: '累计有效订单金额',
  134. num: "¥0.00",
  135. color: 'red'
  136. },
  137. ])
  138. const handleGoto = (val) => {
  139. switch (val) {
  140. case 'detail':
  141. tab.navigateTo('/otherPages/binding/partner/index')
  142. // tab.navigateTo('/otherPages/workbenchManage/bindUser/index')
  143. break;
  144. case 'cash':
  145. tab.navigateTo('/otherPages/binding/withdrawal/index')
  146. break;
  147. }
  148. }
  149. </script>
  150. <style scoped lang="scss">
  151. @import "index";
  152. </style>