dmMine.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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" :style="{color:contentColor}">用户名</text>
  8. <text class="info_name" :style="{color:titleColor}">{{userInfo.name||'-'}}</text>
  9. </view>
  10. <view class="item_info">
  11. <text class="info_title" :style="{color:contentColor}">性别</text>
  12. <text class="info_name" :style="{color:titleColor}">{{userInfo.sex||'-'}}</text>
  13. </view>
  14. <view class="item_info">
  15. <text class="info_title" :style="{color:contentColor}">手机</text>
  16. <text class="info_name" :style="{color:titleColor}">{{userInfo.phone||'-'}}</text>
  17. </view>
  18. <view class="item_info">
  19. <text class="info_title" :style="{color:contentColor}">证件号</text>
  20. <text class="info_name" :style="{color:titleColor}">{{userInfo.cardNo||'-'}}</text>
  21. </view>
  22. <view class="item_info">
  23. <text class="info_title" :style="{color:contentColor}">房间信息</text>
  24. <text class="info_name" :style="{color:titleColor}">{{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. contentColor:"",
  55. titleColor:"",
  56. }
  57. },
  58. methods:{
  59. show() {
  60. this.$refs.popView.show()
  61. },
  62. knowAction(){
  63. this.$refs.popView.hide()
  64. },
  65. },
  66. mounted() {
  67. this.titleColor = getApp().globalData.titleColor;
  68. this.contentColor = getApp().globalData.contentColor;
  69. },
  70. components:{
  71. dmDialog
  72. }
  73. }
  74. </script>
  75. <style scoped lang="scss">
  76. .content{
  77. width: 100%;
  78. margin-top: 30rpx;
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. .img_head{
  83. width: 168rpx;
  84. height: 168rpx;
  85. border-radius: 50%;
  86. margin-bottom: 76rpx;
  87. margin-top: 50rpx;
  88. }
  89. .item_info{
  90. width: 100%;
  91. display: flex;
  92. align-items: center;
  93. margin-bottom: 48rpx;
  94. padding-left: 60rpx;
  95. box-sizing: border-box;
  96. padding-right: 20rpx;
  97. .info_title{
  98. font-size: 28rpx;
  99. font-family: Verdana, Verdana-Regular;
  100. font-weight: 400;
  101. text-align: left;
  102. color: #b1b1b1;
  103. min-width: 200rpx;
  104. }
  105. .info_name{
  106. font-size: 28rpx;
  107. font-family: Verdana, Verdana-Regular;
  108. font-weight: 400;
  109. text-align: left;
  110. color: #262626;
  111. }
  112. }
  113. }
  114. </style>