inheritor.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <FlexCol :innerStyle="{
  3. backgroundImage: 'url(https://xy.wenlvti.net/app_static/images/mine/TopBanner.png)',
  4. backgroundSize: '100% auto',
  5. backgroundRepeat: 'no-repeat',
  6. backgroundPosition: 'top center',
  7. minHeight: '100vh',
  8. }">
  9. <StatusBarSpace />
  10. <NavBar leftButton="back" />
  11. <FlexCol gap="gap.xl" padding="space.lg">
  12. <FlexCol center>
  13. <Text fontConfig="h2">闽南文化数字资源采集</Text>
  14. <FlexRow>
  15. <Text fontConfig="subText">技术支持:18649931391</Text>
  16. </FlexRow>
  17. </FlexCol>
  18. <FlexRow justify="space-between">
  19. <FlexRow align="center" gap="gap.md">
  20. <Avatar
  21. randomColor
  22. :src="authStore.userInfo?.avatar"
  23. defaultAvatar="https://mncdn.wenlvti.net/app_static/minnan/logo.png"
  24. />
  25. <Text fontConfig="h4" maxWidth="400rpx" :lines="1">{{ authStore.userInfo?.nickname }}</Text>
  26. </FlexRow>
  27. <FlexRow :flexShrink="0">
  28. <WxButton openType="contact">
  29. <Button type="text" icon="wechat">在线客服</Button>
  30. </WxButton>
  31. </FlexRow>
  32. </FlexRow>
  33. <CellGroup round>
  34. <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png" title="传承协议签名" showArrow touchable @click="navTo('assessment/argeement-sign')" />
  35. <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="自查评估表" showArrow touchable @click="navTo('assessment/evaluation-form')" />
  36. </CellGroup>
  37. <!-- <CellGroup round>
  38. <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png" title="非遗项目资料采集" showArrow touchable @click="navTo('forms/ich')" />
  39. <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png" title="传承人信息采集" showArrow touchable @click="navTo('forms/inheritor')" />
  40. <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png" title="传习所资料采集" showArrow touchable @click="navTo('forms/seminar')" />
  41. <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="传承人作品上传。" showArrow touchable @click="navTo('works')" />
  42. </CellGroup> -->
  43. <CellGroup round>
  44. <Cell title="返回闽南文化" showArrow touchable @click="back()" />
  45. <Cell title="修改密码" showArrow touchable @click="navTo('user/change-password')" />
  46. <Cell title="退出登录" showArrow touchable @click="onLogout" />
  47. </CellGroup>
  48. </FlexCol>
  49. <XBarSpace />
  50. </FlexCol>
  51. </template>
  52. <script setup lang="ts">
  53. import { useAuthStore } from '@/store/auth';
  54. import CellGroup from '@/components/basic/CellGroup.vue';
  55. import Cell from '@/components/basic/Cell.vue';
  56. import Text from '@/components/basic/Text.vue';
  57. import FlexCol from '@/components/layout/FlexCol.vue';
  58. import FlexRow from '@/components/layout/FlexRow.vue';
  59. import WxButton from '@/components/basic/WxButton.vue';
  60. import XBarSpace from '@/components/layout/space/XBarSpace.vue';
  61. import StatusBarSpace from '@/components/layout/space/StatusBarSpace.vue';
  62. import NavBar from '@/components/nav/NavBar.vue';
  63. import Avatar from '@/components/display/Avatar.vue';
  64. import Button from '@/components/basic/Button.vue';
  65. import { back, navTo } from '@/components/utils/PageAction';
  66. import { confirm } from '@/components/utils/DialogAction';
  67. const authStore = useAuthStore();
  68. function onLogout() {
  69. confirm({
  70. content: '您确定要退出登录吗?',
  71. }).then((res) => {
  72. if (res) {
  73. authStore.logout();
  74. back();
  75. }
  76. });
  77. }
  78. </script>