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

237 lines
4.3 KiB

3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 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="level">
  13. <view class="title level" :style="{borderRadius:'19rpx'}">
  14. 初级合伙人
  15. </view>
  16. <view class="time">
  17. 已加入合伙人:130
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="top box-size" :style="{ borderRadius: '16rpx' }">
  23. <view class="form-title">
  24. 当月数据
  25. </view>
  26. <view class="line1">
  27. </view>
  28. <view class="flex-b margin_top_3">
  29. <view class="justify col_999">
  30. <view >
  31. 当月注册用户
  32. </view>
  33. <view class="margin_top_10">
  34. 0
  35. </view>
  36. </view>
  37. <view class="justify col_999">
  38. <view >
  39. 当月下单用户
  40. </view>
  41. <view class="margin_top_10">
  42. 0
  43. </view>
  44. </view>
  45. <view class="justify col_999">
  46. <view >
  47. 当月有效用户
  48. </view>
  49. <view class="margin_top_10">
  50. 0
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class=" top center box-size" :style="{ borderRadius: '16rpx' }">
  56. <view class="form-title">
  57. 累积数据
  58. </view>
  59. <view class="line1">
  60. </view>
  61. <view class="flex-b margin_top_3">
  62. <view class="justify col_999">
  63. <view >
  64. 累积注册用户
  65. </view>
  66. <view class="margin_top_10">
  67. 0
  68. </view>
  69. </view>
  70. <view class="justify col_999">
  71. <view >
  72. 累积下单用户
  73. </view>
  74. <view class="margin_top_10">
  75. 0
  76. </view>
  77. </view>
  78. <view class="justify col_999">
  79. <view >
  80. 累积有效用户
  81. </view>
  82. <view class="margin_top_10">
  83. 0
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="bottom box-size child" :style="{ borderRadius: '16rpx' }" >
  89. <up-parse :content="configList.cumulative_data_statement.paramValueArea" containerStyle="{
  90. color: '#A55822',
  91. fontSize: '22rpx',
  92. lineHeight: '29rpx',
  93. }"></up-parse>
  94. </view>
  95. </view>
  96. </template>
  97. <script setup>
  98. import { useStore } from 'vuex'
  99. const store = useStore()
  100. const configList = computed(() => {
  101. return store.getters.configList
  102. })
  103. </script>
  104. <style scoped lang="scss">
  105. .box {
  106. width: 100vw;
  107. height: 100vh;
  108. background: linear-gradient(180deg, #ffbf60, #ffe6bf, #F5F5F7 433rpx);
  109. padding: 1% 2%;
  110. .picture {
  111. width: 139rpx;
  112. height: 139rpx;
  113. background-color: green;
  114. margin: 30rpx 20rpx 30rpx 30rpx;
  115. }
  116. .box-size {
  117. box-sizing: border-box;
  118. }
  119. .flex {
  120. flex-direction: column;
  121. justify-content: center;
  122. align-items: flex-start;
  123. }
  124. .level {
  125. display: flex;
  126. }
  127. .justify {
  128. width: 168rpx;
  129. display: grid;
  130. justify-content: center;
  131. }
  132. .name {
  133. font-size: 32rpx;
  134. margin-bottom: 15rpx;
  135. }
  136. .title {
  137. width: 143rpx;
  138. height: 38rpx;
  139. background-color: #FFA848;
  140. font-size: 22rpx;
  141. border: 1rpx solid #FFFFFF;
  142. line-height: 36rpx;
  143. color: #FFFFFF;
  144. justify-content: center;
  145. margin-right: 15rpx;
  146. }
  147. .time {
  148. color: #A55822;
  149. font-size: 22rpx;
  150. line-height: 36rpx;
  151. }
  152. .line1 {
  153. position: relative;
  154. margin-bottom: 50rpx;
  155. &::before {
  156. position: absolute;
  157. top: 25rpx;
  158. left: 0;
  159. content: "";
  160. width: 660rpx;
  161. height: 1rpx;
  162. background-color: #F5F5F7;
  163. // background-color: red;
  164. }
  165. }
  166. .top {
  167. width: 718rpx;
  168. height: 259rpx;
  169. background-color: #FFFFFF;
  170. padding: 3% 4%;
  171. .margin_top_3 {
  172. margin-top: 3%;
  173. font-weight: 0 important !important;
  174. .margin_top_10 {
  175. margin-top: 10%;
  176. color: #000000;
  177. }
  178. .col_999 {
  179. font-size: 28rpx;
  180. color: #999999;
  181. }
  182. }
  183. }
  184. .center {
  185. margin-top: 3%;
  186. }
  187. .bottom {
  188. width: 711rpx;
  189. height: 546rpx;
  190. background-color: #FFF4E6;
  191. padding: 3%;
  192. font-size: 22rpx;
  193. margin-top: 20rpx;
  194. .form_item {
  195. font-size: 22rpx;
  196. color: #A55822;
  197. position: relative;
  198. // padding: 38rpx 20rpx 0;
  199. margin-left: 10rpx;
  200. &::before {
  201. position: absolute;
  202. top: 5rpx;
  203. left: -18rpx;
  204. content: "*";
  205. }
  206. }
  207. }
  208. .child {
  209. display: grid;
  210. justify-content: space-between;
  211. }
  212. }
  213. </style>