裂变星小程序-25.03.04
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.2 KiB

  1. <template>
  2. <view class="page">
  3. <navbar title="设置" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="content">
  5. <!-- todo -->
  6. <view class="card flex operate" @click="$refs.popup.open('getPrivacyPolicy')">
  7. <text>隐私政策</text>
  8. <uv-icon name="arrow-right" color="#000000" size="28rpx"></uv-icon>
  9. </view>
  10. <!-- todo: check is logined -->
  11. <button plain class="btn-logout" @click="onLogout">退出登录</button>
  12. </view>
  13. <configPopup ref="popup"></configPopup>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. }
  21. },
  22. methods: {
  23. onLogout() {
  24. this.$store.commit('logout')
  25. }
  26. },
  27. }
  28. </script>
  29. <style scoped lang="scss">
  30. .page {
  31. background-color: $uni-bg-color;
  32. position: relative;
  33. width: 100vw;
  34. height: 100vh;
  35. }
  36. .content {
  37. padding: 20rpx;
  38. }
  39. .operate {
  40. padding: 28rpx 22rpx 28rpx 20rpx;
  41. justify-content: space-between;
  42. color: #1B1B1B;
  43. font-weight: 500;
  44. font-size: 32rpx;
  45. }
  46. .btn-logout {
  47. width: calc(100% - 40rpx);
  48. height: 90rpx;
  49. background-color: $uni-bg-color-highlight;
  50. color: $uni-text-color-highlight;
  51. font-size: 36rpx;
  52. border-radius: 45rpx;
  53. position: absolute;
  54. left: 20rpx;
  55. bottom: 159rpx;
  56. }
  57. </style>