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

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