online_complain.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <view class="content">
  3. <view class="online_box">
  4. <view class="online_title">{{datas.illegal}}</view>
  5. <u-line color="#E6E6E6" />
  6. <view class="online" style="padding-top: 10rpx;">
  7. <view class="online_tit">投诉理由</view>
  8. <view class="online_test">{{datas.wrongExplain}}</view>
  9. </view>
  10. <view class="online">
  11. <view class="online_tit">关联订单</view>
  12. <view class="online_text" v-if="datas.shipAddress">
  13. <view class="green"></view>
  14. <text>{{datas.shipAddress}}</text>
  15. </view>
  16. <view class="online_text" v-if="datas.deliveryAddress">
  17. <view class="orgin"></view>
  18. <text>{{datas.deliveryAddress}}</text>
  19. </view>
  20. <view class="margin-top-xs flex align-center" v-if="datas.indentNumber" @click="copyClick(datas.indentNumber)">
  21. 订单号:{{datas.indentNumber}}
  22. <image src="../../static/copy.png" style="width: 30rpx;height: 30rpx;margin-left: 10rpx;"></image>
  23. </view>
  24. </view>
  25. <view class="online">
  26. <view class="online_tit">违规说明</view>
  27. <view style="font-size: 24rpx;margin-top: 10rpx;">{{datas.resultHanding}}</view>
  28. <view class="pnline_tip">如果配送中上报异常,审核成功后违规消除,不扣款</view>
  29. </view>
  30. <view class="online" v-if="datas.auditMessage">
  31. <view class="online_tit">申诉结果</view>
  32. <view style="font-size: 24rpx;margin-top: 10rpx;"></view>
  33. <view class="pnline_tip" style="color:red">{{datas.auditMessage}}</view>
  34. </view>
  35. </view>
  36. <view class="btn" v-if="datas.complaintState=='1'||datas.complaintState=='5'" @click="bindonline">在线申诉</view>
  37. <view class="btn btn1" v-if="datas.complaintState=='2'">申诉中</view>
  38. <view class="btn" v-if="datas.complaintState=='3'" @click="bindonline">申诉未通过</view>
  39. <view class="btn" v-if="datas.complaintState=='4'">申诉通过</view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. list: [{
  47. id: 1,
  48. name: '西安智能大厦'
  49. }, {
  50. id: 2,
  51. name: '用户地址隐藏',
  52. }],
  53. indentNumber: '',
  54. datas: {},
  55. complaintId: ''
  56. }
  57. },
  58. onLoad(options) {
  59. console.log(options)
  60. this.indentNumber = options.indentNumber
  61. this.complaintId = options.complaintId
  62. // this.bindorder()
  63. },
  64. onShow() {
  65. console.log('`````````````11111111')
  66. if (this.indentNumber != '') {
  67. this.bindorder()
  68. }
  69. },
  70. methods: {
  71. copyClick(copy) {
  72. uni.setClipboardData({
  73. data: copy,
  74. success: function(res) {
  75. uni.getClipboardData({
  76. success: function(res) {
  77. uni.showToast({
  78. title: "复制成功",
  79. icon: 'none',
  80. });
  81. },
  82. });
  83. },
  84. });
  85. },
  86. bindonline() {
  87. uni.navigateTo({
  88. url: '/my/appeal/myOnline?indentNumber=' + this.indentNumber + '&complaintType=' +
  89. this.datas.complaintType + '&complaintId=' + this.complaintId
  90. })
  91. },
  92. // 获取数据
  93. bindorder() {
  94. this.$Request.getT('/app/indent/findComplaint', {
  95. indentNumber: this.indentNumber,
  96. complaintId: this.complaintId
  97. }).then(res => {
  98. if (res.code == 0) {
  99. this.datas = res.data
  100. } else {
  101. console.log('失败:', res.data)
  102. }
  103. });
  104. },
  105. }
  106. }
  107. </script>
  108. <style>
  109. body {
  110. background-color: #F5F5F5;
  111. }
  112. .content {
  113. width: 100%;
  114. }
  115. .green {
  116. width: 16rpx;
  117. height: 16rpx;
  118. background: #1FC657;
  119. border-radius: 50%;
  120. margin-right: 20rpx;
  121. }
  122. .orgin {
  123. width: 16rpx;
  124. height: 16rpx;
  125. background: #FBAC04;
  126. border-radius: 50%;
  127. margin-right: 20rpx;
  128. }
  129. .online_box {
  130. width: 90%;
  131. margin: 0 auto;
  132. background: #FFFFFF;
  133. border-radius: 20rpx;
  134. margin-top: 30rpx;
  135. }
  136. .online_title {
  137. font-size: 28rpx;
  138. font-weight: bold;
  139. letter-spacing: 2rpx;
  140. width: 90%;
  141. margin: 0 auto;
  142. line-height: 80rpx;
  143. }
  144. .online {
  145. width: 90%;
  146. margin: 0 auto;
  147. padding-bottom: 34rpx;
  148. }
  149. .online_tit {
  150. font-size: 27rpx;
  151. letter-spacing: 2rpx;
  152. font-weight: bolder;
  153. line-height: 40rpx;
  154. }
  155. .online_test {
  156. color: #333333;
  157. font-size: 26rpx;
  158. letter-spacing: 2rpx;
  159. line-height: 38rpx;
  160. }
  161. .online_text {
  162. display: flex;
  163. align-items: center;
  164. }
  165. .online_text image {
  166. width: 15rpx;
  167. height: 15rpx;
  168. }
  169. .online_text text {
  170. font-size: 21rpx;
  171. color: #333333;
  172. margin-left: 5rpx;
  173. letter-spacing: 1rpx;
  174. }
  175. .pnline_tip {
  176. color: #999999;
  177. font-size: 25rpx;
  178. line-height: 50rpx;
  179. }
  180. .btn {
  181. width: 90%;
  182. margin: 0 auto;
  183. background: #346EF6;
  184. line-height: 90rpx;
  185. text-align: center;
  186. color: white;
  187. border-radius: 15rpx;
  188. margin-top: 20rpx;
  189. font-size: 28rpx;
  190. }
  191. .btn1 {
  192. background: #ccc;
  193. }
  194. </style>