set.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="page">
  3. <uni-Cell :celllist="celllist" :leftStyle="{fontSize:'30rpx'}">
  4. <template #customContent="{ item }">
  5. <view v-if="item.title=='第三方账号'" class=" customContent dis a-c">
  6. <image class="mr-1" src="/static/icon/my/weChat.png" mode=""></image>
  7. <image src="/static/icon/my/alipay.png" mode=""></image>
  8. </view>
  9. <view class="" v-if="item.title=='实名认证'">
  10. <view class="authtag">
  11. 未认证
  12. </view>
  13. </view>
  14. </template>
  15. </uni-Cell>
  16. <uni-Cell :celllist="celllist1" class="mt-2" :leftStyle="{fontSize:'30rpx'}">
  17. <template #customContent="{ item }">
  18. <view v-if="item.title=='新版本'" class="dis a-c">
  19. <view class="newtag">
  20. New
  21. </view>
  22. <text style="font-size: 28rpx;color: #666;">version</text>
  23. </view>
  24. </template>
  25. </uni-Cell>
  26. <view class="logout dis a-c j-c" @click="logout">
  27. <text>退出</text>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import {
  33. mapState,
  34. mapMutations
  35. } from "vuex"
  36. export default {
  37. data() {
  38. return {
  39. celllist: [{
  40. title: "账号与安全",
  41. useSlot: false, //是否插槽,
  42. url: "/pages/set/accountSet",
  43. clickType: 'navigate',
  44. },
  45. {
  46. title: "实名认证",
  47. useSlot: true,
  48. url: "/pages/quote/quoteInfo",
  49. clickType: 'auth',
  50. }, {
  51. title: "第三方账号",
  52. useSlot: true,
  53. url: "/pages/set/linkedAccountSet",
  54. clickType: 'navigate',
  55. }
  56. ],
  57. celllist1: [{
  58. title: "用户协议",
  59. useSlot: false, //是否插槽,
  60. url: "/pages/set/set",
  61. clickType: 'navigate',
  62. },
  63. {
  64. title: "隐私政策",
  65. useSlot: true,
  66. url: "/pages/quote/quoteInfo",
  67. clickType: 'navigate',
  68. }, {
  69. title: "清除缓存",
  70. useSlot: false,
  71. clickType: 'clear',
  72. }
  73. ],
  74. }
  75. },
  76. onShow() {
  77. },
  78. onLoad() {
  79. },
  80. computed: {},
  81. methods: {
  82. ...mapMutations(['emptyUserInfo']),
  83. logout() {
  84. this.emptyUserInfo();
  85. setTimeout(() => {
  86. uni.reLaunch({
  87. url: "/pages/login/login"
  88. })
  89. }, 1500);
  90. },
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .page {
  96. background-color: #F8F8F8;
  97. height: 100vh;
  98. }
  99. .customContent {
  100. image {
  101. width: 46rpx;
  102. height: 46rpx;
  103. }
  104. }
  105. .authtag {
  106. padding: 2rpx 8rpx;
  107. box-sizing: border-box;
  108. background: linear-gradient(270deg, #FDE935 0%, #F1FF91 100%);
  109. border-radius: 4rpx 4rpx 4rpx 4rpx;
  110. font-size: 22rpx;
  111. color: #333;
  112. }
  113. .logout {
  114. width: 90%;
  115. height: 88rpx;
  116. margin: 80rpx auto 0;
  117. background: rgba(253, 233, 53, 0.2);
  118. border-radius: 45rpx 45rpx 45rpx 45rpx;
  119. border: 1rpx solid #FDE935;
  120. font-size: 36rpx;
  121. color: #1F1F1F;
  122. }
  123. </style>