index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="setting-container" :style="{height: `${windowHeight}px`}">
  3. <view class="menu-list">
  4. <view class="list-cell list-cell-arrow" @click="handleToPwd">
  5. <view class="menu-item-box">
  6. <view class="iconfont icon-password menu-icon"></view>
  7. <view>修改密码</view>
  8. </view>
  9. </view>
  10. <view class="list-cell list-cell-arrow" @click="handleToUpgrade">
  11. <view class="menu-item-box">
  12. <view class="iconfont icon-refresh menu-icon"></view>
  13. <view>检查更新</view>
  14. </view>
  15. </view>
  16. <view class="list-cell list-cell-arrow" @click="handleCleanTmp">
  17. <view class="menu-item-box">
  18. <view class="iconfont icon-clean menu-icon"></view>
  19. <view>清理缓存</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="cu-list menu">
  24. <view class="cu-item item-box">
  25. <view class="content text-center" @click="handleLogout">
  26. <text class="text-black">退出登录</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. windowHeight: uni.getSystemInfoSync().windowHeight
  37. }
  38. },
  39. methods: {
  40. handleToPwd() {
  41. this.$tab.navigateTo('/pages/mine/pwd/index')
  42. },
  43. handleToUpgrade() {
  44. this.$modal.showToast('模块建设中~')
  45. },
  46. handleCleanTmp() {
  47. this.$modal.showToast('模块建设中~')
  48. },
  49. handleLogout() {
  50. this.$modal.confirm('确定注销并退出系统吗?').then(() => {
  51. this.$store.dispatch('LogOut').then(() => {
  52. this.$tab.reLaunch('/pages/index')
  53. })
  54. })
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .page {
  61. background-color: #f8f8f8;
  62. }
  63. .item-box {
  64. background-color: #FFFFFF;
  65. margin: 30rpx;
  66. display: flex;
  67. flex-direction: row;
  68. justify-content: center;
  69. align-items: center;
  70. padding: 10rpx;
  71. border-radius: 8rpx;
  72. color: #303133;
  73. font-size: 32rpx;
  74. }
  75. </style>