康巴易测肤/伤疤uniapp小程序类
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
3.9KB

  1. <template>
  2. <view class="mine">
  3. <!-- main -->
  4. <view class="main">
  5. <!-- header -->
  6. <view class="header">
  7. <view class="avatar">
  8. <u-avatar :src="src" size="80"></u-avatar>
  9. </view>
  10. <view class="edit-mine">
  11. <u-button shape="circle" :customStyle="{width: '280rpx', color: '#6049a9', borderColor:'#6049a9'}" @click="onEdit">编辑资料</u-button>
  12. </view>
  13. </view>
  14. <!-- numberinfo -->
  15. <view class="numberinfo">
  16. <view class="nickname">
  17. <text>昵称:微信用户</text>
  18. <u-icon name="woman" color="#2979ff" size="26"></u-icon>
  19. </view>
  20. <view class="phone">
  21. <text>16698592316</text>
  22. </view>
  23. <view class="id-box">
  24. <text>ID 1858708950943834113</text>
  25. <u-icon name="file-text" color="#2979ff" size="35"></u-icon>
  26. </view>
  27. </view>
  28. <!-- actions -->
  29. <view class="actions">
  30. <u-grid :col="3" :border="false" >
  31. <u-grid-item v-for="index in 4" :key="index" :customStyle="gridStyle">
  32. <view class="button-item" style="background-color: #FFC0CB;">
  33. <u-icon name="file-text" size="40" color="#fff"></u-icon>
  34. <text class="button-text">个人资料</text>
  35. </view>
  36. </u-grid-item>
  37. </u-grid>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. src: require("../../static/logo.png"),
  47. }
  48. },
  49. computed: {
  50. gridStyle() {
  51. return {
  52. height: '240rpx',
  53. padding: '15rpx 20rpx 15rpx 0',
  54. }
  55. },
  56. },
  57. methods: {
  58. onEdit() {
  59. uni.navigateTo({
  60. url: '/pages/user/info',
  61. })
  62. }
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. .mine {
  68. position: relative;
  69. height: 100vh;
  70. overflow: hidden;
  71. .main {
  72. padding: 40rpx;
  73. .header {
  74. display: flex;
  75. justify-content: space-between;
  76. align-items: center;
  77. padding: 30rpx 0;
  78. .avatar {
  79. }
  80. }
  81. .numberinfo {
  82. .nickname {
  83. display: flex;
  84. justify-content: flex-start;
  85. align-items: center;
  86. text {
  87. font-size: 40rpx;
  88. font-weight: bold;
  89. margin: 20rpx 20rpx 20rpx 0;
  90. }
  91. }
  92. .phone {
  93. font-size: 28rpx;
  94. margin: 10rpx 0;
  95. }
  96. .id-box {
  97. display: flex;
  98. justify-content: flex-start;
  99. align-items: center;
  100. text {
  101. font-size: 28rpx;
  102. margin-right: 20rpx;
  103. }
  104. }
  105. }
  106. .actions {
  107. margin-top: 20rpx;
  108. .button-item {
  109. height: 100%;
  110. width: 100%;
  111. padding: 10rpx 0;
  112. display: flex;
  113. justify-content: space-around;
  114. align-items: center;
  115. flex-direction: column;
  116. border-radius: 10rpx;
  117. .button-text {
  118. font-weight: bold;
  119. font-size: 30rpx;
  120. color: $uni-color-subtitle;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. </style>