setting.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <button class="logout-btn" type="default">退出登录</button>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. }
  55. },
  56. methods: {
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .setting{
  62. overflow: hidden;
  63. position: relative;
  64. }
  65. .header-bg{
  66. background-color: $primary-color;
  67. height: 120upx;
  68. position: absolute;
  69. top: 0;
  70. width: 100%;
  71. z-index: 1;
  72. }
  73. .portrait{
  74. justify-content: center!important;
  75. margin-top:20upx;
  76. .image{
  77. width: 168upx;
  78. height: 168upx;
  79. border: 10upx solid $primary-color;
  80. border-radius: 100upx;
  81. }
  82. }
  83. .block{
  84. border-radius: 20upx;
  85. background-color: white;
  86. margin: 20upx;
  87. position: relative;
  88. overflow: hidden;
  89. z-index: 2;
  90. .row{
  91. display: flex;
  92. justify-content: space-between;
  93. padding: 20upx 40upx;
  94. align-items: center;
  95. font-size: 28upx;
  96. .info{
  97. color: #999999;
  98. font-size: 24upx;
  99. display: inline-block;
  100. margin-left: 20upx;
  101. }
  102. .option{
  103. color: #999999;
  104. }
  105. }
  106. }
  107. .logout-block{
  108. margin: 20upx;
  109. }
  110. .clear-cache-btn{
  111. line-height: normal;
  112. padding: 4upx 20upx;
  113. background: white;
  114. border: 2upx solid $primary-color;
  115. font-size: 24upx;
  116. border-radius: 50upx;
  117. color: $primary-color;
  118. }
  119. .logout-btn{
  120. background: $primary-color;
  121. color: white;
  122. font-size: 30upx;
  123. line-height: 80upx;
  124. }
  125. .line{
  126. border: 2upx solid #EEEEEE;
  127. transform: scale(0.9,0.5);
  128. }
  129. </style>