dmMine.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <dmDialog ref='popView' :isShowTitle="true" title="我的信息" :isShowClose="true" :isShowConfirm="false" >
  3. <view class="content">
  4. <image class="img_head" :src="userInfo.head" mode=""></image>
  5. <view class="item_info">
  6. <text class="info_title">用户名</text>
  7. <text class="info_name">{{userInfo.name}}</text>
  8. </view>
  9. <view class="item_info">
  10. <text class="info_title">性别</text>
  11. <text class="info_name">{{userInfo.sex}}</text>
  12. </view>
  13. <view class="item_info">
  14. <text class="info_title">手机</text>
  15. <text class="info_name">{{userInfo.phone}}</text>
  16. </view>
  17. <view class="item_info">
  18. <text class="info_title">证件号</text>
  19. <text class="info_name">{{userInfo.cardNo}}</text>
  20. </view>
  21. <view class="item_info">
  22. <text class="info_title">房间信息</text>
  23. <text class="info_name">{{userInfo.room}}</text>
  24. </view>
  25. </view>
  26. </dmDialog>
  27. </template>
  28. <script>
  29. let app = getApp();
  30. import dmDialog from "./dmDialog.vue"
  31. export default{
  32. props:{
  33. userInfo:{
  34. "userId": "",
  35. "name": null,
  36. "head": null,
  37. "curlevel": null,
  38. "curIncome": null,
  39. "nextLevel": null,
  40. "nextIncome": null,
  41. "ownersUnion": false,
  42. "totalIncome": null,
  43. "taskCount": null,
  44. "surplusTaskAmount": null,
  45. "cardNo":"",
  46. "phone":"",
  47. "room":"",
  48. "sex":""
  49. }
  50. },
  51. data(){
  52. return {
  53. }
  54. },
  55. methods:{
  56. show() {
  57. this.$refs.popView.show()
  58. },
  59. knowAction(){
  60. this.$refs.popView.hide()
  61. },
  62. },
  63. mounted() {
  64. },
  65. components:{
  66. dmDialog
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. .content{
  72. width: 100%;
  73. margin-top: 30rpx;
  74. display: flex;
  75. flex-direction: column;
  76. align-items: center;
  77. .img_head{
  78. width: 168rpx;
  79. height: 168rpx;
  80. border-radius: 50%;
  81. margin-bottom: 76rpx;
  82. margin-top: 50rpx;
  83. }
  84. .item_info{
  85. width: 100%;
  86. display: flex;
  87. align-items: center;
  88. margin-bottom: 48rpx;
  89. padding-left: 60rpx;
  90. box-sizing: border-box;
  91. padding-right: 20rpx;
  92. .info_title{
  93. font-size: 28rpx;
  94. font-family: Verdana, Verdana-Regular;
  95. font-weight: 400;
  96. text-align: left;
  97. color: #b1b1b1;
  98. min-width: 200rpx;
  99. }
  100. .info_name{
  101. font-size: 28rpx;
  102. font-family: Verdana, Verdana-Regular;
  103. font-weight: 400;
  104. text-align: left;
  105. color: #262626;
  106. }
  107. }
  108. }
  109. </style>