notice.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <view>
  3. <view class="notice-item">
  4. <text class="time">11:30</text>
  5. <view class="content">
  6. <text class="title">新品上市,全场满199减50</text>
  7. <view class="img-wrapper">
  8. <image class="pic" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556465765776&di=57bb5ff70dc4f67dcdb856e5d123c9e7&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01fd015aa4d95fa801206d96069229.jpg%401280w_1l_2o_100sh.jpg"></image>
  9. </view>
  10. <text class="introduce">
  11. 虽然做了一件好事,但很有可能因此招来他人的无端猜测,例如被质疑是否藏有其他利己动机等,乃至谴责。即便如此,还是要做好事。
  12. </text>
  13. <view class="bot b-t">
  14. <text>查看详情</text>
  15. <text class="more-icon iconfont iconenter"></text>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="notice-item">
  20. <text class="time">昨天 12:30</text>
  21. <view class="content">
  22. <text class="title">新品上市,全场满199减50</text>
  23. <view class="img-wrapper">
  24. <image class="pic" src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3761064275,227090144&fm=26&gp=0.jpg"></image>
  25. <view class="cover">
  26. 活动结束
  27. </view>
  28. </view>
  29. <view class="bot b-t">
  30. <text>查看详情</text>
  31. <text class="more-icon iconfont iconenter"></text>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="notice-item">
  36. <text class="time">2019-07-26 12:30</text>
  37. <view class="content">
  38. <text class="title">新品上市,全场满199减50</text>
  39. <view class="img-wrapper">
  40. <image class="pic" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556465765776&di=57bb5ff70dc4f67dcdb856e5d123c9e7&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01fd015aa4d95fa801206d96069229.jpg%401280w_1l_2o_100sh.jpg"></image>
  41. <view class="cover">
  42. 活动结束
  43. </view>
  44. </view>
  45. <text class="introduce">新品上市全场2折起,新品上市全场2折起,新品上市全场2折起,新品上市全场2折起,新品上市全场2折起</text>
  46. <view class="bot b-t">
  47. <text>查看详情</text>
  48. <text class="more-icon iconfont iconenter"></text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. }
  59. },
  60. methods: {
  61. }
  62. }
  63. </script>
  64. <style lang='scss'>
  65. page {
  66. background-color: #f7f7f7;
  67. padding-bottom: 30upx;
  68. }
  69. .notice-item {
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. }
  74. .time {
  75. display: flex;
  76. align-items: center;
  77. justify-content: center;
  78. height: 80upx;
  79. padding-top: 10upx;
  80. font-size: 26upx;
  81. color: #7d7d7d;
  82. }
  83. .content {
  84. width: 710upx;
  85. padding: 0 24upx;
  86. background-color: #fff;
  87. border-radius: 4upx;
  88. }
  89. .title {
  90. display: flex;
  91. align-items: center;
  92. height: 90upx;
  93. font-size: 32upx;
  94. color: #303133;
  95. }
  96. .img-wrapper {
  97. width: 100%;
  98. height: 260upx;
  99. position: relative;
  100. }
  101. .pic {
  102. display: block;
  103. width: 100%;
  104. height: 100%;
  105. border-radius: 6upx;
  106. }
  107. .cover {
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. position: absolute;
  112. left: 0;
  113. top: 0;
  114. width: 100%;
  115. height: 100%;
  116. background-color: rgba(0, 0, 0, .5);
  117. font-size: 36upx;
  118. color: #fff;
  119. }
  120. .introduce {
  121. display: inline-block;
  122. padding: 16upx 0;
  123. font-size: 28upx;
  124. color: #606266;
  125. line-height: 38upx;
  126. }
  127. .bot {
  128. display: flex;
  129. align-items: center;
  130. justify-content: space-between;
  131. height: 80upx;
  132. font-size: 24upx;
  133. color: #707070;
  134. position: relative;
  135. }
  136. .more-icon {
  137. font-size: 32upx;
  138. }
  139. </style>