index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <div class="page">
  3. <div class="page-top"></div>
  4. <div class="page-content p-4 md:my-4">
  5. <textarea
  6. class="control p-2"
  7. placeholder="请在此处输入您的宝贵意见(限200字)"
  8. v-model="content"
  9. ></textarea>
  10. <div class="submit mt-6" @click="onSubmit">提交</div>
  11. </div>
  12. <van-dialog v-model="showModal" class="dialog" @confirm="onConfirm">
  13. <div class="dialog-content">
  14. <div class="image-icon"></div>
  15. <div class="title">提交成功</div>
  16. <div class="tip">您的反馈信息已提交,感谢您的宝贵意见。</div>
  17. <div class="line" />
  18. </div>
  19. </van-dialog>
  20. </div>
  21. </template>
  22. <script>
  23. import feedbackMixin from '@/mixins/feedback'
  24. export default {
  25. layout: 'app-normal',
  26. mixins: [feedbackMixin],
  27. }
  28. </script>
  29. <style scoped lang="scss">
  30. // pc 端
  31. @media screen and (min-width: 768px) {
  32. .page-top {
  33. height: 360px;
  34. background: url(~assets/theme-images/normal/pc/banner-feedback.png);
  35. background-size: auto 360px;
  36. background-position: center;
  37. .logo {
  38. display: block;
  39. width: 120px;
  40. height: 120px;
  41. border-radius: 50%;
  42. background: #fff;
  43. }
  44. .name {
  45. font-size: 30px;
  46. color: #fff;
  47. }
  48. }
  49. .page-content {
  50. width: 1200px;
  51. margin-left: auto;
  52. margin-right: auto;
  53. box-sizing: border-box;
  54. background-color: #fff;
  55. .control {
  56. display: block;
  57. width: 100%;
  58. height: 280px;
  59. border: 1px solid #d8d8d8;
  60. outline: none;
  61. box-sizing: border-box;
  62. font-size: 16px;
  63. color: #101010;
  64. }
  65. .submit {
  66. text-align: center;
  67. line-height: 46px;
  68. width: 326px;
  69. height: 46px;
  70. margin-left: auto;
  71. margin-right: auto;
  72. border-radius: 4px;
  73. font-size: 16px;
  74. background-color: #bc1724;
  75. color: #fff;
  76. transition: all 0.2s;
  77. cursor: pointer;
  78. &:hover {
  79. background-color: #b41724;
  80. }
  81. &.disabled {
  82. background-color: #d8d8d8 !important;
  83. }
  84. }
  85. }
  86. .dialog {
  87. width: 380px;
  88. padding-top: 40px;
  89. border-radius: 0;
  90. .dialog-content {
  91. width: 100%;
  92. height: 100%;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. flex-direction: column;
  97. .title {
  98. font-size: 24px;
  99. color: #101010;
  100. margin: 28px 0 12px;
  101. }
  102. .tip {
  103. color: #404040;
  104. font-size: 16px;
  105. }
  106. .line {
  107. width: 340px;
  108. height: 1px;
  109. margin: 0 auto;
  110. margin-top: 28px;
  111. background: #d8d8d8;
  112. }
  113. .image-icon {
  114. width: 140px;
  115. height: 100px;
  116. background: url(~assets/theme-images/normal/pc/icon-feedback-submit.png)
  117. no-repeat center;
  118. background-size: 140px 100px;
  119. }
  120. }
  121. }
  122. }
  123. // 移动 端
  124. @media screen and (max-width: 768px) {
  125. .page-top {
  126. height: 46vw;
  127. background: url(~assets/theme-images/normal/pc/banner-feedback.png);
  128. background-size: auto 46vw;
  129. background-position: center;
  130. .logo {
  131. display: block;
  132. width: 14.8vw;
  133. height: 14.8vw;
  134. border-radius: 50%;
  135. background: #fff;
  136. }
  137. .name {
  138. font-size: 4vw;
  139. color: #fff;
  140. }
  141. }
  142. .page-content {
  143. .control {
  144. display: block;
  145. width: 100%;
  146. height: 56vw;
  147. border: 0.1vw solid #d8d8d8;
  148. outline: none;
  149. box-sizing: border-box;
  150. font-size: 3.2vw;
  151. color: #101010;
  152. }
  153. .submit {
  154. text-align: center;
  155. line-height: 11.6vw;
  156. width: 100%;
  157. height: 11.6vw;
  158. border-radius: 0.2vw;
  159. font-size: 4vw;
  160. background-color: #bc1724;
  161. color: #fff;
  162. &.disabled {
  163. background-color: #d8d8d8;
  164. }
  165. }
  166. }
  167. .dialog {
  168. width: 76vw;
  169. border-radius: 0;
  170. .dialog-content {
  171. padding-top: 3.2vw;
  172. width: 100%;
  173. height: 100%;
  174. display: flex;
  175. justify-content: center;
  176. align-items: center;
  177. flex-direction: column;
  178. .title {
  179. font-size: 4.6vw;
  180. color: #101010;
  181. margin: 3.2vw 0;
  182. }
  183. .tip {
  184. color: #404040;
  185. font-size: 3.2vw;
  186. }
  187. .image-icon {
  188. width: 30vw;
  189. height: 20vw;
  190. background: url(~assets/theme-images/normal/pc/icon-feedback-submit.png)
  191. no-repeat center;
  192. background-size: 30vw 20vw;
  193. }
  194. }
  195. }
  196. }
  197. </style>