dmMine.vue 2.5 KB

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