addfriendsxq.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="container">
  3. <view class="tui-image-box">
  4. <view class="tui-group-box">
  5. <tui-image-group :imageList="imageList" width="150rpx" height="150rpx"></tui-image-group>
  6. </view>
  7. <view>
  8. <view>哈尼克尔</view>
  9. <view style="font-size: 24rpx;color: #8d8d8d;">ID:0000000000</view>
  10. </view>
  11. </view>
  12. <tui-list-view>
  13. <tui-list-cell :arrow="true" @tap="details">
  14. <view class="tui-item-box">
  15. <view class="tui-list-cell_name">个人主页</view>
  16. </view>
  17. </tui-list-cell>
  18. <tui-list-cell :arrow="true">
  19. <view class="tui-item-box">
  20. <view class="tui-list-cell_name">绑定手机号</view>
  21. <view class="tui-left">18678748522</view>
  22. </view>
  23. </tui-list-cell>
  24. </tui-list-view>
  25. <view style="margin-top: 20rpx;">
  26. <tui-button plain>添加好友</tui-button>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import tuiImageGroup from "@/components/thorui/tui-image-group/tui-image-group"
  32. import tuiListCell from "@/components/thorui/tui-list-cell/tui-list-cell"
  33. import tuiListView from "@/components/thorui/tui-list-view/tui-list-view"
  34. import tuiButton from "@/components/thorui/tui-button/tui-button"
  35. export default {
  36. components: {
  37. tuiImageGroup,
  38. tuiListView,
  39. tuiListCell,
  40. tuiButton
  41. },
  42. data() {
  43. return {
  44. imageList:[{
  45. id:1,
  46. src:"/static/images/product/2.jpg"
  47. }],
  48. imageList2:[{
  49. id:1,
  50. src:"/static/images/product/1.jpg"
  51. },{
  52. id:2,
  53. src:"/static/images/product/2.jpg"
  54. },{
  55. id:3,
  56. src:"/static/images/product/3.jpg"
  57. },{
  58. id:4,
  59. src:"/static/images/product/4.jpg"
  60. },{
  61. id:5,
  62. src:"/static/images/product/5.jpg"
  63. }],
  64. imageList3:[]
  65. };
  66. },
  67. onLoad() {
  68. this.imageList3=[...this.imageList2,...this.imageList2,...this.imageList2,...this.imageList2]
  69. },
  70. methods: {
  71. details: function() {
  72. uni.navigateTo({
  73. url: '../details'
  74. });
  75. },
  76. }
  77. };
  78. </script>
  79. <style>
  80. page {
  81. background-color: #fff;
  82. }
  83. .container {
  84. padding: 20rpx;
  85. box-sizing: border-box;
  86. width: 100%;
  87. }
  88. .tui-item-box {
  89. width: 100%;
  90. display: flex;
  91. align-items: center;
  92. }
  93. .tui-list-cell_name {
  94. padding-left: 20rpx;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. .tui-ml-auto {
  100. margin-left: auto;
  101. }
  102. .tui-left {
  103. margin-left: 34rpx;
  104. font-size: 26rpx;
  105. color: #999;
  106. }
  107. .header {
  108. padding: 80rpx 90rpx 60rpx 90rpx;
  109. box-sizing: border-box;
  110. }
  111. .title {
  112. font-size: 34rpx;
  113. color: #333;
  114. font-weight: 500;
  115. }
  116. .sub-title {
  117. font-size: 24rpx;
  118. color: #7a7a7a;
  119. padding-top: 18rpx;
  120. }
  121. .tui-title {
  122. width: 100%;
  123. padding: 40rpx 30rpx 30rpx;
  124. box-sizing: border-box;
  125. font-weight: bold;
  126. display: flex;
  127. align-items: center;
  128. justify-content: space-between;
  129. }
  130. .tui-image-box{
  131. width: 100%;
  132. padding: 30rpx;
  133. box-sizing: border-box;
  134. display: flex;
  135. align-items: center;
  136. }
  137. .tui-group-box{
  138. padding-right: 30rpx;
  139. }
  140. </style>