index.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <template>
  2. <view class="mine-container">
  3. <image class="top-bg" src="/static/image/home/top-bg.png" />
  4. <!-- 顶部背景区域 -->
  5. <view class="header-bg">
  6. <NavBar title="" color="#020202" :fixed="true" :bg="'transparent'">
  7. <template #left>
  8. <view class="left-title"></view>
  9. </template>
  10. </NavBar>
  11. <!-- 用户信息 -->
  12. <view class="user-info-section">
  13. <view class="avatar-wrapper">
  14. <image class="avatar" src="/static/image/public/avatar-default.png" mode="aspectFill" />
  15. <image class="avatar-badge" src="/static/image/public/badge-icon.png" />
  16. </view>
  17. <view class="user-details">
  18. <view class="name-row">
  19. <text class="user-name">赵建平</text>
  20. <text class="user-role">销售经理</text>
  21. </view>
  22. <text class="company-name">浙江舒博特网络科技有限公司</text>
  23. </view>
  24. <view class="qr-btn" @click="showCard">
  25. <image class="qr-icon" src="/static/image/public/qr-icon.png" />
  26. <text class="qr-text">我的名片</text>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 内容区域 -->
  31. <view class="content-section">
  32. <!-- 线索数据卡片 -->
  33. <view class="data-card">
  34. <view class="card-header">
  35. <text class="card-title">线索数据</text>
  36. </view>
  37. <view class="data-row">
  38. <view class="data-item">
  39. <text class="data-value">1,266</text>
  40. <text class="data-label">线索总数</text>
  41. </view>
  42. <view class="data-item highlight">
  43. <text class="data-value orange">65</text>
  44. <text class="data-label">本月新增</text>
  45. </view>
  46. <view class="data-item">
  47. <text class="data-value">126</text>
  48. <text class="data-label">我的线索</text>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 客户数据卡片 -->
  53. <view class="data-card">
  54. <view class="card-header">
  55. <text class="card-title">客户数据</text>
  56. <uni-icons type="eye" size="20" color="#999999"></uni-icons>
  57. </view>
  58. <view class="data-row">
  59. <view class="data-item">
  60. <text class="data-value">1,088</text>
  61. <text class="data-label">客户总数</text>
  62. </view>
  63. <view class="data-item highlight">
  64. <text class="data-value orange">123</text>
  65. <text class="data-label">本月新增</text>
  66. </view>
  67. <view class="data-item">
  68. <text class="data-value">235</text>
  69. <text class="data-label">我的客户</text>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 商机数据卡片 -->
  74. <view class="data-card">
  75. <view class="card-header">
  76. <text class="card-title">商机数据</text>
  77. <uni-icons type="eye" size="20" color="#999999"></uni-icons>
  78. </view>
  79. <view class="data-row">
  80. <view class="data-item">
  81. <text class="data-value">1,366</text>
  82. <text class="data-label">商机总数</text>
  83. </view>
  84. <view class="data-item highlight">
  85. <text class="data-value orange">63</text>
  86. <text class="data-label">本月新增</text>
  87. </view>
  88. <view class="data-item">
  89. <text class="data-value">86</text>
  90. <text class="data-label">我的商机</text>
  91. </view>
  92. </view>
  93. </view>
  94. <!-- 功能菜单卡片 -->
  95. <view class="menu-card">
  96. <view class="menu-item" @click="navigateTo('guide')">
  97. <view class="menu-icon-wrapper icon-blue">
  98. <uni-icons type="help" size="24" color="#4A90E2"></uni-icons>
  99. </view>
  100. <text class="menu-text">使用指南</text>
  101. <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
  102. </view>
  103. <view class="menu-divider"></view>
  104. <view class="menu-item" @click="navigateTo('service')">
  105. <view class="menu-icon-wrapper icon-blue">
  106. <uni-icons type="paperclip" size="24" color="#4A90E2"></uni-icons>
  107. </view>
  108. <text class="menu-text">联系客服</text>
  109. <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
  110. </view>
  111. <view class="menu-divider"></view>
  112. <view class="menu-item" @click="navigateTo('about')">
  113. <view class="menu-icon-wrapper icon-blue">
  114. <uni-icons type="gear" size="24" color="#4A90E2"></uni-icons>
  115. </view>
  116. <text class="menu-text">关于我们</text>
  117. <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
  118. </view>
  119. </view>
  120. <!-- 底部占位 -->
  121. <view class="bottom-spacer"></view>
  122. </view>
  123. </view>
  124. </template>
  125. <script setup>
  126. import {
  127. ref
  128. } from 'vue'
  129. import NavBar from '@/components/nav-bar/index.vue'
  130. const navigateTo = (page) => {
  131. uni.showToast({
  132. title: `功能开发中:${page}`,
  133. icon: 'none'
  134. })
  135. }
  136. // 显示名片
  137. const showCard = () => {
  138. uni.navigateTo({
  139. url: '/pages/mine/card'
  140. })
  141. }
  142. </script>
  143. <style lang="scss" scoped>
  144. .mine-container {
  145. min-height: 100vh;
  146. background: #f5f6f8;
  147. }
  148. .top-bg {
  149. width: 750rpx;
  150. height: 634rpx;
  151. position: fixed;
  152. top: 0;
  153. left: 0;
  154. z-index: 1;
  155. }
  156. // 顶部背景区域
  157. .header-bg {
  158. padding: 0 40rpx;
  159. padding-bottom: 200rpx;
  160. position: relative;
  161. overflow: hidden;
  162. // 背景光效
  163. .bg-light {
  164. position: absolute;
  165. border-radius: 50%;
  166. background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  167. }
  168. .bg-light-1 {
  169. top: -150rpx;
  170. right: -100rpx;
  171. width: 500rpx;
  172. height: 500rpx;
  173. }
  174. .bg-light-2 {
  175. top: 200rpx;
  176. left: -200rpx;
  177. width: 400rpx;
  178. height: 400rpx;
  179. }
  180. // 顶部状态栏
  181. .header-top {
  182. display: flex;
  183. justify-content: space-between;
  184. align-items: center;
  185. margin-bottom: 60rpx;
  186. position: relative;
  187. z-index: 10;
  188. .header-left {
  189. width: 100rpx;
  190. }
  191. .header-right {
  192. display: flex;
  193. align-items: center;
  194. .more-btn,
  195. .refresh-btn {
  196. width: 64rpx;
  197. height: 64rpx;
  198. border-radius: 50%;
  199. background: rgba(255, 255, 255, 0.15);
  200. display: flex;
  201. align-items: center;
  202. justify-content: center;
  203. margin-left: 16rpx;
  204. }
  205. }
  206. }
  207. // 用户信息区域
  208. .user-info-section {
  209. display: flex;
  210. align-items: center;
  211. position: relative;
  212. z-index: 10;
  213. .avatar-wrapper {
  214. position: relative;
  215. margin-right: 24rpx;
  216. .avatar {
  217. width: 128rpx;
  218. height: 128rpx;
  219. border-radius: 50%;
  220. border: 4rpx solid rgba(255, 255, 255, 0.4);
  221. background: #ffffff;
  222. }
  223. .avatar-badge {
  224. position: absolute;
  225. bottom: -18rpx;
  226. right: -18rpx;
  227. width: 64rpx;
  228. height: 64rpx;
  229. background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  230. border-radius: 50%;
  231. border: 3rpx solid #ffffff;
  232. }
  233. }
  234. .user-details {
  235. flex: 1;
  236. .name-row {
  237. display: flex;
  238. align-items: center;
  239. margin-bottom: 12rpx;
  240. .user-name {
  241. font-size: 36rpx;
  242. font-weight: 600;
  243. color: #ffffff;
  244. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  245. }
  246. .user-role {
  247. font-size: 22rpx;
  248. color: #ffffff;
  249. background: rgba(255, 255, 255, 0.25);
  250. padding: 4rpx 16rpx;
  251. border-radius: 20rpx;
  252. margin-left: 16rpx;
  253. font-weight: 500;
  254. }
  255. }
  256. .company-name {
  257. font-size: 24rpx;
  258. color: rgba(255, 255, 255, 0.85);
  259. display: block;
  260. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  261. }
  262. }
  263. .qr-btn {
  264. display: flex;
  265. flex-direction: column;
  266. align-items: center;
  267. justify-content: center;
  268. .qr-icon {
  269. width: 48rpx;
  270. height: 48rpx;
  271. }
  272. .qr-text {
  273. font-size: 20rpx;
  274. color: #ffffff;
  275. margin-top: 4rpx;
  276. }
  277. }
  278. }
  279. }
  280. // 内容区域
  281. .content-section {
  282. margin-top: -160rpx;
  283. position: relative;
  284. z-index: 20;
  285. padding: 0 40rpx;
  286. }
  287. // 数据卡片
  288. .data-card {
  289. background: #ffffff;
  290. margin-bottom: 24rpx;
  291. padding: 32rpx;
  292. border-radius: 24rpx;
  293. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
  294. .card-header {
  295. display: flex;
  296. justify-content: space-between;
  297. align-items: center;
  298. margin-bottom: 24rpx;
  299. }
  300. .card-title {
  301. font-size: 28rpx;
  302. font-weight: 600;
  303. color: #333333;
  304. }
  305. .data-row {
  306. display: flex;
  307. justify-content: space-between;
  308. .data-item {
  309. display: flex;
  310. flex-direction: column;
  311. align-items: center;
  312. flex: 1;
  313. position: relative;
  314. .data-value {
  315. font-size: 40rpx;
  316. font-weight: 600;
  317. color: #333333;
  318. margin-bottom: 12rpx;
  319. font-family: DIN, 'DIN Alternate', sans-serif;
  320. }
  321. .data-label {
  322. font-size: 24rpx;
  323. color: #999999;
  324. }
  325. &.highlight .data-value {
  326. color: #ff6b35;
  327. }
  328. &:not(:last-child)::after {
  329. content: '';
  330. position: absolute;
  331. right: 0;
  332. top: 50%;
  333. transform: translateY(-50%);
  334. width: 1rpx;
  335. height: 60rpx;
  336. background: #f0f0f0;
  337. }
  338. }
  339. }
  340. }
  341. // 功能菜单卡片
  342. .menu-card {
  343. background: #ffffff;
  344. padding: 0 32rpx;
  345. border-radius: 24rpx;
  346. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
  347. .menu-item {
  348. display: flex;
  349. align-items: center;
  350. padding: 32rpx 0;
  351. .menu-icon-wrapper {
  352. width: 64rpx;
  353. height: 64rpx;
  354. border-radius: 16rpx;
  355. display: flex;
  356. align-items: center;
  357. justify-content: center;
  358. margin-right: 20rpx;
  359. &.icon-blue {
  360. background: rgba(74, 144, 226, 0.1);
  361. }
  362. }
  363. .menu-text {
  364. flex: 1;
  365. font-size: 28rpx;
  366. color: #333333;
  367. }
  368. }
  369. .menu-divider {
  370. height: 1rpx;
  371. background: #f0f0f0;
  372. }
  373. }
  374. // 底部占位
  375. .bottom-spacer {
  376. height: 40rpx;
  377. }
  378. </style>