详情小程序
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.

207 lines
4.8 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <swiper class="cover_swiper" :current="current">
  4. <swiper-item v-for="(item, index) in cover_images" :key="index">
  5. <lf-image :src="item"></lf-image>
  6. </swiper-item>
  7. </swiper>
  8. <view class="content">
  9. <view class="card" v-for="item in 2" :key="item">
  10. <view class="avatar">
  11. <lf-image src="../../static/logo.png" ></lf-image>
  12. </view>
  13. <view class="info">
  14. <!-- 昵称和说说文字 -->
  15. <view class="lf-font-28 lf-color-777">编号 73949</view>
  16. <view class="lf-font-32 lf-color-222 lf-m-t-10">我更新了相册</view>
  17. <!-- 图片显示区 -->
  18. <view class="images-box">
  19. <view class="img" v-for="item in 2" :key="item">
  20. <lf-image src="https://picsum.photos/seed/picsum/200/300" />
  21. </view>
  22. </view>
  23. <!-- 赞过的用户头像 -->
  24. <lf-nolan-photo></lf-nolan-photo>
  25. <!-- 时间和更多按钮 -->
  26. <view class="lf-row-between lf-m-t-23">
  27. <view class="lf-font-28 lf-color-777">08:38</view>
  28. <view class="more" @click="show_more = !show_more">
  29. <text class="lf-iconfont icon-more"></text>
  30. <view class="more-modal" v-if="show_more">
  31. <view class="more-item">
  32. <text class="lf-iconfont icon-zan"></text>
  33. <text class="lf-m-l-14"></text>
  34. </view>
  35. <view class="more-item">
  36. <text class="lf-iconfont icon-pinglun"></text>
  37. <text class="lf-m-l-14">评论</text>
  38. </view>
  39. <view class="more-item">
  40. <text class="lf-iconfont icon-fenxiang"></text>
  41. <text class="lf-m-l-14">分享</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- 评论 -->
  47. <view class="comment">
  48. <view>评论</view>
  49. <view class="lf-m-t-20">
  50. <text>等呵呵</text>
  51. <text class="lf-color-333">哈哈哈哈哈哈</text>
  52. </view>
  53. <view class="lf-m-t-20">
  54. <text>编号37894</text>
  55. <text class="lf-color-333 lf-m-l-10 lf-m-r-10">回复</text>
  56. <text>等呵呵</text>
  57. <text class="lf-color-333">俺是头大本驴</text>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 悬浮发布按钮 -->
  64. <view class="fixed-bottom" hover-class="lf-opacity" @click="$url('/pages/saySomething/saySomething')">
  65. <text class="lf-iconfont icon-jia lf-font-50"></text>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. import lfNolanPhoto from '@/components/lf-nolanPhoto/lf-nolanPhoto.vue';
  71. export default {
  72. components: { lfNolanPhoto },
  73. data(){
  74. return {
  75. current: 0,
  76. cover_images: ['https://picsum.photos/seed/picsum/200/300'],
  77. show_more: false
  78. }
  79. },
  80. onLoad(){
  81. },
  82. methods: {
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped="scoped">
  87. .cover_swiper{
  88. width: 750rpx;
  89. height: 375rpx;
  90. }
  91. .content{
  92. width: 750rpx;
  93. height: max-content;
  94. padding: 40rpx 32rpx;
  95. box-sizing: border-box;
  96. .card{
  97. width: 100%;
  98. height: max-content;
  99. padding-bottom: 30rpx;
  100. border-bottom: 1rpx solid #e5e5e5;
  101. display: flex;
  102. align-items: flex-start;
  103. justify-content: space-between;
  104. &:nth-child(n+2){
  105. margin-top: 30rpx;
  106. }
  107. &:last-child{
  108. border-bottom: none;
  109. }
  110. .avatar{
  111. width: 110rpx;
  112. height: 110rpx;
  113. border-radius: 50%;
  114. }
  115. .info{
  116. width: 560rpx;
  117. height: max-content;
  118. }
  119. .images-box{
  120. margin-top: 28rpx;
  121. display: flex;
  122. flex-wrap: wrap;
  123. .img{
  124. width: 275rpx;
  125. height: 275rpx;
  126. background-color: #0BCE5F;
  127. margin-right: 10rpx;
  128. &:nth-child(2n){
  129. margin-right: 0rpx;
  130. }
  131. &:nth-child(n+3){
  132. margin-top: 10rpx;
  133. }
  134. }
  135. }
  136. .more{
  137. width: 66rpx;
  138. height: 40rpx;
  139. background-color: #F5F5F5;
  140. border-radius: 5rpx;
  141. color: #333333;
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. font-size: 42rpx;
  146. position: relative;
  147. .more-modal{
  148. position: absolute;
  149. left: -472rpx;
  150. top: -14rpx;
  151. width: 467rpx;
  152. height: 68rpx;
  153. background: #555555;
  154. border-radius: 5rpx;
  155. display: flex;
  156. align-items: center;
  157. .more-item{
  158. width: 156rpx;
  159. height: 48rpx;
  160. border-right: 1rpx solid #777777;
  161. font-size: 24rpx;
  162. color: #FFFFFF;
  163. display: flex;
  164. justify-content: center;
  165. align-items: center;
  166. &:last-child{
  167. border-right: none;
  168. }
  169. }
  170. }
  171. }
  172. .comment{
  173. margin-top: 20rpx;
  174. width: 100%;
  175. height: max-content;
  176. background-color: #F5F5F5;
  177. border-radius: 5rpx;
  178. box-sizing: border-box;
  179. padding: 20rpx;
  180. font-size: 28rpx;
  181. color: #777777;
  182. }
  183. }
  184. }
  185. .fixed-bottom{
  186. position: fixed;
  187. right: 32rpx;
  188. bottom: 40rpx;
  189. /* #ifdef H5 */
  190. bottom: 140rpx;
  191. /* #endif */
  192. width: 100rpx;
  193. height: 100rpx;
  194. background-color: #E21196;
  195. border-radius: 50%;
  196. color: #FFFFFF;
  197. display: flex;
  198. justify-content: center;
  199. align-items: center;
  200. }
  201. </style>