index.vue 26 KB

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