feedback.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <view class="intro-page common">
  3. <view class="top-class"></view>
  4. <view class="title">
  5. 意见反馈
  6. </view>
  7. <view class="head">
  8. <u-row class="row-class">
  9. <u-col span="4">
  10. <image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
  11. </u-col>
  12. <u-col span="4">
  13. <!-- <image class="commodity-img" src="/static/images/common/commodity.png" mode="aspectFit" /> -->
  14. </u-col>
  15. <u-col span="4">
  16. </u-col>
  17. </u-row>
  18. </view>
  19. <view class="theme-text">
  20. <image src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/text.png"
  21. class="textImage"></image>
  22. </view>
  23. <view class="intro-card">
  24. <view class="intro-view">
  25. <view class="intro-label">
  26. <view class="label-title">
  27. 意见反馈
  28. </view>
  29. </view>
  30. <view class="content">
  31. <view class="intro-content">
  32. 欢迎光临!各位梅山古镇的顾客朋友们,为了提供更优质的产品和更好的服务给你们,向各位征集对本公司的评价、期望、意见和建议,非常期待你们的反馈。我们将会报以更优质的服务。谢谢您的协助和厚爱。评价,建议一经公司评选和采纳,会有丰厚奖品赠送哦,赶快来参加吧!
  33. </view>
  34. <view class="from">
  35. <view class="filter-btn-group">
  36. <view class="row-text">留言类型:</view>
  37. <view v-for="(item, idx) in filterOptions" :key="idx"
  38. :class="['filter-btn', filterStatus === item.value ? 'active' : '']"
  39. @click="onFilterChange(item.value)">
  40. {{ item.label }}
  41. </view>
  42. </view>
  43. <u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
  44. <u-form-item label="留言人姓名:" prop="userInfo.name" ref="item1">
  45. <u--input v-model="model1.userInfo.name" border="none"></u--input>
  46. </u-form-item>
  47. <u-form-item label="联系电话:" prop="userInfo.tel" ref="item1">
  48. <u--input v-model="model1.userInfo.tel" border="none"></u--input>
  49. </u-form-item>
  50. <u-form-item label="E-mail:" prop="userInfo.mail" ref="item1">
  51. <u--input v-model="model1.userInfo.mail" border="none"></u--input>
  52. </u-form-item>
  53. <u-form-item label="留言:" ref="item1">
  54. <u--textarea v-model="model1.userInfo.liuyan" border="none"></u--textarea>
  55. </u-form-item>
  56. </u--form>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <u-toast ref="uToast"></u-toast>
  62. <!-- 返回按钮 -->
  63. <view class="footer-btn">
  64. <view @click="saveData" class="return-button" style="margin-right: 180rpx;">保存</view>
  65. <view @click="goBack" class="return-button">返回</view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. import {
  71. feed
  72. } from '@/api/scan'
  73. import feedbackMixin from '@/mixins/feedbackMixin.js'
  74. export default {
  75. mixins: [feedbackMixin],
  76. methods: {
  77. saveData() {
  78. // 调用 mixin 中的方法,传入特定的 API 函数
  79. this.baseSaveData(feed, (data) => {
  80. // 可以在这里添加特定的成功回调处理
  81. });
  82. },
  83. goBack() {
  84. this.baseGoBack();
  85. },
  86. openDetail() {
  87. this.baseOpenDetail("lgz");
  88. },
  89. onFilterChange(val) {
  90. this.baseOnFilterChange(val);
  91. },
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. @import url('../../../static/scss/common.css');
  97. .row-class {
  98. height: 80rpx;
  99. }
  100. .logo-img {
  101. background-size: cover;
  102. /* 确保背景图片自适应填充整个容器 */
  103. background-position: center;
  104. /* 背景图片居中显示 */
  105. background-repeat: no-repeat;
  106. /* 防止背景图重复 */
  107. height: 42rpx;
  108. width: 62%;
  109. }
  110. .commodity-img {
  111. background-size: cover;
  112. /* 确保背景图片自适应填充整个容器 */
  113. background-position: center;
  114. /* 背景图片居中显示 */
  115. background-repeat: no-repeat;
  116. /* 防止背景图重复 */
  117. height: 35rpx;
  118. width: 100%;
  119. }
  120. .theme-text {
  121. height: 10vh;
  122. text-align: center;
  123. line-height: 11vh;
  124. .textImage {
  125. height: 80rpx;
  126. width: 400rpx;
  127. }
  128. }
  129. .intro-card {
  130. margin: 0 32rpx;
  131. padding: 32rpx 24rpx 24rpx 24rpx;
  132. background: rgba(131, 100, 71, 0.5);
  133. border-radius: 10rpx;
  134. .intro-view {
  135. border: 1px solid #341B10;
  136. padding: 10px;
  137. margin-top: 20rpx;
  138. position: relative;
  139. .intro-label {
  140. background-image:
  141. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/label.png");
  142. /* 使用绝对路径 */
  143. background-size: contain;
  144. background-repeat: no-repeat;
  145. width: 220rpx;
  146. height: 120rpx;
  147. position: absolute;
  148. margin-top: -70rpx;
  149. align-content: center;
  150. .label-title {
  151. font-weight: bold;
  152. font-size: 30rpx;
  153. color: #341B10;
  154. text-align: center;
  155. margin-left: 10px;
  156. height: 120rpx;
  157. line-height: 110rpx;
  158. }
  159. }
  160. .intro-content {
  161. font-size: 26rpx;
  162. color: #5c4322;
  163. line-height: 1.8;
  164. text-align: justify;
  165. margin-top: 20rpx;
  166. }
  167. }
  168. }
  169. ::v-deep .u-form-item__body__left {
  170. width: 160rpx !important;
  171. }
  172. ::v-deep .u-form-item__body__left__content__label {
  173. font-weight: bold;
  174. font-size: 26rpx !important;
  175. color: #FFFFFF !important;
  176. }
  177. ::v-deep .u-form-item__body__right {
  178. border: 1px solid #9B0000 !important;
  179. }
  180. ::v-deep .u-textarea {
  181. background-color: rgba(0, 0, 0, 0) !important;
  182. }
  183. ::v-deep .u-form-item__body {
  184. display: flex;
  185. flex-direction: row;
  186. padding: 0 0 !important;
  187. padding-top: 10rpx !important;
  188. }
  189. ::v-deep .u-form-item__body__right__message {
  190. margin-left: 160rpx !important;
  191. }
  192. .filter-btn-group {
  193. display: flex;
  194. justify-content: flex-start;
  195. align-items: center;
  196. gap: 24rpx;
  197. margin: 10rpx 0 10rpx 0;
  198. }
  199. .filter-btn {
  200. padding: 4rpx 20rpx;
  201. border: 2rpx solid #b22222;
  202. color: #b22222;
  203. font-size: 28rpx;
  204. transition: all 0.2s;
  205. margin-left: 10rpx;
  206. }
  207. .filter-btn.active {
  208. background: #b22222;
  209. color: #fff;
  210. border: 2rpx solid #b22222;
  211. }
  212. .row-text {
  213. font-weight: bold;
  214. font-size: 26rpx;
  215. color: #FFFFFF;
  216. }
  217. .content {
  218. max-height: 60vh;
  219. overflow: auto;
  220. }
  221. .savaBtn {
  222. margin-top: 10px;
  223. font-weight: 600;
  224. }
  225. </style>