message-item.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <cover-view class="div" v-if="item.message">
  3. <cover-view class="div msg-item">
  4. <!-- 名字 -->
  5. <text class="span name notice">{{item.name}}:</text>
  6. <!-- msg -->
  7. <text class="span text">{{item.message}}</text>
  8. </cover-view>
  9. </cover-view>
  10. </template>
  11. <script>
  12. export default {
  13. props: {
  14. item: {}
  15. },
  16. data () {
  17. return {}
  18. },
  19. methods: {
  20. },
  21. computed: {}
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .msg-item {
  26. background: rgba(0, 0, 0, 0.25);
  27. border-radius: 40rpx;
  28. /* #ifndef APP-PLUS-NVUE */
  29. display: flex;
  30. /* #endif */
  31. flex-direction: row;
  32. padding: 14rpx 20rpx;
  33. margin-bottom: 16rpx;
  34. }
  35. .lv {
  36. height: 30rpx;
  37. width: 50rpx;
  38. /* #ifndef APP-PLUS-NVUE */
  39. vertical-align: middle
  40. /* #endif */
  41. }
  42. .name {
  43. font-family: PingFangSC-Regular;
  44. font-size:14px;
  45. color: #9FE5FF;
  46. /* #ifndef APP-PLUS-NVUE */
  47. letter-spacing: 0;
  48. vertical-align: middle;
  49. /* #endif */
  50. }
  51. .text {
  52. line-height: 14px;
  53. /* #ifndef APP-PLUS-NVUE */
  54. word-wrap:break-word;
  55. /* #endif */
  56. color: #fff;
  57. font-size:12px;
  58. }
  59. </style>