share.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view class="content">
  3. <view class="list-scroll-content" v-for="item in 3">
  4. <view class="main">
  5. <view class="main-userInfo">
  6. <view class="avatar">
  7. <image src="../../static/icon/fire.png" mode=""></image>
  8. </view>
  9. <view class="main-user-info">
  10. <view class="main-userName">冲冲冲</view>
  11. <view class="main-user-time">2022-12-20 20:52</view>
  12. </view>
  13. <view class="fenxiang flex">
  14. <image class="img-lj" src="../../static/icon/lj.png"></image>
  15. <view class="wen-lj">45612</view>
  16. </view>
  17. </view>
  18. <view class="text">
  19. <view>风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降 低食欲不再是梦,C天然果蔬纤维素多种果蔬纤维 满足日常膳食营养,专享价【989】</view>
  20. </view>
  21. <view class="fh-im">
  22. <image v-for="item in 4" class="fh-img" src="../../static/img/sp.png" mode=""></image>
  23. </view>
  24. </view>
  25. </view>
  26. <navigator url="/pages/user/release">
  27. <button class="butt">我要发布</button>
  28. </navigator>
  29. <u-tabbar activeColor="#01A6A8" inactive-color='#666666' :list="tabbar"></u-tabbar>
  30. </view>
  31. </template>
  32. <script>
  33. import {
  34. article
  35. } from '@/api/user.js';
  36. import {
  37. reply_list
  38. } from '@/api/product.js';
  39. import {
  40. article_good,
  41. reply_good
  42. } from '@/api/activity.js';
  43. import {
  44. tabbar1
  45. } from '@/utils/tabbar.js'; //底部导航栏
  46. export default {
  47. data() {
  48. return {
  49. tabbar: tabbar1,
  50. };
  51. },
  52. onLoad() {},
  53. onShow() {
  54. },
  55. onReachBottom() {},
  56. methods: {
  57. navTo(url) {
  58. uni.navigateTo({
  59. url
  60. });
  61. },
  62. }
  63. };
  64. </script>
  65. <style lang="scss">
  66. page,
  67. .content {
  68. min-height: 100%;
  69. height: auto;
  70. position: relative;
  71. }
  72. .butt {
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. height: 64rpx;
  77. position: fixed;
  78. bottom: 120rpx;
  79. right: 0rpx;
  80. color: #FFFFFF;
  81. font-size: 28rpx;
  82. background-color: #FF6F0F;
  83. border: none;
  84. border-radius: 40rpx 0% 0% 40rpx;
  85. }
  86. .main {
  87. margin: 20rpx;
  88. padding: 35rpx 20rpx 24rpx;
  89. background: #ffffff;
  90. width: 702rpx;
  91. border-radius: 30rpx;
  92. image {
  93. width: 100%;
  94. height: 100%;
  95. }
  96. .main-userInfo {
  97. display: flex;
  98. align-items: center;
  99. .avatar {
  100. width: 80rpx;
  101. height: 80rpx;
  102. background: #ffffff;
  103. border-radius: 50%;
  104. }
  105. .main-user-info {
  106. margin-left: 14rpx;
  107. line-height: 1;
  108. .main-userName {
  109. font-size: 28rpx;
  110. font-weight: bold;
  111. color: #000000;
  112. }
  113. .main-user-time {
  114. margin-top: 14rpx;
  115. font-size: 21rpx;
  116. font-weight: 500;
  117. color: #666666;
  118. }
  119. }
  120. .fenxiang {
  121. padding-left: 310rpx;
  122. .img-lj {
  123. width: 28rpx;
  124. height: 28rpx;
  125. }
  126. .wen-lj {
  127. font-size: 28rpx;
  128. color: #FF6F0F;
  129. padding-left: 10rpx;
  130. }
  131. }
  132. }
  133. .text {
  134. word-wrap: break-word;
  135. word-break: normal;
  136. margin: 20rpx 0rpx;
  137. font-size: 28rpx;
  138. font-weight: 500;
  139. color: #666666;
  140. }
  141. .fh-im {
  142. .fh-img {
  143. margin: 10rpx 21rpx 0rpx 0rpx ;
  144. width: 200rpx;
  145. height: 200rpx;
  146. }
  147. }
  148. }
  149. </style>