personal_details.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="total-page page-box size-28">
  3. <Nav :type="1" :title="title" :is_fixed="true">
  4. <view class="m-30 m-b20">
  5. <view class="row-justify-sb sys-background-fff center p-30 bor-bottom-1"
  6. style="border-radius: 20rpx 20rpx 0 0;" hover-class="is-hovers">
  7. <text class="size-28 text-color-666">头像</text>
  8. <view class="row-c">
  9. <image class="wh-80 r-100 m-r10" src="../../static/img/logo.png" mode=""></image>
  10. <uni-icons type="forward" size="20" color="#999999"></uni-icons>
  11. </view>
  12. </view>
  13. <view class="row-justify-sb sys-background-fff bor-bottom-1 center p-30" hover-class="is-hover_pass"
  14. @click="onSetMessage(4,'修改昵称')">
  15. <text class="size-28 text-color-666">昵称</text>
  16. <view class="row-c line-34">
  17. <text class="text-color-12">团子</text>
  18. <uni-icons type="forward" size="16" color="#999999"></uni-icons>
  19. </view>
  20. </view>
  21. <view class="row-justify-sb sys-background-fff bor-bottom-1 center p-30" hover-class="is-hover_pass"
  22. @click="onSetMessage(5,'修改姓名')">
  23. <text class="size-28 text-color-666">姓名</text>
  24. <view class="row-c line-34">
  25. <text class="text-color-12">张杰</text>
  26. <uni-icons type="forward" size="16" color="#999999"></uni-icons>
  27. </view>
  28. </view>
  29. <view class="row-justify-sb sys-background-fff center p-30" style="border-radius: 0 0 20rpx 20rpx;"
  30. hover-class="is-hover_pass" @click="onSetMessage(3,'修改手机号')">
  31. <text class="size-28 text-color-666">手机号</text>
  32. <view class="row-c line-34">
  33. <text class="text-color-12">123456797</text>
  34. <uni-icons type="forward" size="16" color="#999999"></uni-icons>
  35. </view>
  36. </view>
  37. </view>
  38. <view class=" m-lr30 r-20">
  39. <view class="row-justify-sb sys-background-fff center p-30 r-20" hover-class="is-hover_pass"
  40. @click="onSetMessage(2,'修改密码')">
  41. <text class="size-28 text-color-666">密码</text>
  42. <view class="row-c line-34">
  43. <text class="text-color-12">去修改</text>
  44. <uni-icons type="forward" size="16" color="#999999"></uni-icons>
  45. </view>
  46. </view>
  47. </view>
  48. </Nav>
  49. </view>
  50. </template>
  51. <script>
  52. import EnInput from "@/components/en-from/en-input/index.vue";
  53. export default {
  54. components: {
  55. EnInput
  56. },
  57. data() {
  58. return {
  59. id: 0,
  60. title: '',
  61. phoneShake: false,
  62. }
  63. },
  64. onLoad(options) {
  65. this.id = options.id
  66. this.title = options.title
  67. },
  68. methods: {
  69. onSubmit() {
  70. this.phoneShake = true
  71. setTimeout(() => {
  72. this.phoneShake = false
  73. this.passwordShake = false
  74. this.codedShake = false
  75. }, 500)
  76. },
  77. getVerifiedCode() {},
  78. onSetMessage(id, name) {
  79. uni.navigateTo({
  80. url: `/page_subpack/system_setting/system_setting?id=${id}&title=${name}`
  81. })
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. .is-hovers {
  88. background-color: #e5e5e5e5;
  89. }
  90. .is-hover_pass {
  91. background-color: #e5e5e5e5;
  92. }
  93. .input-text {
  94. display: block;
  95. width: 120rpx;
  96. text-align: right;
  97. }
  98. .input-item {
  99. height: 96rpx;
  100. padding: 28rpx 40rpx;
  101. box-sizing: border-box;
  102. .login-input {
  103. width: 100%;
  104. }
  105. }
  106. .input-item:last-child {
  107. margin-top: 30rpx;
  108. }
  109. .input-send {
  110. display: flex;
  111. justify-content: flex-start;
  112. align-items: center;
  113. .login-input {
  114. width: calc(100% - 140rpx);
  115. }
  116. .login-send {
  117. width: 140rpx;
  118. text-align: center;
  119. }
  120. }
  121. .input-but {
  122. margin-top: 40rpx;
  123. width: 100%;
  124. height: 96rpx;
  125. line-height: 96rpx;
  126. text-align: center;
  127. }
  128. </style>