Admin.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div class="mobile-fix-content">
  3. <div class="info">
  4. <div class="line">
  5. <span>用户名:</span>
  6. <span v-text="info.userName"></span>
  7. </div>
  8. <div class="line">
  9. <span>手机:</span>
  10. <span v-text="info.userTel"></span>
  11. </div>
  12. <div class="line">
  13. <span>邮箱:</span>
  14. <span v-text="info.userEmail"></span>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. props: {
  22. info: {
  23. default: {},
  24. type: Object
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .mobile-fix-content {
  31. background: #f1f3f6;
  32. }
  33. .info {
  34. width: 7.1rem;
  35. background: #fff;
  36. margin: 0 auto;
  37. height: 3.5rem;
  38. padding: 0 .24rem;
  39. font-size: .28rem;
  40. border-radius: .05rem;
  41. margin-top: .3rem;
  42. .line {
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. white-space: nowrap;
  46. height: 1.16rem;
  47. line-height: 1.16rem;
  48. border-bottom: .01rem solid #d9d9d9;
  49. &:last-child {
  50. border-bottom: none;
  51. }
  52. span {
  53. margin-left: .56rem;
  54. display: inline-block;
  55. width: 1.2rem;
  56. color:#666;
  57. &:first-child{
  58. color:#226ce7;
  59. text-align: right;
  60. }
  61. }
  62. }
  63. }
  64. </style>