feedback.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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" justify="flex-end">
  9. <u-col span="4">
  10. <image class="logo-rules" @click="openDetail" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/common/rules.png" />
  11. </u-col>
  12. </u-row>
  13. </view>
  14. <view class="content">
  15. <view class="content_text">
  16. <view class="intro-content">
  17. <view> 七榔槟榔消费者反馈表 </view>
  18. <view> 亲爱的消费者: </view>
  19. <view> 感谢您选择七榔槟榔!为了能给您带来更优质的产品和服务体验,我们诚挚地邀请您填写这份反馈表。您的宝贵意见对我们至关重要,我们会认真对待每一条反馈。若您的建议被采纳,将有机会获得超吉炫精心准备的礼品哦!
  20. </view>
  21. </view>
  22. <view class="from">
  23. <view class="filter-btn-group">
  24. <view class="row-text">留言类型:</view>
  25. <view v-for="(item, idx) in filterOptions" :key="idx"
  26. :class="['filter-btn', filterStatus === item.value ? 'active' : '']"
  27. @click="onFilterChange(item.value)">
  28. {{ item.label }}
  29. </view>
  30. </view>
  31. <u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
  32. <u-form-item label="留言人姓名:" prop="userInfo.name" ref="item1">
  33. <u--input v-model="model1.userInfo.name" border="none" color="#493D3E"></u--input>
  34. </u-form-item>
  35. <u-form-item label="联系电话:" prop="userInfo.tel" ref="item1">
  36. <u--input v-model="model1.userInfo.tel" border="none" color="#493D3E"></u--input>
  37. </u-form-item>
  38. <u-form-item label="E-mail:" prop="userInfo.mail" ref="item1">
  39. <u--input v-model="model1.userInfo.mail" border="none" color="#493D3E"></u--input>
  40. </u-form-item>
  41. <u-form-item label="留言:" ref="item1">
  42. <u--textarea v-model="model1.userInfo.liuyan" border="none" color="#493D3E"></u--textarea>
  43. </u-form-item>
  44. </u--form>
  45. </view>
  46. </view>
  47. <view class="return_view" style="justify-content: space-around;">
  48. <view class="return-button" @click="saveData">保存</view>
  49. <view class="return-button" @click="goBack">返回</view>
  50. </view>
  51. </view>
  52. <u-toast ref="uToast"></u-toast>
  53. </view>
  54. </template>
  55. <script>
  56. import {
  57. feed
  58. } from '@/api/scan'
  59. import feedbackMixin from '@/mixins/feedbackMixin.js'
  60. export default {
  61. mixins: [feedbackMixin],
  62. methods: {
  63. saveData() {
  64. // 调用 mixin 中的方法,传入特定的 API 函数
  65. this.baseSaveData(feed, (data) => {
  66. // 可以在这里添加特定的成功回调处理
  67. });
  68. },
  69. goBack() {
  70. this.baseGoBack();
  71. },
  72. openDetail() {
  73. this.baseOpenDetail("qilang");
  74. },
  75. onFilterChange(val) {
  76. this.baseOnFilterChange(val);
  77. },
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. @import url('../../../static/scss/common_qilang.css');
  83. .row-class {
  84. height: 80rpx;
  85. }
  86. .cardTop{
  87. background-image:
  88. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/yjfk.png");
  89. }
  90. .theme-text {
  91. height: 10vh;
  92. text-align: center;
  93. line-height: 11vh;
  94. .textImage {
  95. height: 80rpx;
  96. width: 400rpx;
  97. }
  98. }
  99. ::v-deep .u-form-item__body__left {
  100. width: 160rpx !important;
  101. }
  102. ::v-deep .u-form-item__body__left__content__label {
  103. font-weight: bold;
  104. font-size: 26rpx !important;
  105. color: #493D3E !important;
  106. }
  107. ::v-deep .u-form-item__body__right {
  108. border: 1px solid #F94C28 !important;
  109. }
  110. ::v-deep .u-textarea {
  111. background-color: rgba(0, 0, 0, 0) !important;
  112. }
  113. ::v-deep .u-textarea__field{
  114. color:#fff !important;
  115. }
  116. ::v-deep .u-form-item__body {
  117. display: flex;
  118. flex-direction: row;
  119. padding: 0 0 !important;
  120. padding-top: 10rpx !important;
  121. }
  122. ::v-deep .u-form-item__body__right__message {
  123. margin-left: 160rpx !important;
  124. }
  125. .filter-btn-group {
  126. display: flex;
  127. justify-content: flex-start;
  128. align-items: center;
  129. gap: 24rpx;
  130. margin: 10rpx 0 10rpx 0;
  131. }
  132. .filter-btn {
  133. padding: 4rpx 20rpx;
  134. border: 2rpx solid #F94C28;
  135. color: #F94C28;
  136. font-size: 28rpx;
  137. transition: all 0.2s;
  138. margin-left: 10rpx;
  139. }
  140. .filter-btn.active {
  141. background: #F94C28 ;
  142. color: #fff;
  143. border: 2rpx solid #F94C28 ;
  144. }
  145. .row-text {
  146. font-weight: bold;
  147. font-size: 26rpx;
  148. color: #493D3E;
  149. }
  150. .content {
  151. height: 69vh;
  152. overflow: auto;
  153. padding: 32rpx 24rpx 24rpx 24rpx;
  154. margin: 10vh 32rpx 0;
  155. border-radius: 48px;
  156. background: #FDE2B1;
  157. border: 6px solid #FB911b;
  158. }
  159. .savaBtn {
  160. margin-top: 10px;
  161. font-weight: 600;
  162. }
  163. .intro-content {
  164. font-weight: 500;
  165. font-size: 28rpx;
  166. color: #3F4B5F;
  167. }
  168. </style>