index.vue 5.4 KB

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