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

300 lines
5.0 KiB

4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
2 weeks ago
4 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 >
  17. 当前分成比例:25%
  18. </view>
  19. <view >
  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 >
  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 >
  50. 本月订单分成:&nbsp;&nbsp;
  51. </view>
  52. ¥<view >
  53. 0.00
  54. </view>
  55. </view>
  56. <view class="level">
  57. <view >
  58. 累积订单分成:&nbsp;&nbsp;
  59. </view>
  60. ¥<view >
  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. <!-- 客服组件 -->
  107. <CustomerService />
  108. </template>
  109. <script setup>
  110. const toDetail = () => {
  111. uni.navigateTo({
  112. url: "/otherPages/binding/partner/index"
  113. })
  114. }
  115. const totixian = () => {
  116. uni.navigateTo({
  117. url: "/otherPages/binding/withdrawal/index"
  118. })
  119. }
  120. </script>
  121. <style lang="scss">
  122. .box {
  123. width: 100vw;
  124. height: 100vh;
  125. background: linear-gradient(180deg, #ffbf60, #ffe6bf, #F5F5F7 433rpx);
  126. padding: 1% 2%;
  127. .flex {
  128. flex-direction: column;
  129. justify-content: center;
  130. align-items: flex-start;
  131. }
  132. .picture {
  133. width: 139rpx;
  134. height: 139rpx;
  135. background-color: green;
  136. margin: 30rpx 20rpx 30rpx 30rpx;
  137. }
  138. .name {
  139. font-size: 32rpx;
  140. margin-bottom: 15rpx;
  141. }
  142. .title {
  143. width: 143rpx;
  144. height: 38rpx;
  145. background-color: #FFA848;
  146. font-size: 22rpx;
  147. border: 1rpx solid #FFFFFF;
  148. line-height: 36rpx;
  149. color: #FFFFFF;
  150. justify-content: center;
  151. margin: 0 15rpx 15rpx 0;
  152. }
  153. .time {
  154. width: 430rpx;
  155. color: #A55822;
  156. font-size: 22rpx;
  157. line-height: 36rpx;
  158. justify-content: space-between;
  159. }
  160. .top {
  161. width: 718rpx;
  162. height: 259rpx;
  163. background-color: #FFF6EC;
  164. padding: 3% 4%;
  165. .account {
  166. justify-content: space-between;
  167. color: #000000;
  168. font-size: 30rpx;
  169. .text {
  170. color: #A55822;
  171. }
  172. .line {
  173. position: relative;
  174. padding: 0 0 0 20rpx;
  175. &::before {
  176. position: absolute;
  177. top: 7rpx;
  178. left: 10rpx;
  179. content: "";
  180. width: 3rpx;
  181. height: 30rpx;
  182. border-radius: 9rpx;
  183. background-color: #A55822;
  184. }
  185. }
  186. }
  187. .money {
  188. width: auto;
  189. height: 60rpx;
  190. margin: 20rpx 0;
  191. color: #FF2A2A;
  192. font-size: 42rpx;
  193. align-items: center;
  194. .text1 {
  195. font-size: 25rpx !important;
  196. color: #FF2A2A !important;
  197. margin-right: 10rpx;
  198. }
  199. }
  200. .line1 {
  201. position: relative;
  202. &::before {
  203. position: absolute;
  204. top: -10rpx;
  205. left: 0;
  206. content: "";
  207. width: 660rpx;
  208. height: 1rpx;
  209. background-color: #FFBF60;
  210. }
  211. }
  212. .divide {
  213. color: #A55822;
  214. font-size: 30rpx;
  215. margin-top: 50rpx;
  216. }
  217. }
  218. .center {
  219. width: 718rpx;
  220. height: 400rpx;
  221. background-color: #FFFFFF;
  222. padding: 2% 4%;
  223. .line2 {
  224. position: relative;
  225. margin-bottom: 50rpx;
  226. &::before {
  227. position: absolute;
  228. top: 25rpx;
  229. left: 0;
  230. content: "";
  231. width: 660rpx;
  232. height: 1rpx;
  233. background-color: #F5F5F7;
  234. // background-color: red;
  235. }
  236. }
  237. .text2 {
  238. width: 33%;
  239. color: #999999;
  240. font-size: 28rpx;
  241. margin-bottom: 24rpx;
  242. .text3 {
  243. color: #000000;
  244. font-size: 30rpx;
  245. margin-top: 10rpx;
  246. }
  247. .text4 {
  248. color: #FF2A2A;
  249. font-size: 30rpx;
  250. margin-top: 10rpx;
  251. }
  252. }
  253. }
  254. }
  255. .box-size {
  256. box-sizing: border-box;
  257. }
  258. .level {
  259. display: flex;
  260. }
  261. .flex--justify {
  262. justify-content: space-between;
  263. }
  264. .flex-around {
  265. justify-content: space-around;
  266. }
  267. </style>