特易招,招聘小程序
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.

115 lines
2.0 KiB

  1. <template>
  2. <!-- 技工问题 -->
  3. <view class="page">
  4. <navbar title="意见反馈" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="page-two">
  6. <view class="headline">反馈内容</view>
  7. <view class="text-field">
  8. <uv-textarea v-model="form.question" placeholder="请简要描述您的问题和意见,以使我们提供更好的帮助" height="400rpx" maxlength="600"
  9. count="true" />
  10. </view>
  11. <view class="relation">
  12. <view>如有疑问请联系客服</view>
  13. <view style="color: #4280FD;">4008-678-918</view>
  14. </view>
  15. <view class="bottom">
  16. <view class="submit" @click="submit">
  17. 提交
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. form:{
  28. question: "",
  29. }
  30. }
  31. },
  32. onShow() {},
  33. methods: {
  34. submit(){
  35. let data = JSON.parse(JSON.stringify(this.form))
  36. if(this.$utils.verificationAll(this.form, {
  37. question : '请输入你的问题和意见',//问题和意见
  38. })){
  39. return
  40. }
  41. this.$api('addQuestion', data, res => {
  42. if(res.code == 200){
  43. uni.showToast({
  44. title: "反馈成功",
  45. icon:'none'
  46. })
  47. setTimeout(uni.navigateBack, 800, -1)
  48. }
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style scoped lang="less">
  55. .page {
  56. background-color: #fff;
  57. height: 100vh;
  58. .page-two {
  59. width: 90%;
  60. margin-left: 5%;
  61. }
  62. .headline {
  63. padding: 40rpx 0;
  64. font-size: 36rpx;
  65. font-weight: 600;
  66. color: #333;
  67. }
  68. .text-field {
  69. /deep/ .uv-textarea {
  70. background-color: #F6F6F6;
  71. }
  72. }
  73. .relation {
  74. display: flex;
  75. justify-content: center;
  76. margin-top: 40rpx;
  77. padding: 30rpx 0;
  78. font-size: 24rpx;
  79. background-color: #F6F6F6;
  80. border-radius: 8rpx;
  81. }
  82. .bottom {
  83. position: fixed;
  84. width: 90%;
  85. bottom: 40rpx;
  86. display: flex;
  87. justify-content: center;
  88. text-align: center;
  89. .submit {
  90. width: 90%;
  91. color: #fff;
  92. border-radius: 45rpx;
  93. font-size: 28rpx;
  94. background-color: #3796F8;
  95. padding: 25rpx 0;
  96. }
  97. }
  98. }
  99. </style>