index.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <view class="mine-container">
  3. <view class="user-header">
  4. <StatusBarPlaceholder></StatusBarPlaceholder>
  5. <view class="header-content">
  6. <view class="user-info">
  7. <view class="avatar-wrapper">
  8. <image class="avatar" src="/static/avatar-default.png" mode="aspectFill" />
  9. </view>
  10. <view class="user-details">
  11. <view class="name-row">
  12. <text class="user-name">Àƽ</text>
  13. <text class="user-role">123dasfjsal </text>
  14. </view>
  15. <text class="company-name">浙江舒å�šç‰¹ç½‘ç»œç§‘æŠæœ‰é™�å…¬å�¸</text>
  16. </view>
  17. </view>
  18. <view class="qr-btn">
  19. <uni-icons type="qrcode" size="24" color="#ffffff"></uni-icons>
  20. <text class="qr-text">我的�片</text>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 线索数� -->
  25. <view class="data-card">
  26. <view class="card-title">线索数�</view>
  27. <view class="data-row">
  28. <view class="data-item">
  29. <text class="data-value">1,266</text>
  30. <text class="data-label">线索总数</text>
  31. </view>
  32. <view class="data-item highlight">
  33. <text class="data-value orange">65</text>
  34. <text class="data-label">本月新增</text>
  35. </view>
  36. <view class="data-item">
  37. <text class="data-value">126</text>
  38. <text class="data-label">我的线索</text>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 客户数� -->
  43. <view class="data-card">
  44. <view class="card-title">客户数�</view>
  45. <view class="data-row">
  46. <view class="data-item">
  47. <text class="data-value">1,088</text>
  48. <text class="data-label">客户总数</text>
  49. </view>
  50. <view class="data-item highlight">
  51. <text class="data-value orange">123</text>
  52. <text class="data-label">本月新增</text>
  53. </view>
  54. <view class="data-item">
  55. <text class="data-value">235</text>
  56. <text class="data-label">我的客户</text>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 商机数� -->
  61. <view class="data-card">
  62. <view class="card-title">商机数�</view>
  63. <view class="data-row">
  64. <view class="data-item">
  65. <text class="data-value">1,366</text>
  66. <text class="data-label">商机总数</text>
  67. </view>
  68. <view class="data-item highlight">
  69. <text class="data-value orange">63</text>
  70. <text class="data-label">本月新增</text>
  71. </view>
  72. <view class="data-item">
  73. <text class="data-value">86</text>
  74. <text class="data-label">我的商机</text>
  75. </view>
  76. </view>
  77. </view>
  78. <!-- 功能�� -->
  79. <view class="menu-card">
  80. <view class="menu-item" @click="navigateTo('guide')">
  81. <uni-icons type="help" size="20" color="#667eea"></uni-icons>
  82. <text class="menu-text">使用指�</text>
  83. <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
  84. </view>
  85. <view class="menu-divider"></view>
  86. <view class="menu-item" @click="navigateTo('service')">
  87. <uni-icons type="paperclip" size="20" color="#667eea"></uni-icons>
  88. <text class="menu-text">�系客�</text>
  89. <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
  90. </view>
  91. <view class="menu-divider"></view>
  92. <view class="menu-item" @click="navigateTo('about')">
  93. <uni-icons type="gear" size="20" color="#667eea"></uni-icons>
  94. <text class="menu-text">关于我们</text>
  95. <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script setup>
  101. import { ref ,onMounted} from 'vue'
  102. import StatusBarPlaceholder from "@/components/status-bar-placeholder/index.vue"
  103. const navigateTo = (page) => {
  104. uni.showToast({
  105. title: `功能å¼å�‘中ï¼{page}`,
  106. icon: 'none'
  107. })
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .mine-container {
  112. min-height: 100vh;
  113. background: #f5f6f8;
  114. }
  115. // 顶部用户信��片
  116. .user-header {
  117. background: linear-gradient(180deg, #5B86F5 0%, #36D1DC 100%);
  118. padding: 40rpx;
  119. padding-top: calc(var(--status-bar-height) + 20rpx);
  120. position: relative;
  121. .header-content {
  122. position: relative;
  123. z-index: 2;
  124. }
  125. .user-info {
  126. display: flex;
  127. align-items: center;
  128. margin-bottom: 32rpx;
  129. .avatar-wrapper {
  130. flex-shrink: 0;
  131. margin-right: 24rpx;
  132. .avatar {
  133. width: 120rpx;
  134. height: 120rpx;
  135. border-radius: 50%;
  136. border: 4rpx solid rgba(255, 255, 255, 0.3);
  137. }
  138. }
  139. .user-details {
  140. flex: 1;
  141. .name-row {
  142. display: flex;
  143. align-items: center;
  144. margin-bottom: 12rpx;
  145. .user-name {
  146. font-size: 36rpx;
  147. font-weight: 600;
  148. color: #ffffff;
  149. }
  150. .user-role {
  151. font-size: 22rpx;
  152. color: rgba(255, 255, 255, 0.9);
  153. background: rgba(255, 255, 255, 0.2);
  154. padding: 4rpx 12rpx;
  155. border-radius: 20rpx;
  156. margin-left: 12rpx;
  157. }
  158. }
  159. .company-name {
  160. font-size: 24rpx;
  161. color: rgba(255, 255, 255, 0.8);
  162. display: block;
  163. }
  164. }
  165. }
  166. .qr-btn {
  167. display: flex;
  168. align-items: center;
  169. justify-content: center;
  170. background: rgba(255, 255, 255, 0.2);
  171. padding: 12rpx 24rpx;
  172. border-radius: 24rpx;
  173. align-self: flex-start;
  174. .qr-text {
  175. font-size: 22rpx;
  176. color: #ffffff;
  177. margin-left: 8rpx;
  178. }
  179. }
  180. }
  181. // 数��片
  182. .data-card {
  183. background: #ffffff;
  184. margin: 20rpx;
  185. padding: 32rpx;
  186. border-radius: 24rpx;
  187. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
  188. .card-title {
  189. font-size: 28rpx;
  190. color: #666666;
  191. margin-bottom: 24rpx;
  192. }
  193. .data-row {
  194. display: flex;
  195. justify-content: space-between;
  196. .data-item {
  197. display: flex;
  198. flex-direction: column;
  199. align-items: center;
  200. flex: 1;
  201. .data-value {
  202. font-size: 40rpx;
  203. font-weight: 600;
  204. color: #333333;
  205. margin-bottom: 12rpx;
  206. }
  207. .data-label {
  208. font-size: 24rpx;
  209. color: #999999;
  210. }
  211. &.highlight .data-value {
  212. color: #ff6b35;
  213. }
  214. &:not(:last-child) {
  215. border-right: 1rpx solid #f0f0f0;
  216. }
  217. }
  218. }
  219. }
  220. // 功能��
  221. .menu-card {
  222. background: #ffffff;
  223. margin: 20rpx;
  224. padding: 0 32rpx;
  225. border-radius: 24rpx;
  226. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
  227. .menu-item {
  228. display: flex;
  229. align-items: center;
  230. padding: 32rpx 0;
  231. .menu-text {
  232. flex: 1;
  233. font-size: 28rpx;
  234. color: #333333;
  235. margin-left: 20rpx;
  236. }
  237. }
  238. .menu-divider {
  239. height: 1rpx;
  240. background: #f0f0f0;
  241. }
  242. }
  243. </style>