index.vue 4.7 KB

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