gqDetail.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="content">
  3. <view class="gq-detail-wrap">
  4. <view class="gq-detail" v-for="item in 10">
  5. <view class="detail-info">
  6. <view class="detail-tit">
  7. 购物送股
  8. </view>
  9. <view class="detail-time">
  10. 2022-06-09 13:00:00
  11. </view>
  12. </view>
  13. <view class="detail-pu" :class="{'red':item == 3}">
  14. -897.00
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. }
  25. },
  26. onLoad() {
  27. },
  28. onShow() {
  29. },
  30. onReachBottom() {
  31. },
  32. onReady() {
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .gq-detail-wrap {
  40. width: 100%;
  41. background-color: #fff;
  42. .gq-detail {
  43. width: 696rpx;
  44. margin: auto;
  45. border-bottom: #F0F0F0 1rpx solid;
  46. display: flex;
  47. align-items: center;
  48. padding: 15rpx 0;
  49. .detail-info {
  50. width: 70%;
  51. .detail-tit {
  52. font-size: 28rpx;
  53. font-weight: bold;
  54. color: #333333;
  55. }
  56. .detail-time {
  57. font-size: 22rpx;
  58. font-weight: 500;
  59. color: #999999;
  60. margin-top: 15rpx;
  61. }
  62. }
  63. .detail-pu {
  64. width: 30%;
  65. text-align: right;
  66. font-size: 30rpx;
  67. font-weight: bold;
  68. }
  69. .red{
  70. color: #FD423A;
  71. }
  72. }
  73. }
  74. </style>