details.vue 3.6 KB

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