release.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="content">
  3. <view class="main" v-for="(list, index) in lists" :key="index">
  4. <view class="main-userInfo">
  5. <view class="avatar">
  6. <image src="../../static/icon/fire.png" mode=""></image>
  7. </view>
  8. <view class="main-user-info">
  9. <view class="main-userName">{{list.nicheng}}</view>
  10. <view class="main-user-time">{{list.time}}</view>
  11. </view>
  12. <view class="fenxiang flex">
  13. <image class="img-lj" src="../../static/icon/lj.png"></image>
  14. <view class="wen-lj">{{list.zf}}</view>
  15. </view>
  16. </view>
  17. <view class="text">
  18. <view>{{list.content}}</view>
  19. </view>
  20. <view class="fh-im">
  21. <image v-for="item in 8" class="fh-img" src="../../static/img/sp.png" mode=""></image>
  22. </view>
  23. <view class="bot flex">
  24. <image class="del" src="../../static/icon/del.png" mode=""></image>
  25. <view @click="dele(index)" class="sc">删除</view>
  26. </view>
  27. </view>
  28. <navigator url="/pages/user/sucai">
  29. <button class="rele">发布素材</button>
  30. </navigator>
  31. <u-tabbar activeColor="#01A6A8" inactive-color='#666666' :list="tabbar"></u-tabbar>
  32. </view>
  33. </template>
  34. <script>
  35. import {
  36. article
  37. } from '@/api/user.js';
  38. import {
  39. reply_list
  40. } from '@/api/product.js';
  41. import {
  42. article_good,
  43. reply_good
  44. } from '@/api/activity.js';
  45. import {
  46. tabbar1
  47. } from '@/utils/tabbar.js'; //底部导航栏
  48. export default {
  49. data() {
  50. return {
  51. lists: [
  52. {nicheng: 'cccc', time: '202311.21', zf: '456212', content: '风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降'},
  53. {nicheng: 'bbbb', time: '202311.21', zf: '4562', content: '风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降'},
  54. {nicheng: 'aaaa', time: '202311.21', zf: '4562', content: '风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降'}
  55. ],
  56. tabbar: tabbar1,
  57. };
  58. },
  59. onLoad() {
  60. },
  61. onShow() {
  62. },
  63. onReachBottom() {},
  64. methods: {
  65. dele(index) {
  66. this.lists.splice(index, 1)
  67. },
  68. navTo(url) {
  69. uni.navigateTo({
  70. url
  71. });
  72. },
  73. }
  74. };
  75. </script>
  76. <style lang="scss">
  77. page,
  78. .content {
  79. min-height: 100%;
  80. height: auto;
  81. }
  82. .main {
  83. margin: 20rpx;
  84. padding: 35rpx 20rpx 24rpx;
  85. background: #ffffff;
  86. width: 702rpx;
  87. border-radius: 30rpx;
  88. image {
  89. width: 100%;
  90. height: 100%;
  91. }
  92. .main-userInfo {
  93. display: flex;
  94. align-items: center;
  95. .avatar {
  96. width: 80rpx;
  97. height: 80rpx;
  98. background: #ffffff;
  99. border-radius: 50%;
  100. }
  101. .main-user-info {
  102. margin-left: 14rpx;
  103. line-height: 1;
  104. .main-userName {
  105. font-size: 28rpx;
  106. font-weight: bold;
  107. color: #000000;
  108. }
  109. .main-user-time {
  110. margin-top: 14rpx;
  111. font-size: 21rpx;
  112. font-family: PingFang SC;
  113. font-weight: 500;
  114. color: #666666;
  115. }
  116. }
  117. .fenxiang {
  118. padding-left: 310rpx;
  119. .img-lj {
  120. width: 28rpx;
  121. height: 28rpx;
  122. }
  123. .wen-lj {
  124. font-size: 28rpx;
  125. color: #FF6F0F;
  126. padding-left: 10rpx;
  127. }
  128. }
  129. }
  130. .text {
  131. word-wrap: break-word;
  132. word-break: normal;
  133. margin: 20rpx 0rpx;
  134. font-size: 28rpx;
  135. font-weight: 500;
  136. color: #666666;
  137. }
  138. .fh-im {
  139. .fh-img {
  140. // margin: auto 10rpx;
  141. margin: 10rpx 21rpx 0rpx 0rpx ;
  142. width: 200rpx;
  143. height: 200rpx;
  144. // padding: 10rpx;
  145. }
  146. }
  147. .bot {
  148. .del {
  149. margin-left: 540rpx;
  150. width: 24rpx;
  151. height: 28rpx;
  152. }
  153. .sc {
  154. padding-right: 40rpx;
  155. font-size: 24rpx;
  156. font-weight: 500;
  157. color: #FF4C4C;
  158. }
  159. }
  160. }
  161. .rele {
  162. width: 625rpx;
  163. height: 89rpx;
  164. background-color: #FF6F0F;
  165. color: #ffffff;
  166. border-radius: 15rpx;
  167. display: flex;
  168. justify-content: center;
  169. align-items: center;
  170. margin: 40rpx auto;
  171. }
  172. </style>