setting.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="setting">
  3. <view class="header-bg"></view>
  4. <view class="block b1">
  5. <view class="row portrait">
  6. <image class="image" src="../../static/images/login/logo.png" mode="scaleToFill"></image>
  7. </view>
  8. <view class="row">
  9. <view class="label">
  10. 昵称
  11. </view>
  12. <view class="option">
  13. 修改
  14. </view>
  15. </view>
  16. </view>
  17. <view class="block b2">
  18. <view class="row">
  19. <view class="label">支付宝绑定</view>
  20. <view class="option">未绑定</view>
  21. </view>
  22. <view class="line"></view>
  23. <view class="row">
  24. <view>微信绑定</view>
  25. <view class="option">未绑定</view>
  26. </view>
  27. </view>
  28. <view class="block b3">
  29. <view class="row">
  30. <view class="label">修改手机号 <text class="info">18111897865</text></view>
  31. <view class="option">已绑定</view>
  32. </view>
  33. <view class="line"></view>
  34. <view class="row">
  35. <view class="label">修改密码</view>
  36. <view class="option"></view>
  37. </view>
  38. </view>
  39. <view class="block b4">
  40. <view class="row">
  41. <view class="label">清除缓存 <text class="info">18.20MB</text></view>
  42. <view class="option"><button class="clear-cache-btn" type="default">清除缓存</button></view>
  43. </view>
  44. </view>
  45. <view class="logout-block">
  46. <navigator url="/pages/user/login" open-type="navigate">
  47. <button class="logout-btn" type="default">退出登录</button>
  48. </navigator>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. }
  57. },
  58. methods: {
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .setting{
  64. overflow: hidden;
  65. position: relative;
  66. }
  67. .header-bg{
  68. background-color: $primary-color;
  69. height: 120upx;
  70. position: absolute;
  71. top: 0;
  72. width: 100%;
  73. z-index: 1;
  74. }
  75. .portrait{
  76. justify-content: center!important;
  77. margin-top:20upx;
  78. .image{
  79. width: 168upx;
  80. height: 168upx;
  81. border: 10upx solid $primary-color;
  82. border-radius: 100upx;
  83. }
  84. }
  85. .block{
  86. border-radius: 20upx;
  87. background-color: white;
  88. margin: 20upx;
  89. position: relative;
  90. overflow: hidden;
  91. z-index: 2;
  92. .row{
  93. display: flex;
  94. justify-content: space-between;
  95. padding: 20upx 40upx;
  96. align-items: center;
  97. font-size: 28upx;
  98. .info{
  99. color: #999999;
  100. font-size: 24upx;
  101. display: inline-block;
  102. margin-left: 20upx;
  103. }
  104. .option{
  105. color: #999999;
  106. }
  107. }
  108. }
  109. .logout-block{
  110. margin: 20upx;
  111. }
  112. .clear-cache-btn{
  113. line-height: normal;
  114. padding: 4upx 20upx;
  115. background: white;
  116. border: 2upx solid $primary-color;
  117. font-size: 24upx;
  118. border-radius: 50upx;
  119. color: $primary-color;
  120. }
  121. .logout-btn{
  122. background: $primary-color;
  123. color: white;
  124. font-size: 30upx;
  125. line-height: 80upx;
  126. }
  127. .line{
  128. border: 2upx solid #EEEEEE;
  129. transform: scale(0.9,0.5);
  130. }
  131. </style>