chat.vue 571 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="content">
  3. <scroll-view class="chat-body" scroll-y scroll-with-animation>
  4. </scroll-view>
  5. </view>
  6. </template>
  7. <script>
  8. var app;
  9. export default {
  10. data() {
  11. return {
  12. }
  13. },
  14. onLoad() {
  15. app = this;
  16. uni.setNavigationBarTitle({
  17. title:"与xxx对话"
  18. })
  19. },
  20. methods: {
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .content{
  26. position: fixed;
  27. z-index: 1;
  28. top: 0;
  29. left: 0;
  30. bottom: 0;
  31. right: 0;
  32. background-color: #ededed;
  33. display: flex;
  34. flex-direction: column;
  35. }
  36. .chat-body{
  37. height: 0;
  38. flex: 1;
  39. }
  40. </style>