Index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <app-view class="navmenu-setting" :loading="false">
  3. <template #header>
  4. <app-navbar title="设置" />
  5. </template>
  6. <div class="g-navmenu" style="margin-top:.2rem">
  7. <CellGroup>
  8. <Cell is-link :to="{ name: 'user-password' }">
  9. <template #title>
  10. <app-iconfont icon="g-icon-password">修改密码</app-iconfont>
  11. </template>
  12. </Cell>
  13. <Cell is-link :to="{ name: 'user-cancel' }" v-if="showCancel">
  14. <template #title>
  15. <app-iconfont icon="g-icon-cancel">注销服务</app-iconfont>
  16. </template>
  17. </Cell>
  18. </CellGroup>
  19. </div>
  20. </app-view>
  21. </template>
  22. <script lang="ts" setup>
  23. import { Cell, CellGroup } from 'vant'
  24. import AppIconfont from '@/components/base/iconfont/index.vue'
  25. defineProps({
  26. showCancel: {
  27. type: Boolean,
  28. default: true
  29. }
  30. })
  31. </script>