index.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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-ross',
  30. mixins: [feedbackMixin],
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. // pc 端
  35. @media screen and (min-width: 768px) {
  36. .page-top {
  37. height: 360px;
  38. @include themify($themes) {
  39. background: themed('pc-banner-feedback');
  40. }
  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. @include themify($themes) {
  80. background-color: themed('color');
  81. }
  82. color: #fff;
  83. transition: all 0.2s;
  84. cursor: pointer;
  85. &:hover {
  86. @include themify($themes) {
  87. background-color: themed('hover-color');
  88. }
  89. }
  90. &.disabled {
  91. background-color: #d8d8d8 !important;
  92. }
  93. }
  94. }
  95. .dialog {
  96. width: 380px;
  97. padding-top: 40px;
  98. border-radius: 0;
  99. .dialog-content {
  100. width: 100%;
  101. height: 100%;
  102. display: flex;
  103. justify-content: center;
  104. align-items: center;
  105. flex-direction: column;
  106. .title {
  107. font-size: 24px;
  108. color: #101010;
  109. margin: 28px 0 12px;
  110. }
  111. .tip {
  112. color: #404040;
  113. font-size: 16px;
  114. }
  115. .line {
  116. width: 340px;
  117. height: 1px;
  118. margin: 0 auto;
  119. margin-top: 28px;
  120. background: #d8d8d8;
  121. }
  122. .image-icon {
  123. width: 140px;
  124. height: 100px;
  125. @include themify($themes) {
  126. background: themed('pc-icon-feedback-submit') no-repeat center;
  127. background-size: 140px 100px;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. // 移动 端
  134. @media screen and (max-width: 768px) {
  135. .page-top {
  136. height: 46vw;
  137. @include themify($themes) {
  138. background: themed('h5-banner-feedback');
  139. }
  140. background-size: auto 46vw;
  141. .logo {
  142. display: block;
  143. width: 14.8vw;
  144. height: 14.8vw;
  145. border-radius: 50%;
  146. background: #fff;
  147. }
  148. .name {
  149. font-size: 4vw;
  150. color: #fff;
  151. }
  152. }
  153. .page-content {
  154. .control {
  155. display: block;
  156. width: 100%;
  157. height: 56vw;
  158. border: 0.1vw solid #d8d8d8;
  159. outline: none;
  160. box-sizing: border-box;
  161. font-size: 3.2vw;
  162. color: #101010;
  163. }
  164. .submit {
  165. text-align: center;
  166. line-height: 11.6vw;
  167. width: 100%;
  168. height: 11.6vw;
  169. border-radius: 0.2vw;
  170. font-size: 4vw;
  171. @include themify($themes) {
  172. background-color: themed('color');
  173. }
  174. color: #fff;
  175. &.disabled {
  176. background-color: #d8d8d8;
  177. }
  178. }
  179. }
  180. .dialog {
  181. width: 76vw;
  182. border-radius: 0;
  183. .dialog-content {
  184. padding-top: 3.2vw;
  185. width: 100%;
  186. height: 100%;
  187. display: flex;
  188. justify-content: center;
  189. align-items: center;
  190. flex-direction: column;
  191. .title {
  192. font-size: 4.6vw;
  193. color: #101010;
  194. margin: 3.2vw 0;
  195. }
  196. .tip {
  197. color: #404040;
  198. font-size: 3.2vw;
  199. }
  200. .image-icon {
  201. width: 30vw;
  202. height: 20vw;
  203. @include themify($themes) {
  204. background: themed('pc-icon-feedback-submit') no-repeat center;
  205. background-size: 30vw 20vw;
  206. }
  207. }
  208. }
  209. }
  210. }
  211. </style>