index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. <template>
  2. <view class="container">
  3. <!-- 顶部背景 -->
  4. <view class="nav-bg">
  5. <view class="bg-circle-1"></view>
  6. <view class="bg-circle-2"></view>
  7. </view>
  8. <!-- 头部用户信息 -->
  9. <view class="header-section">
  10. <view class="title-bar">个人中心</view>
  11. <view class="user-card" @click="navToProfile">
  12. <image class="avatar" :src="profile?.avatarUrl || '/static/touxiang.png'" mode="aspectFill"></image>
  13. <view class="info-content">
  14. <view class="name-row">
  15. <text class="name">{{ profile?.name || '未登录' }}</text>
  16. <view class="tags">
  17. <view class="tag green" v-if="profile?.status === '0'">接单中</view>
  18. <view class="tag green" v-else-if="profile?.status === '1'">休息中</view>
  19. <view class="tag" style="background:#eee;color:#999" v-else-if="profile?.status === '2'">已禁用
  20. </view>
  21. <view class="tag blue" v-if="profile?.workType === 'full_time'">全职</view>
  22. <image class="bike-icon" src="/static/icons/motorbike.svg"></image>
  23. </view>
  24. </view>
  25. <view class="detail-row">
  26. <image class="small-icon" src="/static/icons/location.svg"></image>
  27. <text>{{ profile?.stationName || profile?.cityName || '暂无站点' }}</text>
  28. <image class="arrow-icon-small" src="/static/icons/chevron_right_dark.svg"></image>
  29. </view>
  30. <view class="detail-row">
  31. <image class="small-icon" src="/static/icons/calendar.svg"></image>
  32. <text>已注册{{ profile?.registerDays || 0 }}天</text>
  33. </view>
  34. </view>
  35. <image class="settings-icon" src="/static/icons/settings.svg" @click.stop="navToSettings"></image>
  36. </view>
  37. <!-- 黑金权益卡 -->
  38. <view class="vip-card">
  39. <view class="vip-left">
  40. <image class="vip-icon" src="/static/icons/crown.svg"></image>
  41. <view class="vip-text">
  42. <text class="vip-title">{{ displayLevelName }}</text>
  43. <text class="vip-desc">完成更多订单即可升级</text>
  44. </view>
  45. </view>
  46. <view class="vip-btn" @click="navToLevel">
  47. <text>查看权益</text>
  48. <image class="arrow-icon-small" src="/static/icons/chevron_right_gold.svg"></image>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 统计面板 -->
  53. <view class="stats-panel">
  54. <view class="stat-item" @click="navToWallet">
  55. <view class="stat-header">
  56. <view class="red-bar"></view>
  57. <text class="label">我的钱包</text>
  58. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  59. </view>
  60. <view class="stat-value">
  61. <text class="num">{{ profile?.balance ? (profile.balance / 100).toFixed(2) : '0.00' }}</text>
  62. <text class="unit">元</text>
  63. </view>
  64. <text class="sub-text">账户余额</text>
  65. </view>
  66. <view class="divider"></view>
  67. <view class="stat-item" @click="navToOrderStats">
  68. <view class="stat-header">
  69. <view class="green-bar"></view>
  70. <text class="label">订单统计</text>
  71. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  72. </view>
  73. <view class="stat-value">
  74. <text class="num">{{ profile?.orderCount || 0 }}</text>
  75. <text class="unit">单</text>
  76. </view>
  77. <text class="sub-text">累计服务单量</text>
  78. </view>
  79. <view class="divider"></view>
  80. <view class="stat-item" @click="navToPoints">
  81. <view class="stat-header">
  82. <view class="orange-bar"></view>
  83. <text class="label">我的积分</text>
  84. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  85. </view>
  86. <view class="stat-value">
  87. <text class="num">{{ profile?.points || 0 }}</text>
  88. <text class="unit">分</text>
  89. </view>
  90. <text class="sub-text">可兑换权益</text>
  91. </view>
  92. </view>
  93. <!-- 菜单列表 -->
  94. <view class="menu-list">
  95. <view class="menu-item" @click="navToNotification">
  96. <image class="menu-icon" src="/static/icons/bell_linear.svg"></image>
  97. <text class="menu-text">消息中心</text>
  98. <view class="menu-right">
  99. <view class="red-dot" v-if="totalUnread > 0"></view>
  100. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  101. </view>
  102. </view>
  103. <view class="menu-item" @click="navToRewards">
  104. <image class="menu-icon" src="/static/icons/money_linear.svg"></image>
  105. <text class="menu-text">我的奖惩</text>
  106. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  107. </view>
  108. <view class="menu-item" @click="openServicePopup">
  109. <image class="menu-icon" src="/static/icons/headset_linear.svg"></image>
  110. <text class="menu-text">联系客服</text>
  111. <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
  112. </view>
  113. </view>
  114. <!-- 退出登录 -->
  115. <!-- 退出登录 -->
  116. <!-- <view class="logout-btn" @click="logout">退出登录</view>
  117. <view class="dev-tip">本APP部分功能开发当中,请只进行修改个人信息、修改设置、完成订单流程操作</view> -->
  118. <view class="logout-btn" @click="logout">退出登录</view>
  119. <!-- 联系客服弹窗 -->
  120. <view class="service-popup-mask" v-if="showServicePopup" @click="closeServicePopup">
  121. <view class="service-popup" @click.stop>
  122. <view class="service-header">
  123. <text class="service-title">联系客服</text>
  124. <image class="close-icon" src="/static/icons/close_gray.svg" @click="closeServicePopup"></image>
  125. </view>
  126. <view class="qr-section">
  127. <text class="qr-title">客服二维码</text>
  128. <image class="qr-img" :src="customerSetting.qrCodeUrl || '/static/logo.png'" @click="previewQRCode">
  129. </image>
  130. <text class="qr-desc">点击查看大图</text>
  131. </view>
  132. <view class="service-list">
  133. <view class="service-row" @click="openOnlineService">
  134. <image class="service-row-icon" src="/static/icons/headset_green.svg"></image>
  135. <view class="service-info">
  136. <text class="service-name">在线客服</text>
  137. <text class="service-desc">{{ customerSetting.wechatAccount || '企业微信专属客服在线解答' }}</text>
  138. </view>
  139. <view class="call-btn" @click="openOnlineService">
  140. <image class="phone-icon-small" src="/static/icons/headset_green.svg"></image>
  141. <text>企业微信</text>
  142. </view>
  143. </view>
  144. <view class="service-row">
  145. <image class="service-row-icon" src="/static/icons/phone_orange.svg"></image>
  146. <view class="service-info">
  147. <text class="service-name">客服电话</text>
  148. <text class="service-desc">{{ customerSetting.phoneNumber || '暂无电话' }}</text>
  149. </view>
  150. <view class="call-btn" @click="callServicePhone">
  151. <image class="phone-icon-small" src="/static/icons/phone_green.svg"></image>
  152. <text>拨打</text>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. <!-- 退出登录弹窗 -->
  159. <view class="logout-popup-mask" :class="{ 'show': showLogoutPopup }" @click="cancelLogout"
  160. @touchmove.stop.prevent>
  161. <view class="popup-modal" @click.stop>
  162. <text class="popup-title">退出登录</text>
  163. <text class="popup-desc">确定要退出当前账号吗?\n退出后需要重新登录才能使用完整功能。</text>
  164. <view class="popup-actions">
  165. <view class="popup-btn cancel" @click="cancelLogout">取消</view>
  166. <view class="popup-btn confirm" @click="confirmLogout">确定</view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. <custom-tabbar currentPath="pages/mine/index"></custom-tabbar>
  172. </template>
  173. <script>
  174. import { logout as logoutApi } from '@/api/auth'
  175. import { getMyProfile } from '@/api/fulfiller/fulfiller'
  176. import { listAllLevelConfigs } from '@/api/fulfiller/levelConfig'
  177. import { getCustomerServiceSetting } from '@/api/system/customerServiceSetting'
  178. import { clearAuth, isLoggedIn } from '@/utils/auth'
  179. import { listMyNotice } from '@/api/system/notice'
  180. import customTabbar from '@/components/custom-tabbar/index.vue'
  181. export default {
  182. components: {
  183. customTabbar
  184. },
  185. data() {
  186. return {
  187. showServicePopup: false,
  188. showLogoutPopup: false,
  189. profile: null,
  190. profileLoading: false,
  191. levelConfigs: [], // 等级配置列表
  192. customerSetting: {
  193. wechatAccount: '',
  194. phoneNumber: '400-123-4567',
  195. qrCodeUrl: '/static/logo.png',
  196. enterpriseWechatLink: '',
  197. startServiceTime: '',
  198. endServiceTime: ''
  199. },
  200. totalUnread: 0
  201. }
  202. },
  203. computed: {
  204. // 根据 profile.level 匹配对应的等级名称
  205. displayLevelName() {
  206. if (!this.profile || !this.levelConfigs.length) return '普通履约者'
  207. const config = this.levelConfigs.find(c => c.lvNo === this.profile.level)
  208. return config ? config.name : (this.profile.levelName || '普通履约者')
  209. }
  210. },
  211. onShow() {
  212. uni.hideTabBar()
  213. if (isLoggedIn()) {
  214. this.loadProfile()
  215. this.loadLevelConfigs()
  216. this.fetchCustomerServiceSetting()
  217. this.fetchUnreadCount()
  218. }
  219. },
  220. methods: {
  221. async fetchUnreadCount() {
  222. try {
  223. const res = await listMyNotice({
  224. readFlag: false,
  225. pageNum: 1,
  226. pageSize: 1
  227. });
  228. this.totalUnread = Number(res.total) || 0;
  229. } catch (err) {
  230. console.error('获取总未读数失败:', err);
  231. }
  232. },
  233. async loadProfile() {
  234. if (this.profileLoading) return
  235. this.profileLoading = true
  236. try {
  237. const res = await getMyProfile()
  238. this.profile = res.data || null
  239. } catch (err) {
  240. console.error('获取个人信息失败:', err)
  241. } finally {
  242. this.profileLoading = false
  243. }
  244. },
  245. async loadLevelConfigs() {
  246. try {
  247. const res = await listAllLevelConfigs()
  248. this.levelConfigs = res.data || []
  249. } catch (err) {
  250. console.error('加载等级配置失败:', err)
  251. }
  252. },
  253. async fetchCustomerServiceSetting() {
  254. try {
  255. const res = await getCustomerServiceSetting(1)
  256. if (res.code === 200 && res.data) {
  257. this.customerSetting = { ...this.customerSetting, ...res.data }
  258. }
  259. } catch (err) {
  260. console.error('获取客服配置失败:', err)
  261. }
  262. },
  263. navToSettings() {
  264. uni.navigateTo({
  265. url: '/pages/mine/settings/index'
  266. });
  267. },
  268. navToProfile() {
  269. uni.navigateTo({
  270. url: '/pages/mine/settings/profile/index'
  271. });
  272. },
  273. navToLevel() {
  274. uni.navigateTo({
  275. url: '/pages/mine/level/index'
  276. });
  277. },
  278. navToNotification() {
  279. uni.navigateTo({
  280. url: '/pages/mine/message/index'
  281. });
  282. },
  283. navToWallet() {
  284. uni.navigateTo({
  285. url: '/pages/mine/wallet/index'
  286. });
  287. },
  288. navToPoints() {
  289. uni.navigateTo({
  290. url: '/pages/mine/points/index'
  291. });
  292. },
  293. navToOrderStats() {
  294. uni.navigateTo({
  295. url: '/pages/mine/order-stats/index'
  296. });
  297. },
  298. navToRewards() {
  299. uni.navigateTo({
  300. url: '/pages/mine/rewards/index'
  301. });
  302. },
  303. openServicePopup() {
  304. this.showServicePopup = true;
  305. },
  306. closeServicePopup() {
  307. this.showServicePopup = false;
  308. },
  309. previewQRCode() {
  310. if (!this.customerSetting.qrCodeUrl) return;
  311. uni.previewImage({
  312. urls: [this.customerSetting.qrCodeUrl]
  313. });
  314. },
  315. openOnlineService() {
  316. // 如果有企业微信链接,则打开
  317. if (this.customerSetting.enterpriseWechatLink) {
  318. // #ifdef H5
  319. window.location.href = this.customerSetting.enterpriseWechatLink;
  320. // #endif
  321. // #ifndef H5
  322. uni.setClipboardData({
  323. data: this.customerSetting.wechatAccount || this.customerSetting.enterpriseWechatLink,
  324. success: () => {
  325. uni.showToast({ title: '链接已复制,请在浏览器或微信打开', icon: 'none' });
  326. }
  327. });
  328. // #endif
  329. } else {
  330. uni.showToast({
  331. title: '在线客服暂未配置',
  332. icon: 'none'
  333. });
  334. }
  335. },
  336. callServicePhone() {
  337. if (!this.customerSetting.phoneNumber) {
  338. uni.showToast({ title: '暂无联系电话', icon: 'none' });
  339. return;
  340. }
  341. uni.makePhoneCall({
  342. phoneNumber: this.customerSetting.phoneNumber
  343. });
  344. },
  345. logout() {
  346. this.showLogoutPopup = true;
  347. },
  348. cancelLogout() {
  349. this.showLogoutPopup = false;
  350. },
  351. async confirmLogout() {
  352. this.showLogoutPopup = false;
  353. try {
  354. await logoutApi()
  355. } catch (e) {
  356. // 即使后端退出失败,也清除本地登录态
  357. }
  358. clearAuth()
  359. uni.reLaunch({
  360. url: '/pages/login/index'
  361. });
  362. }
  363. }
  364. }
  365. </script>
  366. <style>
  367. /* 页面背景 */
  368. page {
  369. background-color: #F8F8F8;
  370. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  371. }
  372. .container {
  373. padding-bottom: 30rpx;
  374. position: relative;
  375. overflow-x: hidden;
  376. }
  377. /* 顶部背景 */
  378. .nav-bg {
  379. position: absolute;
  380. top: 0;
  381. left: 0;
  382. width: 100%;
  383. /* 增加高度以覆盖顶部,确保上移后背景仍然充足 */
  384. height: 550rpx;
  385. /* 调整渐变色,使其更接近设计图的暖色调 */
  386. background: linear-gradient(180deg, #FFE0B2 0%, #F8F8F8 100%);
  387. z-index: 1;
  388. overflow: hidden;
  389. border-bottom-left-radius: 60rpx;
  390. border-bottom-right-radius: 60rpx;
  391. }
  392. /* 装饰性圆球 - 加深颜色 */
  393. .bg-circle-1 {
  394. position: absolute;
  395. top: -60rpx;
  396. right: -60rpx;
  397. width: 320rpx;
  398. height: 320rpx;
  399. /* 加深颜色 */
  400. background: radial-gradient(circle, rgba(255, 167, 38, 0.4) 0%, rgba(255, 167, 38, 0) 70%);
  401. border-radius: 50%;
  402. }
  403. .bg-circle-2 {
  404. position: absolute;
  405. top: 80rpx;
  406. left: -100rpx;
  407. width: 420rpx;
  408. height: 420rpx;
  409. /* 加深颜色 */
  410. background: radial-gradient(circle, rgba(255, 183, 77, 0.4) 0%, rgba(255, 183, 77, 0) 70%);
  411. border-radius: 50%;
  412. }
  413. /* 头部区域 */
  414. .header-section {
  415. position: relative;
  416. z-index: 2;
  417. padding: 120rpx 30rpx 0;
  418. }
  419. .title-bar {
  420. text-align: center;
  421. font-size: 32rpx;
  422. /* 16pt = 32rpx, consistent with name */
  423. font-weight: 500;
  424. color: #333;
  425. margin-bottom: 30rpx;
  426. }
  427. .user-card {
  428. display: flex;
  429. align-items: flex-start;
  430. margin-bottom: 30rpx;
  431. position: relative;
  432. }
  433. .avatar {
  434. width: 90rpx;
  435. height: 90rpx;
  436. border-radius: 50%;
  437. margin-right: 20rpx;
  438. border: 3rpx solid #fff;
  439. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05);
  440. }
  441. .info-content {
  442. flex: 1;
  443. padding-top: 5rpx;
  444. }
  445. .name-row {
  446. display: flex;
  447. align-items: center;
  448. margin-bottom: 12rpx;
  449. }
  450. .name {
  451. /* 16号字体 = 32rpx */
  452. font-size: 32rpx;
  453. font-weight: bold;
  454. color: #1A1A1A;
  455. margin-right: 12rpx;
  456. }
  457. .tags {
  458. display: flex;
  459. align-items: center;
  460. }
  461. .tag {
  462. font-size: 18rpx;
  463. padding: 2rpx 6rpx;
  464. border-radius: 4rpx;
  465. margin-right: 8rpx;
  466. line-height: 1.2;
  467. }
  468. .tag.green {
  469. color: #4CAF50;
  470. background-color: #E8F5E9;
  471. border: 1px solid #C8E6C9;
  472. }
  473. .tag.blue {
  474. color: #2196F3;
  475. background-color: #E3F2FD;
  476. border: 1px solid #BBDEFB;
  477. }
  478. .bike-icon {
  479. width: 28rpx;
  480. height: 28rpx;
  481. background-color: #FFF3E0;
  482. border-radius: 4rpx;
  483. padding: 2rpx;
  484. }
  485. .detail-row {
  486. display: flex;
  487. align-items: center;
  488. /* 12号字体 = 24rpx */
  489. font-size: 24rpx;
  490. color: #666;
  491. margin-bottom: 8rpx;
  492. }
  493. .small-icon {
  494. width: 24rpx;
  495. /* Slightly increase icon to match font */
  496. height: 24rpx;
  497. margin-right: 8rpx;
  498. }
  499. .settings-icon {
  500. width: 36rpx;
  501. height: 36rpx;
  502. position: absolute;
  503. top: 0;
  504. right: 0;
  505. }
  506. /* VIP 卡片 - 独立卡片样式 */
  507. .vip-card {
  508. border-radius: 20rpx;
  509. padding: 20rpx 30rpx;
  510. display: flex;
  511. justify-content: space-between;
  512. align-items: center;
  513. color: #FDD835;
  514. background: linear-gradient(90deg, #1f1f1f 0%, #141414 100%);
  515. box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.15);
  516. margin-bottom: 30rpx;
  517. position: relative;
  518. }
  519. .vip-left {
  520. display: flex;
  521. align-items: center;
  522. }
  523. .vip-icon {
  524. width: 40rpx;
  525. height: 40rpx;
  526. margin-right: 16rpx;
  527. }
  528. .vip-text {
  529. display: flex;
  530. flex-direction: column;
  531. }
  532. .vip-title {
  533. font-size: 26rpx;
  534. font-weight: bold;
  535. color: #FFE082;
  536. margin-bottom: 4rpx;
  537. }
  538. .vip-desc {
  539. font-size: 16rpx;
  540. color: #9E9E9E;
  541. }
  542. .vip-btn {
  543. font-size: 20rpx;
  544. color: #FFE082;
  545. display: flex;
  546. /* Flex layout to align text and icon */
  547. align-items: center;
  548. }
  549. /* 统计面板 */
  550. .stats-panel {
  551. background-color: #fff;
  552. border-radius: 20rpx;
  553. padding: 30rpx 0;
  554. margin: 0 30rpx 30rpx;
  555. display: flex;
  556. justify-content: space-between;
  557. align-items: center;
  558. box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
  559. position: relative;
  560. z-index: 3;
  561. }
  562. .stat-item {
  563. flex: 1;
  564. display: flex;
  565. flex-direction: column;
  566. padding-left: 30rpx;
  567. }
  568. .stat-header {
  569. display: flex;
  570. align-items: center;
  571. margin-bottom: 12rpx;
  572. /* 12号字体 = 24rpx */
  573. font-size: 24rpx;
  574. color: #333;
  575. font-weight: normal;
  576. }
  577. .arrow-icon {
  578. width: 20rpx;
  579. height: 20rpx;
  580. margin-left: 6rpx;
  581. opacity: 0.6;
  582. }
  583. .arrow-icon-small {
  584. width: 18rpx;
  585. height: 18rpx;
  586. margin-left: 4rpx;
  587. opacity: 0.8;
  588. }
  589. .red-bar,
  590. .green-bar,
  591. .orange-bar {
  592. width: 6rpx;
  593. height: 18rpx;
  594. margin-right: 10rpx;
  595. border-radius: 3rpx;
  596. }
  597. .red-bar {
  598. background-color: #FF5252;
  599. }
  600. .green-bar {
  601. background-color: #4CAF50;
  602. }
  603. .orange-bar {
  604. background-color: #FF9800;
  605. }
  606. .stat-value {
  607. margin-bottom: 6rpx;
  608. display: flex;
  609. align-items: baseline;
  610. }
  611. .num {
  612. /* 16号字体 = 32rpx */
  613. font-size: 32rpx;
  614. font-weight: bold;
  615. color: #333;
  616. margin-right: 6rpx;
  617. line-height: 1;
  618. }
  619. .unit {
  620. font-size: 20rpx;
  621. color: #666;
  622. }
  623. .sub-text {
  624. font-size: 18rpx;
  625. color: #999;
  626. }
  627. .divider {
  628. width: 1px;
  629. height: 50rpx;
  630. background-color: #E0E0E0;
  631. }
  632. /* 菜单列表 */
  633. .menu-list {
  634. background-color: #fff;
  635. border-radius: 20rpx;
  636. margin: 0 30rpx 30rpx;
  637. padding: 0 30rpx;
  638. box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
  639. }
  640. .menu-item {
  641. display: flex;
  642. align-items: center;
  643. padding: 32rpx 0;
  644. border-bottom: 1px solid #F5F5F5;
  645. }
  646. .menu-item:last-child {
  647. border-bottom: none;
  648. }
  649. .menu-icon {
  650. width: 40rpx;
  651. height: 40rpx;
  652. margin-right: 20rpx;
  653. }
  654. .menu-text {
  655. flex: 1;
  656. /* 14号字体 = 28rpx */
  657. font-size: 28rpx;
  658. color: #333;
  659. }
  660. .menu-right {
  661. display: flex;
  662. align-items: center;
  663. }
  664. /* 加大菜单列表的箭头 */
  665. .menu-item .arrow-icon {
  666. width: 28rpx;
  667. height: 28rpx;
  668. opacity: 0.5;
  669. }
  670. .red-dot {
  671. width: 10rpx;
  672. height: 10rpx;
  673. background-color: #FF5252;
  674. border-radius: 50%;
  675. margin-right: 12rpx;
  676. }
  677. /* 退出按钮 */
  678. .logout-btn {
  679. background-color: #fff;
  680. margin: 0 30rpx;
  681. height: 88rpx;
  682. line-height: 88rpx;
  683. text-align: center;
  684. border-radius: 20rpx;
  685. color: #FF5252;
  686. font-size: 28rpx;
  687. font-weight: 500;
  688. box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
  689. }
  690. /* 开发提示文字 */
  691. .dev-tip {
  692. margin: 40rpx 60rpx;
  693. font-size: 24rpx;
  694. color: #999;
  695. text-align: center;
  696. line-height: 1.6;
  697. }
  698. /* 联系客服弹窗样式 */
  699. .service-popup-mask {
  700. position: fixed;
  701. top: 0;
  702. left: 0;
  703. right: 0;
  704. bottom: 0;
  705. background-color: rgba(0, 0, 0, 0.5);
  706. z-index: 999;
  707. display: flex;
  708. justify-content: center;
  709. align-items: center;
  710. }
  711. .service-popup {
  712. width: 600rpx;
  713. background-color: #fff;
  714. border-radius: 16rpx;
  715. padding: 0;
  716. box-sizing: border-box;
  717. overflow: hidden;
  718. }
  719. .service-header {
  720. display: flex;
  721. justify-content: space-between;
  722. align-items: center;
  723. padding: 30rpx;
  724. border-bottom: 1rpx solid #f5f5f5;
  725. }
  726. .service-title {
  727. /* 14号字体 = 28rpx,不加粗 */
  728. font-size: 28rpx;
  729. font-weight: normal;
  730. color: #333;
  731. }
  732. .close-icon {
  733. width: 28rpx;
  734. height: 28rpx;
  735. opacity: 0.6;
  736. }
  737. .qr-section {
  738. display: flex;
  739. flex-direction: column;
  740. align-items: center;
  741. padding: 40rpx 0;
  742. background-color: #fff;
  743. }
  744. .qr-title {
  745. font-size: 28rpx;
  746. color: #333;
  747. margin-bottom: 30rpx;
  748. font-weight: 500;
  749. }
  750. .qr-img {
  751. width: 200rpx;
  752. height: 200rpx;
  753. margin-bottom: 20rpx;
  754. border-radius: 12rpx;
  755. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  756. }
  757. .qr-desc {
  758. /* 12号字体 = 24rpx */
  759. font-size: 24rpx;
  760. color: #999;
  761. }
  762. .service-list {
  763. padding: 0 30rpx;
  764. padding-bottom: 30rpx;
  765. }
  766. .service-row {
  767. display: flex;
  768. align-items: center;
  769. padding: 30rpx 0;
  770. border-top: 1rpx solid #f5f5f5;
  771. }
  772. .service-row:last-child {
  773. border-bottom: none;
  774. }
  775. .service-row-icon {
  776. width: 56rpx;
  777. height: 56rpx;
  778. margin-right: 24rpx;
  779. }
  780. .service-info {
  781. flex: 1;
  782. display: flex;
  783. flex-direction: column;
  784. }
  785. .service-name {
  786. /* 13号字体 = 26rpx */
  787. font-size: 26rpx;
  788. color: #333;
  789. margin-bottom: 4rpx;
  790. font-weight: 500;
  791. }
  792. .service-desc {
  793. /* 12号字体 = 24rpx */
  794. font-size: 24rpx;
  795. color: #999;
  796. }
  797. .call-btn {
  798. display: flex;
  799. align-items: center;
  800. justify-content: center;
  801. background-color: #E8F5E9;
  802. padding: 8rpx 24rpx;
  803. border-radius: 30rpx;
  804. height: 56rpx;
  805. box-sizing: border-box;
  806. }
  807. .call-btn text {
  808. font-size: 24rpx;
  809. color: #4CAF50;
  810. margin-left: 8rpx;
  811. font-weight: 500;
  812. }
  813. .phone-icon-small {
  814. width: 24rpx;
  815. height: 24rpx;
  816. }
  817. /* 退出登录弹窗样式 */
  818. .logout-popup-mask {
  819. position: fixed;
  820. top: 0;
  821. left: 0;
  822. right: 0;
  823. bottom: 0;
  824. background-color: rgba(0, 0, 0, 0.5);
  825. z-index: 999;
  826. display: flex;
  827. align-items: center;
  828. justify-content: center;
  829. opacity: 0;
  830. pointer-events: none;
  831. transition: opacity 0.3s;
  832. }
  833. .logout-popup-mask.show {
  834. opacity: 1;
  835. pointer-events: auto;
  836. }
  837. .popup-modal {
  838. width: 520rpx;
  839. background-color: #fff;
  840. border-radius: 30rpx;
  841. padding: 60rpx 40rpx;
  842. display: flex;
  843. flex-direction: column;
  844. align-items: center;
  845. box-shadow: 0 10rpx 40rpx rgba(0, 0, 0, 0.2);
  846. transform: scale(0.9);
  847. transition: transform 0.3s;
  848. }
  849. .logout-popup-mask.show .popup-modal {
  850. transform: scale(1);
  851. }
  852. .popup-icon-wrapper {
  853. width: 120rpx;
  854. height: 120rpx;
  855. background-color: #FFF3E0;
  856. border-radius: 50%;
  857. display: flex;
  858. align-items: center;
  859. justify-content: center;
  860. margin-bottom: 30rpx;
  861. }
  862. .popup-icon-large {
  863. width: 60rpx;
  864. height: 60rpx;
  865. }
  866. .popup-title {
  867. font-size: 34rpx;
  868. font-weight: bold;
  869. color: #333;
  870. margin-bottom: 20rpx;
  871. }
  872. .popup-desc {
  873. font-size: 28rpx;
  874. color: #666;
  875. text-align: center;
  876. line-height: 1.5;
  877. margin-bottom: 50rpx;
  878. }
  879. .popup-actions {
  880. display: flex;
  881. width: 100%;
  882. justify-content: space-between;
  883. }
  884. .popup-btn {
  885. flex: 1;
  886. height: 80rpx;
  887. line-height: 80rpx;
  888. text-align: center;
  889. font-size: 28rpx;
  890. border-radius: 40rpx;
  891. margin: 0 15rpx;
  892. }
  893. .popup-btn.cancel {
  894. background-color: #F5F5F5;
  895. color: #666;
  896. }
  897. .popup-btn.confirm {
  898. background-color: #FF9800;
  899. color: #fff;
  900. box-shadow: 0 4rpx 12rpx rgba(255, 152, 0, 0.3);
  901. }
  902. </style>