index.vue 26 KB

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