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

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