myOnline.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="content">
  3. <view class="online_box">
  4. <view class="online">
  5. <view class="tit">申诉理由</view>
  6. <view class="text_box" style="margin-top: 20rpx;">
  7. <u-input v-model="value" height="300" :type="type" :border="border" :clearable="false" placeholder="请描述问题发生的情况" />
  8. </view>
  9. </view>
  10. </view>
  11. <view class="btn" @click="bindorder">立即提交</view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. value: '',
  19. type: 'textarea',
  20. border: true,
  21. indentNumber:'',
  22. complaintType:'',
  23. complaintName:'',
  24. complaintId: '',
  25. }
  26. },
  27. onLoad(options) {
  28. console.log(options)
  29. this.indentNumber =options.indentNumber
  30. this.complaintId =options.complaintId
  31. },
  32. methods: {
  33. bindorder(){
  34. if(this.value==''){
  35. uni.showToast({
  36. title:'请输入申诉理由',
  37. icon:'none'
  38. })
  39. return
  40. }
  41. this.$Request.postJson('/app/indent/appealIndent',
  42. {
  43. indentNumber:this.indentNumber,
  44. // appealType:this.complaintType,
  45. appealMessage:this.value,
  46. complaintId: this.complaintId
  47. }).then(res => {
  48. if(res.code==0){
  49. uni.showToast({
  50. title:'提交成功',
  51. icon:'none'
  52. })
  53. setTimeout(function(){
  54. uni.redirectTo({
  55. url:'/my/appeal/index'
  56. })
  57. },1500)
  58. }else{
  59. console.log('失败:',res.data)
  60. }
  61. });
  62. }
  63. }
  64. }
  65. </script>
  66. <style>
  67. body {
  68. background-color: #F5F5F5;
  69. }
  70. .content {
  71. width: 100%;
  72. }
  73. .online_box {
  74. width: 90%;
  75. margin: 0 auto;
  76. background: #FFFFFF;
  77. border-radius: 20rpx;
  78. margin-top: 30rpx;
  79. padding-top: 20rpx;
  80. padding-bottom: 40rpx;
  81. }
  82. .part1 {
  83. width: 90%;
  84. margin: 0 auto;
  85. height: 80rpx;
  86. display: flex;
  87. align-items: center;
  88. }
  89. .online_left {
  90. flex: 1;
  91. font-size: 27rpx;
  92. font-weight: bold;
  93. letter-spacing: 2rpx;
  94. }
  95. .online_right {
  96. color: #999999;
  97. font-size: 22rpx;
  98. flex: 1;
  99. display: flex;
  100. justify-content: flex-end;
  101. align-items: center;
  102. }
  103. .online_right image {
  104. width: 12rpx;
  105. height: 21rpx;
  106. margin-left: 10rpx;
  107. }
  108. .online_title {
  109. font-size: 28rpx;
  110. font-weight: bold;
  111. letter-spacing: 2rpx;
  112. width: 90%;
  113. margin: 0 auto;
  114. line-height: 80rpx;
  115. }
  116. .online {
  117. width: 90%;
  118. margin: 0 auto;
  119. padding-bottom: 34rpx;
  120. }
  121. .tit {
  122. font-size: 27rpx;
  123. font-weight: bold;
  124. letter-spacing: 2rpx;
  125. margin-top: 19rpx;
  126. }
  127. .u-input--border {
  128. border: none !important;
  129. background: #F5F5F5 !important;
  130. }
  131. .btn {
  132. width: 90%;
  133. margin: 0 auto;
  134. background: #346EF6;
  135. line-height: 90rpx;
  136. text-align: center;
  137. color: white;
  138. border-radius: 15rpx;
  139. margin-top: 20rpx;
  140. font-size: 28rpx;
  141. }
  142. </style>