建材商城系统20241014
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

330 lines
7.0 KiB

8 months ago
  1. <template>
  2. <!-- 帮助与反馈 -->
  3. <view class="help">
  4. <navbar title="帮助与反馈" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="help-box">
  6. <view>
  7. <view class="help-issue">
  8. <text>问题和意见</text>
  9. <text style="color: #BD3624;">*</text>
  10. </view>
  11. <uv-textarea v-model="value" :count="true" border="none" height="400"
  12. placeholder="请把发现的问题提交给我们,感谢您的参与(必填)"
  13. :text-style="{color:'#BCB7B7',fontSize:'28rpx'}" />
  14. </view>
  15. <view>
  16. <view class="help-issue">
  17. <text>问题截图</text>
  18. <text style="color: #BD3624;">*</text>
  19. </view>
  20. <view class="help-screenshot">
  21. <uv-upload :fileList="fileList" multiple :maxCount="3" width="180rpx"
  22. height="180rpx" multiple @afterRead="afterRead" @delete="deleteImage">
  23. <image src="../static/help/uploading.png" mode="aspectFill"
  24. style="width: 180rpx;height: 180rpx;" />
  25. </uv-upload>
  26. </view>
  27. </view>
  28. <!-- <view>
  29. <view class="help-issue">
  30. <text>联系方式</text>
  31. <text style="color: #BD3624;">*</text>
  32. </view>
  33. <uv-input placeholder="请输入联系方式" fontSize="24rpx" border="bottom"
  34. :custom-style="{backgroundColor: '#fff'}">
  35. <template #prefix>
  36. <uv-text text="联系姓名" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" />
  37. </template>
  38. </uv-input>
  39. <uv-input placeholder="请输入联系姓名" border="none" fontSize="24rpx"
  40. :custom-style="{backgroundColor: '#fff'}">
  41. <template #prefix>
  42. <uv-text text="联系方式" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" />
  43. </template>
  44. </uv-input>
  45. </view> -->
  46. <view class="help-button">
  47. <view>确认</view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <template>
  53. <view class="page">
  54. <navbar title="帮助与反馈" leftClick @leftClick="$utils.navigateBack"/>
  55. <view class="frame">
  56. <!--帮助与反馈-->
  57. <view class="helpFeedback">
  58. <view class="title"> 问题和意见 <span style="color: red;">*</span></view>
  59. <view class="desc">
  60. <textarea placeholder="请把发现的问题提交给我们,感谢您的参与(必填)"/>
  61. </view>
  62. </view>
  63. <!--问题截图-->
  64. <view class="problemImg">
  65. <view class="title">问题截图<span style="color: red;">*</span></view>
  66. <view class="img">
  67. <uv-upload
  68. :fileList="fileList"
  69. :maxCount="5"
  70. multiple
  71. width="150rpx"
  72. height="150rpx"
  73. @delete="deleteImage"
  74. @afterRead="afterRead"
  75. :previewFullImage="true">
  76. </uv-upload>
  77. </view>
  78. </view>
  79. <!--联系方式-->
  80. <view class="name_phone">
  81. <view class="title">联系方式<span style="color: red;">*</span></view>
  82. <view class="items">
  83. <view class="item">
  84. <view>联系姓名</view>
  85. <view>
  86. <input placeholder="请输入联系姓名" clearable></input>
  87. </view>
  88. </view>
  89. <view class="item">
  90. <view>联系电话</view>
  91. <view>
  92. <input placeholder="请输入联系电话" clearable></input>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <!--提交反馈-->
  98. <view class="btns">
  99. <view @click="submitFeedback" class="btn">
  100. 提交反馈
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </template>
  106. <script>
  107. import topbar from "@/components/base/topbar.vue";
  108. import tabber from "@/components/base/tabbar.vue";
  109. export default {
  110. name: "helpFeedback",
  111. components: {tabber, topbar},
  112. data() {
  113. return {
  114. fileList: [],
  115. }
  116. },
  117. methods: {
  118. // 提交反馈
  119. submitFeedback() {
  120. },
  121. deleteImage(e) {
  122. this.fileList.splice(e.index, 1)
  123. },
  124. afterRead(e) {
  125. let self = this
  126. e.file.forEach(file => {
  127. self.$Oss.ossUpload(file.url).then(url => {
  128. self.fileList.push({
  129. url
  130. })
  131. })
  132. })
  133. },
  134. },
  135. }
  136. </script>
  137. <style scoped lang="scss">
  138. .page {
  139. height: 100vh;
  140. background-color: #f2f5f5;
  141. .frame {
  142. padding: 40rpx;
  143. display: flex;
  144. flex-direction: column;
  145. justify-content: center;
  146. gap: 40rpx;
  147. .helpFeedback {
  148. .title {
  149. }
  150. .desc {
  151. margin-top: 20rpx;
  152. height: 300rpx;
  153. border-radius: 40rpx;
  154. overflow: hidden;
  155. padding: 20rpx;
  156. font-size: 28rpx;
  157. background-color: #fff;
  158. }
  159. }
  160. .problemImg {
  161. .img {
  162. margin-top: 20rpx;
  163. height: 150rpx;
  164. border-radius: 40rpx;
  165. overflow: hidden;
  166. padding: 20rpx;
  167. font-size: 28rpx;
  168. background-color: #fff;
  169. }
  170. }
  171. .name_phone {
  172. .title {
  173. }
  174. .items {
  175. margin-top: 20rpx;
  176. .item {
  177. display: flex;
  178. align-items: center;
  179. background-color: #FFF;
  180. height: 80rpx;
  181. padding: 10rpx 0 0 20rpx;
  182. border-bottom: 1px solid #efefef;
  183. > view:nth-of-type(1) {
  184. width: 30%;
  185. // font-weight: 700;
  186. }
  187. > view:nth-of-type(2) {
  188. width: 70%;
  189. border-radius: 10rpx;
  190. overflow: hidden;
  191. input {
  192. background-color: #FFF;
  193. font-size: 28rpx;
  194. padding: 16rpx 8rpx 16rpx 15rpx;
  195. }
  196. }
  197. }
  198. }
  199. }
  200. .btns {
  201. width: 100%;
  202. display: flex;
  203. flex-direction: column;
  204. align-items: center;
  205. justify-content: center;
  206. gap: 20rpx;
  207. .btn {
  208. display: flex;
  209. align-items: center;
  210. justify-content: center;
  211. width: 500rpx;
  212. height: 70rpx;
  213. border-radius: 40rpx;
  214. color: #FFF;
  215. font-size: 28rpx;
  216. margin: 20rpx 10rpx 0 0;
  217. background: $uni-color;
  218. //margin-top: 20rpx;
  219. border-radius: 40rpx;
  220. }
  221. }
  222. }
  223. }
  224. </style>
  225. <script>
  226. export default {
  227. data() {
  228. return {
  229. value: "",
  230. fileList: []
  231. }
  232. },
  233. onLoad(args) {
  234. },
  235. methods: {
  236. deleteImage(e){
  237. this.fileList.splice(e.index, 1)
  238. },
  239. afterRead(e){
  240. let self = this
  241. e.file.forEach(file => {
  242. self.$Oss.ossUpload(file.url).then(url => {
  243. self.fileList.push({
  244. url
  245. })
  246. })
  247. })
  248. },
  249. }
  250. }
  251. </script>
  252. <style scoped lang="scss">
  253. .help {
  254. .help-box {
  255. width: 92%;
  256. margin-left: 4%;
  257. .help-issue {
  258. margin: 20rpx;
  259. font-size: 28rpx;
  260. font-weight: 600;
  261. color: #333333;
  262. }
  263. .help-screenshot {
  264. display: flex;
  265. align-items: center;
  266. background-color: #fff;
  267. padding: 20rpx;
  268. }
  269. .help-button {
  270. display: flex;
  271. justify-content: center;
  272. font-size: 24rpx;
  273. flex-shrink: 0;
  274. margin-top: 60rpx;
  275. view {
  276. padding: 14rpx 120rpx;
  277. border-radius: 38rpx;
  278. }
  279. view:nth-child(1) {
  280. background: $uni-color;
  281. color: #fff;
  282. }
  283. view:nth-child(2) {
  284. color: #FFFDF6;
  285. background-color: #C83741;
  286. }
  287. }
  288. }
  289. }
  290. </style>