index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="setting-container" :style="{ height: `${windowHeight}px` }">
  3. <view class="menu-list mlr0">
  4. <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleToEditInfo()">
  5. <view class="menu-item">
  6. <view class="iconfont oaIcon-user menu-item-icon"></view>
  7. <view>我的信息</view>
  8. </view>
  9. </view>
  10. </view>
  11. <view class="menu-list mt0 mlr0">
  12. <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleAbout()">
  13. <view class="menu-item">
  14. <view class="iconfont oaIcon-aixin menu-item-icon"></view>
  15. <view>关于我们</view>
  16. </view>
  17. </view>
  18. <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleHelp()">
  19. <view class="menu-item">
  20. <view class="iconfont oaIcon-Help menu-item-icon"></view>
  21. <view>常见问题</view>
  22. </view>
  23. </view>
  24. <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleCleanTmp()">
  25. <view class="menu-item">
  26. <view class="iconfont oaIcon-qinglihuancun menu-item-icon"></view>
  27. <view>清理缓存</view>
  28. <view class="mr15 ml-auto text-right">{{ proxy.$settingStore.currentSize }}</view>
  29. </view>
  30. </view>
  31. <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleToUpgrade()">
  32. <view class="menu-item">
  33. <view class="iconfont oaIcon-jianchagengxin menu-item-icon"></view>
  34. <view>检查更新</view>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- <view class="menu-list" @click="proxy.$settingStore.handleLogout">
  39. <view class="list-cell">
  40. <view class="menu-item">
  41. <view class="button">退 出 登 录</view>
  42. </view>
  43. </view>
  44. </view> -->
  45. </view>
  46. </template>
  47. <script setup>
  48. /*----------------------------------依赖引入-----------------------------------*/
  49. import { onLoad, onShow, onHide, onLaunch, onNavigationBarButtonTap } from "@dcloudio/uni-app";
  50. import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
  51. /*----------------------------------接口引入-----------------------------------*/
  52. /*----------------------------------组件引入-----------------------------------*/
  53. /*----------------------------------store引入-----------------------------------*/
  54. import { useStores, commonStores } from "@/store/modules/index";
  55. /*----------------------------------公共方法引入-----------------------------------*/
  56. /*----------------------------------公共变量-----------------------------------*/
  57. const { proxy } = getCurrentInstance();
  58. const useStore = useStores();
  59. /*----------------------------------变量声明-----------------------------------*/
  60. const state = reactive({
  61. windowHeight: computed(() => {
  62. return uni.getSystemInfoSync().windowHeight - 50;
  63. }),
  64. });
  65. const { windowHeight } = toRefs(data);
  66. onLoad((options) => {});
  67. onShow(() => {
  68. //调用系统主题颜色
  69. proxy.$settingStore.systemThemeColor([1]);
  70. });
  71. </script>