index.vue 5.1 KB

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