mine.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="home">
  3. <view>
  4. <view class="layout-row">
  5. <u-row
  6. justify="space-between"
  7. gutter="10">
  8. <u-col span="3">
  9. <view class="demo-layout">姓名</view>
  10. </u-col>
  11. <u-col span="9">
  12. <view class="demo-layout">
  13. <input type="text" v-model="form.name">
  14. </view>
  15. </u-col>
  16. </u-row>
  17. </view>
  18. <view class="layout-row">
  19. <u-row
  20. justify="space-between"
  21. gutter="10">
  22. <u-col span="3">
  23. <view class="demo-layout">工号</view>
  24. </u-col>
  25. <u-col span="9">
  26. <view class="demo-layout">
  27. <input type="text" v-model="form.ID">
  28. </view>
  29. </u-col>
  30. </u-row>
  31. </view>
  32. <view class="layout-row">
  33. <u-row
  34. justify="space-between"
  35. gutter="10">
  36. <u-col span="3">
  37. <view class="demo-layout">手机号</view>
  38. </u-col>
  39. <u-col span="9">
  40. <view class="demo-layout">
  41. <input type="text" v-model="form.phone">
  42. </view>
  43. </u-col>
  44. </u-row>
  45. </view>
  46. <view class="layout-row">
  47. <u-row
  48. justify="space-between"
  49. gutter="10">
  50. <u-col span="3">
  51. <view class="demo-layout">邮箱</view>
  52. </u-col>
  53. <u-col span="9">
  54. <view class="demo-layout">
  55. <input type="text" v-model="form.email">
  56. </view>
  57. </u-col>
  58. </u-row>
  59. </view>
  60. <view class="layout-row">
  61. <u-row
  62. justify="space-between"
  63. gutter="10">
  64. <u-col span="3">
  65. <view class="demo-layout">密码</view>
  66. </u-col>
  67. <u-col span="9">
  68. <view class="demo-layout" style="width: 300rpx;">
  69. <u-button color="#000" size="small" @click="popupShow = true">修改密码</u-button>
  70. </view>
  71. </u-col>
  72. </u-row>
  73. </view>
  74. </view>
  75. <u-popup :show="popupShow" @close="popupShow = false" >
  76. <view class="popup-area">
  77. <view class="layout-row" >
  78. <u-row
  79. justify="space-between"
  80. gutter="10">
  81. <u-col span="3">
  82. <view class="demo-layout">旧密码</view>
  83. </u-col>
  84. <u-col span="9">
  85. <view class="demo-layout" style="width: 300rpx;">
  86. <input type="text">
  87. </view>
  88. </u-col>
  89. </u-row>
  90. </view>
  91. <view class="layout-row">
  92. <u-row
  93. justify="space-between"
  94. gutter="10">
  95. <u-col span="3">
  96. <view class="demo-layout">新密码</view>
  97. </u-col>
  98. <u-col span="9">
  99. <view class="demo-layout" style="width: 300rpx;">
  100. <input type="text">
  101. </view>
  102. </u-col>
  103. </u-row>
  104. </view>
  105. <view class="layout-row">
  106. <u-row
  107. justify="space-between"
  108. gutter="10">
  109. <u-col span="3">
  110. <view class="demo-layout">确认密码</view>
  111. </u-col>
  112. <u-col span="9">
  113. <view class="demo-layout" style="width: 300rpx;">
  114. <input type="text">
  115. </view>
  116. </u-col>
  117. </u-row>
  118. </view>
  119. <view class="pwd-btn">
  120. <u-button size="small" @click="popupShow = false">取消</u-button>
  121. <u-button color="#000" size="small" >确认</u-button>
  122. </view>
  123. </view>
  124. </u-popup>
  125. <view class="btn-area">
  126. <u-button color="#000" size="small">保存</u-button>
  127. </view>
  128. </view>
  129. </template>
  130. <script>
  131. export default {
  132. data() {
  133. return {
  134. form:{
  135. name:"张晓翠",
  136. ID:"DDDDDSS2",
  137. phone:"13545454542",
  138. email:"13545454542@qq.com"
  139. },
  140. popupShow:false
  141. };
  142. },
  143. methods:{
  144. showPopup(){
  145. }
  146. }
  147. }
  148. </script>
  149. <style lang="scss" scoped>
  150. .home{
  151. position: relative;
  152. height: 100vh;
  153. }
  154. .layout-row{
  155. padding:50rpx 30rpx;
  156. border-bottom:1rpx solid #c6c6c6;
  157. font-size: 30rpx;
  158. }
  159. .btn-area{
  160. position: absolute;
  161. width: 300rpx;
  162. bottom: 100rpx;
  163. right: 50rpx;
  164. }
  165. .popup-area{
  166. height: 700rpx;
  167. box-sizing: border-box;
  168. // padding: 0 30rpx;
  169. .pwd-btn{
  170. display: flex;
  171. padding-top: 50rpx;
  172. /deep/.u-button{
  173. margin: 30rpx;
  174. }
  175. }
  176. }
  177. </style>