myTousu.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <template>
  2. <view class="bonus-main">
  3. <view class="complain_box" v-for="(item,index) in matchdata" :key="index" @click="bindonline(item)">
  4. <view class="complain_part1">
  5. <view class="part1_left">{{item.illegal}}</view>
  6. <!-- <view class="part1_left" v-if="item.complaintType=='2'">拒绝系统推单</view> -->
  7. <!-- <view class="part1_left" v-if="item.complaintType=='3'">残损违规</view> -->
  8. <!-- <view class="part1_right">扣款{{item.deductMoney}}元</view> -->
  9. <view class="part1_rights1">{{item.complaintTime}}</view>
  10. </view>
  11. <view class="complain_part2 " v-if="item.shipAddress">
  12. <view class="green"></view>
  13. <text>{{item.shipAddress}}</text>
  14. </view>
  15. <view class="complain_part2 " v-if="item.deliveryAddress">
  16. <view class="orgin"></view>
  17. <text>{{item.deliveryAddress}}</text>
  18. </view>
  19. <view class="flex padding-lr margin-top-xs" v-if="item.wrongExplain">
  20. <view>投诉内容:</view>
  21. <view style="overflow: hidden;width: 480rpx;">{{item.wrongExplain}}</view>
  22. </view>
  23. <u-line color="#E6E6E6" />
  24. <view class="complain_title">
  25. <!-- <span v-if="item.complaintState=='1'">可申诉</span>
  26. <span v-if="item.complaintState=='2'">申诉中</span>
  27. <span v-if="item.complaintState=='3'">申诉未通过</span>
  28. <span v-if="item.complaintState=='4'">申诉通过</span> -->
  29. <span v-if="item.complaintState=='5'">待审核</span>
  30. <span v-if="item.complaintState=='6'">投诉未通过</span>
  31. <span v-if="item.complaintState!='6'&&item.complaintState!='5'">申诉通过</span>
  32. </view>
  33. </view>
  34. <!-- <view class="list-item" v-if="matchdata.length>0" :show-arrow="false" v-for="(item, index) in matchdata"
  35. :key="index">
  36. <view class="list-item-wrap">
  37. <view style="padding: 20rpx 30rpx;">
  38. <view class="list-title">投诉类型:{{ item.illegal }}</view>
  39. <view class="list-title">投诉内容:{{ item.wrongExplain }}</view>
  40. <view class="list-title" style="margin-top: 10upx;">被举报人:{{ item.byUserName }}</view>
  41. <view style="display: flex;justify-content: space-between;margin-top: 10rpx;">
  42. <view>
  43. <text>举报时间:{{ item.createAt }}</text>
  44. </view>
  45. </view>
  46. <view class="list-title" style="margin-top: 10upx;" v-if="item.status==0">状态:待处理
  47. </view>
  48. <view class="list-title" style="margin-top: 10upx;" v-if="item.status==4">状态:已处理
  49. </view>
  50. <view class="list-title" style="margin-top: 10upx;" v-if="item.status==1">状态:已驳回
  51. </view>
  52. <view class="list-title" style="margin-top: 10upx;" v-if="item.status==2">状态:已封号
  53. </view>
  54. <view class="list-title" style="margin-top: 10upx;" v-if="item.status==3">状态:已删除 </view>
  55. <view class="list-title" style="margin-top: 10upx;" v-if="item.auditContent">
  56. 处理结果:{{ item.auditContent }}</view>
  57. </view>
  58. </view> -->
  59. <!-- 加载更多提示 -->
  60. <!-- <view class="s-col is-col-24" v-if="matchdata.length > 0">
  61. <load-more :loadingType="loadingType" :contentText="contentText"></load-more>
  62. </view> -->
  63. <!-- 加载更多提示 -->
  64. <empty v-if="matchdata.length === 0" des="暂无数据" show="false"></empty>
  65. </view>
  66. </template>
  67. <script>
  68. import empty from '@/components/empty.vue'
  69. export default {
  70. components: {
  71. empty
  72. },
  73. data() {
  74. return {
  75. page: 1,
  76. limit: 5,
  77. userId: '',
  78. type: 3,
  79. loadingType: 0,
  80. scrollTop: false,
  81. matchdata: [],
  82. contentText: {
  83. contentdown: '上拉显示更多',
  84. contentrefresh: '正在加载...',
  85. contentnomore: '没有更多数据了'
  86. }
  87. };
  88. },
  89. onLoad() {
  90. this.mymatch()
  91. },
  92. methods: {
  93. mymatch() {
  94. this.loadingType = 1;
  95. uni.showLoading({
  96. title: '加载中...'
  97. });
  98. let userId = this.$queue.getData("userId");
  99. let data = {
  100. page: this.page,
  101. limit: this.limit
  102. }
  103. this.$Request.getT('/app/indent/getUserComplaint', data).then(res => {
  104. uni.stopPullDownRefresh();
  105. if (res.code === 0 && res.data) {
  106. if (this.page === 1) {
  107. this.matchdata = [];
  108. }
  109. res.data.records.forEach(d => {
  110. if (d.image) {
  111. d.image = d.image.split(',');
  112. }
  113. this.matchdata.push(d);
  114. });
  115. if (res.data.records.length === this.limit) {
  116. this.loadingType = 0
  117. } else {
  118. this.loadingType = 3
  119. }
  120. uni.hideLoading()
  121. } else {
  122. this.loadingType = 2;
  123. uni.hideLoading();
  124. }
  125. })
  126. },
  127. // 删除
  128. disposeDelete(item) {
  129. uni.showModal({
  130. title: '删除提醒',
  131. content: '确定要删除此条信息?',
  132. success: e => {
  133. if (e.confirm) {
  134. this.$Request.getT(`/userReport/delete?id=${item.id}`).then(res => {
  135. if (res.status === 0) {
  136. this.$queue.showToast('删除成功');
  137. this.page = 1
  138. this.matchdata = [];
  139. this.mymatch()
  140. }
  141. });
  142. }
  143. }
  144. });
  145. }, // 查看图片
  146. saveImg(imgs, index) {
  147. let that = this;
  148. let imgArr = imgs
  149. // imgArr.push(imgs);
  150. // //预览图片
  151. uni.previewImage({
  152. urls: imgArr,
  153. current: imgArr[index]
  154. });
  155. },
  156. },
  157. onReachBottom: function() {
  158. this.page = this.page + 1;
  159. this.mymatch();
  160. },
  161. onPullDownRefresh: function() {
  162. this.page = 1;
  163. this.mymatch();
  164. },
  165. };
  166. </script>
  167. <style>
  168. page {
  169. background-color: #F5F5F5;
  170. }
  171. .list-item {
  172. background-color: #FFFFFF;
  173. border-radius: 16rpx;
  174. margin: 20rpx 20rpx 20rpx 20rpx;
  175. }
  176. .img1 {
  177. width: 100%;
  178. height: 400rpx;
  179. }
  180. .img2 {
  181. width: 210rpx;
  182. height: 210rpx;
  183. margin-top: 15rpx;
  184. margin-right: 5rpx;
  185. margin-left: 15rpx;
  186. }
  187. .green {
  188. width: 16rpx;
  189. height: 16rpx;
  190. background: #1FC657;
  191. border-radius: 50%;
  192. margin-right: 20rpx;
  193. }
  194. .orgin {
  195. width: 16rpx;
  196. height: 16rpx;
  197. background: #FBAC04;
  198. border-radius: 50%;
  199. margin-right: 20rpx;
  200. }
  201. /* 全部 */
  202. .complain_box {
  203. width: 90%;
  204. margin: 0 auto;
  205. /* height: 300rpx; */
  206. background: #ffffff;
  207. margin-top: 30rpx;
  208. border-radius: 17rpx;
  209. }
  210. .complain_part1 {
  211. width: 90%;
  212. margin: 0 auto;
  213. display: flex;
  214. /* padding-top: 20rpx; */
  215. }
  216. .part1_left {
  217. flex: 1;
  218. font-size: 26rpx;
  219. font-weight: bold;
  220. letter-spacing: 2rpx;
  221. height: 80rpx;
  222. justify-content: left;
  223. align-items: center;
  224. display: flex;
  225. }
  226. .part1_right {
  227. flex: 1;
  228. color: #FF1B1B;
  229. display: flex;
  230. justify-content: flex-end;
  231. align-items: center;
  232. }
  233. .part1_rights1 {
  234. flex: 1;
  235. color: #999999;
  236. display: flex;
  237. justify-content: flex-end;
  238. align-items: center;
  239. }
  240. .complain_part2 {
  241. /* width: 90%; */
  242. padding: 0 30rpx;
  243. margin: 10rpx auto;
  244. /* height: 50rpx; */
  245. display: flex;
  246. justify-content: left;
  247. align-items: center;
  248. }
  249. .complain_part2 image {
  250. width: 15rpx;
  251. height: 15rpx;
  252. margin-right: 20rpx;
  253. }
  254. .complain_part2 text {
  255. color: #999999;
  256. font-size: 24rpx;
  257. }
  258. .u-line {
  259. border-bottom-width: 3px !important;
  260. margin-top: 20rpx !important;
  261. }
  262. .complain_title {
  263. width: 90%;
  264. margin: 0 auto;
  265. height: 80rpx;
  266. display: flex;
  267. justify-content: flex-end;
  268. align-items: center;
  269. color: #FF2727;
  270. font-size: 27rpx;
  271. font-weight: bold;
  272. letter-spacing: 2rpx;
  273. }
  274. </style>