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

297 lines
5.0 KiB

2 months ago
  1. <template>
  2. <!-- <div>钱包</div> -->
  3. <view class="box box-size">
  4. <view class="level">
  5. <view class="picture" :style="{borderRadius:'50%'}">
  6. <image src="" mode="" shape="circle" withe="139rpx" height="139rpx"></image>
  7. </view>
  8. <view class="flex">
  9. <view class="name">
  10. 猫小姐
  11. </view>
  12. <view class="title level" :style="{borderRadius:'19rpx'}">
  13. 初级合伙人
  14. </view>
  15. <view class="time level">
  16. <view class="">
  17. 当前分成比例:25%
  18. </view>
  19. <view class="">
  20. 晋级后分成比例:30%
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="top box-size" :style="{borderRadius:'16rpx'}">
  26. <view class="level account">
  27. <view class="">
  28. 钱包余额
  29. </view>
  30. <view class="level text">
  31. <view @click="toDetail">
  32. 明细
  33. </view>
  34. <view class="line" @click="totixian">
  35. 提现
  36. </view>
  37. </view>
  38. </view>
  39. <view class="money level">
  40. <view class="text1">
  41. ¥
  42. </view>
  43. <input type="text" />
  44. </view>
  45. <view class="line1">
  46. </view>
  47. <view class="level flex--justify divide">
  48. <view class="level">
  49. <view class="">
  50. 本月订单分成:&nbsp;&nbsp;
  51. </view>
  52. ¥<view class="">
  53. 0.00
  54. </view>
  55. </view>
  56. <view class="level">
  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="center box-size">
  67. <view class="form-title">
  68. 本月数据
  69. </view>
  70. <view class="line2">
  71. </view>
  72. <view class="flex-rowl wrap">
  73. <view class="text2">
  74. 本月注册用户
  75. <view class="text3">
  76. 0
  77. </view>
  78. </view>
  79. <view class="text2">
  80. 本月下单用户
  81. <view class="text3">
  82. 0
  83. </view>
  84. </view>
  85. <view class="text2">
  86. 本月有效用户
  87. <view class="text3">
  88. 0
  89. </view>
  90. </view>
  91. <view class="text2">
  92. 本月订单金额
  93. <view class="text4">
  94. ¥0.00
  95. </view>
  96. </view>
  97. <view class="text2">
  98. 本月有效订单金额
  99. <view class="text4">
  100. ¥0.00
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </template>
  107. <script setup>
  108. const toDetail = () => {
  109. uni.navigateTo({
  110. url: "/otherPages/binding/partner/index"
  111. })
  112. }
  113. const totixian = () => {
  114. uni.navigateTo({
  115. url: "/otherPages/binding/withdrawal/index"
  116. })
  117. }
  118. </script>
  119. <style lang="scss">
  120. .box {
  121. width: 100vw;
  122. height: 100vh;
  123. background: linear-gradient(180deg, #ffbf60, #ffe6bf, #F5F5F7 433rpx);
  124. padding: 1% 2%;
  125. .flex {
  126. flex-direction: column;
  127. justify-content: center;
  128. align-items: flex-start;
  129. }
  130. .picture {
  131. width: 139rpx;
  132. height: 139rpx;
  133. background-color: green;
  134. margin: 30rpx 20rpx 30rpx 30rpx;
  135. }
  136. .name {
  137. font-size: 32rpx;
  138. margin-bottom: 15rpx;
  139. }
  140. .title {
  141. width: 143rpx;
  142. height: 38rpx;
  143. background-color: #FFA848;
  144. font-size: 22rpx;
  145. border: 1rpx solid #FFFFFF;
  146. line-height: 36rpx;
  147. color: #FFFFFF;
  148. justify-content: center;
  149. margin: 0 15rpx 15rpx 0;
  150. }
  151. .time {
  152. width: 430rpx;
  153. color: #A55822;
  154. font-size: 22rpx;
  155. line-height: 36rpx;
  156. justify-content: space-between;
  157. }
  158. .top {
  159. width: 718rpx;
  160. height: 259rpx;
  161. background-color: #FFF6EC;
  162. padding: 3% 4%;
  163. .account {
  164. justify-content: space-between;
  165. color: #000000;
  166. font-size: 30rpx;
  167. .text {
  168. color: #A55822;
  169. }
  170. .line {
  171. position: relative;
  172. padding: 0 0 0 20rpx;
  173. &::before {
  174. position: absolute;
  175. top: 7rpx;
  176. left: 10rpx;
  177. content: "";
  178. width: 3rpx;
  179. height: 30rpx;
  180. border-radius: 9rpx;
  181. background-color: #A55822;
  182. }
  183. }
  184. }
  185. .money {
  186. width: auto;
  187. height: 60rpx;
  188. margin: 20rpx 0;
  189. color: #FF2A2A;
  190. font-size: 42rpx;
  191. align-items: center;
  192. .text1 {
  193. font-size: 25rpx !important;
  194. color: #FF2A2A !important;
  195. margin-right: 10rpx;
  196. }
  197. }
  198. .line1 {
  199. position: relative;
  200. &::before {
  201. position: absolute;
  202. top: -10rpx;
  203. left: 0;
  204. content: "";
  205. width: 660rpx;
  206. height: 1rpx;
  207. background-color: #FFBF60;
  208. }
  209. }
  210. .divide {
  211. color: #A55822;
  212. font-size: 30rpx;
  213. margin-top: 50rpx;
  214. }
  215. }
  216. .center {
  217. width: 718rpx;
  218. height: 400rpx;
  219. background-color: #FFFFFF;
  220. padding: 2% 4%;
  221. .line2 {
  222. position: relative;
  223. margin-bottom: 50rpx;
  224. &::before {
  225. position: absolute;
  226. top: 25rpx;
  227. left: 0;
  228. content: "";
  229. width: 660rpx;
  230. height: 1rpx;
  231. background-color: #F5F5F7;
  232. // background-color: red;
  233. }
  234. }
  235. .text2 {
  236. width: 33%;
  237. color: #999999;
  238. font-size: 28rpx;
  239. margin-bottom: 24rpx;
  240. .text3 {
  241. color: #000000;
  242. font-size: 30rpx;
  243. margin-top: 10rpx;
  244. }
  245. .text4 {
  246. color: #FF2A2A;
  247. font-size: 30rpx;
  248. margin-top: 10rpx;
  249. }
  250. }
  251. }
  252. }
  253. .box-size {
  254. box-sizing: border-box;
  255. }
  256. .level {
  257. display: flex;
  258. }
  259. .flex--justify {
  260. justify-content: space-between;
  261. }
  262. .flex-around {
  263. justify-content: space-around;
  264. }
  265. </style>