index.vue 25 KB

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