feedback.vue 5.1 KB

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