feedback.vue 5.3 KB

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