index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <!-- 预警信息 -->
  3. <view>
  4. <view class="ui-card warn-item">
  5. <view class="title">140951害虫数量总和预警</view>
  6. <view class="subtitle">设备ID:87845748629</view>
  7. <view class="paragraph">介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字</view>
  8. <text class="time">2022-08-26 12:01:46</text>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. }
  17. },
  18. methods: {
  19. }
  20. }
  21. </script>
  22. <style lang="scss">
  23. .warn-item {
  24. padding: 26rpx 24rpx;
  25. .title {
  26. font-size: $font-size-title;
  27. color: $color-title;
  28. line-height: $line-height-title;
  29. }
  30. .subtitle {
  31. margin-top: 10rpx;
  32. font-size: $font-size-subtitle;
  33. color: $color-subtitle;
  34. line-height: $line-height-subtitle;
  35. }
  36. .paragraph {
  37. margin: 10rpx 0 18rpx;
  38. font-size: $font-size-paragraph;
  39. color: $color-paragraph;
  40. line-height: $line-height-paragraph;
  41. }
  42. .time {
  43. padding: 6rpx 15rpx;
  44. font-size: 28rpx;
  45. color: #317AFD;
  46. line-height: 1;
  47. background: rgba(49, 122, 253, .3);
  48. border-radius: 4rpx;
  49. }
  50. }
  51. </style>