personal.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <view class="container">
  3. <!--内容部分-->
  4. <tui-list-view>
  5. <tui-list-cell @tap="card" :arrow="true">
  6. <view class="tui-item-box">
  7. <view class="tui-list-cell_name">二维码名片</view>
  8. <view class="tui-right"><tui-icon name="qrcode" :size="16" color="#000"></tui-icon></view>
  9. </view>
  10. </tui-list-cell>
  11. <tui-list-cell @tap="portrait" :arrow="true" last="true">
  12. <view class="tui-item-box">
  13. <text class="tui-list-cell_name">头像</text>
  14. <view class="tui-right"><image src="/static/images/my/thorui.png" class="tui-logo" mode="widthFix"></image></view>
  15. </view>
  16. </tui-list-cell>
  17. <tui-list-cell @tap="name" :arrow="true">
  18. <view class="tui-item-box">
  19. <view class="tui-list-cell_name">昵称</view>
  20. <view class="tui-right">哈尼克美</view>
  21. </view>
  22. </tui-list-cell>
  23. <tui-list-cell @tap="sex" :arrow="true">
  24. <view class="tui-item-box">
  25. <view class="tui-list-cell_name">性别</view>
  26. <view class="tui-right">女</view>
  27. </view>
  28. </tui-list-cell>
  29. <tui-list-cell @tap="phone" :arrow="true">
  30. <view class="tui-item-box">
  31. <view class="tui-list-cell_name">绑定手机号</view>
  32. <view class="tui-right"><tui-icon name="addressbook" :size="16"></tui-icon>18678748522</view>
  33. </view>
  34. </tui-list-cell>
  35. </tui-list-view>
  36. <!--内容部分-->
  37. </view>
  38. </template>
  39. <script>
  40. import tuiButton from "@/components/thorui/tui-button/tui-button"
  41. import tuiListView from '@/components/thorui/tui-list-view/tui-list-view';
  42. import tuiListCell from '@/components/thorui/tui-list-cell/tui-list-cell';
  43. import tuiIcon from '@/components/thorui/tui-icon/tui-icon';
  44. import tuiTag from '@/components/thorui/tui-tag/tui-tag';
  45. import tuiBadge from '@/components/thorui/tui-badge/tui-badge';
  46. export default {
  47. components: {
  48. tuiListView,
  49. tuiListCell,
  50. tuiIcon,
  51. tuiTag,
  52. tuiButton,
  53. tuiBadge
  54. },
  55. data() {
  56. return {
  57. }
  58. },
  59. methods: {
  60. card: function() {
  61. uni.navigateTo({
  62. url: './card/card'
  63. });
  64. },
  65. portrait: function() {
  66. uni.navigateTo({
  67. url: './portrait/portrait'
  68. });
  69. },
  70. name: function() {
  71. uni.navigateTo({
  72. url: './name/name'
  73. });
  74. },
  75. sex: function() {
  76. uni.navigateTo({
  77. url: './sex/sex'
  78. });
  79. },
  80. phone: function() {
  81. uni.navigateTo({
  82. url: './phone/phone'
  83. });
  84. },
  85. }
  86. }
  87. </script>
  88. <style>
  89. .container {
  90. padding-bottom: env(safe-area-inset-bottom);
  91. width: 100%;
  92. }
  93. .tui-item-box {
  94. width: 100%;
  95. display: flex;
  96. align-items: center;
  97. }
  98. .tui-list-cell_name {
  99. padding-left: 20rpx;
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. }
  104. .tui-ml-auto {
  105. margin-left: auto;
  106. }
  107. .tui-right {
  108. margin-left: auto;
  109. margin-right: 34rpx;
  110. font-size: 26rpx;
  111. color: #999;
  112. }
  113. .tui-logo {
  114. height: 52rpx;
  115. width: 52rpx;
  116. flex-shrink: 0;
  117. }
  118. .tui-flex {
  119. display: flex;
  120. align-items: center;
  121. }
  122. .tui-msg-box {
  123. display: flex;
  124. align-items: center;
  125. }
  126. .tui-msg-pic {
  127. width: 100rpx;
  128. height: 100rpx;
  129. border-radius: 50%;
  130. display: block;
  131. margin-right: 24rpx;
  132. flex-shrink: 0;
  133. }
  134. .tui-msg-item {
  135. max-width: 500rpx;
  136. min-height: 80rpx;
  137. overflow: hidden;
  138. display: flex;
  139. flex-direction: column;
  140. justify-content: space-between;
  141. }
  142. .tui-msg-name {
  143. overflow: hidden;
  144. white-space: nowrap;
  145. text-overflow: ellipsis;
  146. font-size: 34rpx;
  147. line-height: 1;
  148. color: #262b3a;
  149. }
  150. .tui-msg-content {
  151. overflow: hidden;
  152. white-space: nowrap;
  153. text-overflow: ellipsis;
  154. font-size: 26rpx;
  155. line-height: 1;
  156. color: #9397a4;
  157. }
  158. .tui-msg-right {
  159. max-width: 120rpx;
  160. height: 88rpx;
  161. margin-left: auto;
  162. text-align: right;
  163. display: flex;
  164. flex-direction: column;
  165. justify-content: space-between;
  166. align-items: flex-end;
  167. }
  168. .tui-right-dot {
  169. height: 76rpx !important;
  170. padding-bottom: 10rpx !important;
  171. }
  172. .tui-msg-time {
  173. width: 100%;
  174. font-size: 24rpx;
  175. line-height: 24rpx;
  176. color: #9397a4;
  177. }
  178. </style>