index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <view class="msg-box">
  3. <Nav title="留言反馈" :left-show="false" titleColor="#fff"></Nav>
  4. <view class="mui-content">
  5. <view class="ln-public">
  6. 留言内容
  7. </view>
  8. <view class="msg-text" contenteditable="true" placeholder="在此输入留言内容,限200字。"></view>
  9. <view class="msg-btn" @click="sendMsg">提交</view>
  10. <view class="msg-list">
  11. <view class="msg-item" v-for="(msg_iteam,index) in 5">
  12. <view class="msg-list-con">
  13. <view class="msg-list-tit">
  14. <view class="msg-list-name">
  15. 阿萨德撒多解散
  16. </view>
  17. <view class="msg-list-time">2022-10-18 15:02</view>
  18. </view>
  19. <view class="msg-list-intro">阿山东黄金看加哈是否叠加记得收款飞</view>
  20. </view>
  21. <view class="msg-list-con" >
  22. <view class="msg-list-tit">
  23. <view class="msg-list-name">
  24. 回复
  25. </view>
  26. <view class="msg-list-time">2022-10-18 15:02</view>
  27. </view>
  28. <view class="msg-list-intro">是大家好较好的</view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import $ from 'jquery/src/jquery'
  37. export default {
  38. name: "index",
  39. components: {},
  40. props: {},
  41. data() {
  42. return {}
  43. },
  44. watch: {},
  45. mounted() {
  46. this.msg = $('.msg-text').text();
  47. },
  48. methods: {
  49. sendMsg(){
  50. this.msg = $('.msg-text').text();
  51. console.log(this.msg)
  52. }
  53. }
  54. }
  55. </script>
  56. <style scoped lang="scss">
  57. .msg-box{
  58. background: #131E30;
  59. min-height: calc(100vh - 50px);
  60. .mui-content{
  61. padding:0 10px;
  62. .ln-public {
  63. width: 100%;
  64. padding: 0 10px;
  65. font-size: 20px;
  66. line-height: 28px;
  67. font-weight: 600;
  68. margin: 20px auto;
  69. color: #D9E4F6;
  70. word-break: break-all;
  71. }
  72. .msg-text {
  73. width: calc(100% - 20px);
  74. min-height: 98px;
  75. line-height: 24px;
  76. color: #D9E4F6;
  77. padding: 10px 0;
  78. background: #061623;
  79. border: 1px solid rgba(39,60,83,0.5);
  80. margin: 10px;
  81. }
  82. .msg-btn {
  83. display: block;
  84. width: 82%;
  85. height: 42px;
  86. line-height: 42px;
  87. border: 0;
  88. border-radius: 3px;
  89. text-align: center;
  90. padding: 0;
  91. font-size: 16px;
  92. background: #007AFF;
  93. color: #FFFFFF;
  94. margin: 15px auto;
  95. margin-top: 60px;
  96. overflow: hidden;
  97. text-overflow: ellipsis;
  98. white-space: nowrap;
  99. }
  100. .msg-list {
  101. width: calc(100% - 20px);
  102. line-height: 20px;
  103. padding: 0 10px;
  104. border-top: 1px solid rgba(39,60,83,0.5);
  105. list-style-type: none;
  106. margin: 0;
  107. -webkit-padding-start: 0;
  108. .msg-item{
  109. padding: 2px 0;
  110. border-bottom: 1px solid rgba(39,60,83,0.5);
  111. color: #D9E4F6;
  112. .msg-list-con {
  113. width: 100%;
  114. overflow: auto;
  115. margin: 15px 0;
  116. .msg-list-tit {
  117. width: 100%;
  118. height: 30px;
  119. line-height: 30px;
  120. .msg-list-name {
  121. max-width: calc(100% - 120px);
  122. height: 30px;
  123. float: left;
  124. overflow: hidden;
  125. text-overflow: ellipsis;
  126. white-space: nowrap;
  127. color: #D9E4F6;
  128. }
  129. .msg-list-time {
  130. max-width: 110px;
  131. height: 30px;
  132. font-size: 12px;
  133. color: #495B73;
  134. text-align: right;
  135. float: right;
  136. overflow: hidden;
  137. }
  138. }
  139. .msg-list-intro {
  140. width: 100%;
  141. line-height: 20px;
  142. color: #495B73;
  143. text-align: justify;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. </style>