index.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <template>
  2. <view class="content">
  3. <!-- <view class="complain_cont">
  4. <view class="complain_tabs" v-show="!isShow">
  5. <u-tabs :list="list" :is-scroll="true" name="illegal" :current="current" active-color="#FF7F00"
  6. @change="change"></u-tabs>
  7. </view>
  8. </view> -->
  9. <!-- <u-tabs :list="listTab" :is-scroll="false" inactive-color="#333333" active-color="#FF7F00" :current="currentIndex" @change="changeTab">
  10. </u-tabs> -->
  11. <view class="tabs_box dis">
  12. <!-- 全部 -->
  13. <view class="complain_box padding-bottom-xs" v-for="(item,index) in orderlist" :key="index" @click="bindonline(item)">
  14. <view class="complain_part1 ">
  15. <view class="part1_left">{{item.illegal}}</view>
  16. <!-- <view class="part1_left" v-if="item.complaintType=='2'">拒绝系统推单</view> -->
  17. <!-- <view class="part1_left" v-if="item.complaintType=='3'">残损违规</view> -->
  18. <!-- <view class="part1_right">扣款{{item.deductMoney}}元</view> -->
  19. <view class="complain_title">
  20. <span v-if="item.complaintState=='1'">投诉成功</span>
  21. <!-- <span v-if="item.complaintState=='2'">申诉中</span>
  22. <span v-if="item.complaintState=='3'">申诉未通过</span>
  23. <span v-if="item.complaintState=='4'">申诉通过</span> -->
  24. <span v-if="item.complaintState=='5'">投诉审核中</span>
  25. <span v-if="item.complaintState=='6'">投诉未通过</span>
  26. </view>
  27. </view>
  28. <view class="complain_part2" v-if="item.shopAddressDetail">
  29. <image src="../static/tousu/black.png"></image>
  30. <text>{{item.shopAddressDetail}}</text>
  31. </view>
  32. <view class="complain_part2" v-if="item.userAddressDetail">
  33. <image src="../static/tousu/orange.png"></image>
  34. <text>{{item.userAddressDetail}}</text>
  35. </view>
  36. <view class="complain_part2" v-if="item.complaintTime">
  37. <image src="../static/tousu/black.png"></image>
  38. <text>投诉时间:{{item.complaintTime}}</text>
  39. </view>
  40. <view class="complain_part2" v-if="item.indentNumber">
  41. <image src="../static/tousu/orange.png"></image>
  42. <text>订单号:{{item.indentNumber}}</text>
  43. </view>
  44. <!-- <u-line color="#E6E6E6" /> -->
  45. </view>
  46. <!-- <view class="empty" v-if="orderlist.length == 0">
  47. <view
  48. style="display: block; width: 90%; margin: 0 auto; position: fixed;top: 35%;left: 0rpx;right: 0rpx;text-align: center;">
  49. <image src="https://mxys.chuanghai-tech.com/wmfile/20250814/99c5ced85df04062a736276ba75bdd1e.png" style="width: 300rpx;height: 300rpx;"></image>
  50. <view style="color: #CCCCCC;">暂无内容</view>
  51. </view>
  52. </view> -->
  53. <empty v-if="!orderlist.length" style="z-index:0;position: relative;top: -20px;"></empty>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import empty from '@/components/empty.vue'
  59. export default {
  60. components: {
  61. empty
  62. },
  63. data() {
  64. return {
  65. isShow: false,
  66. page: 1,
  67. limit: 10,
  68. complaintType: null,
  69. complaintState: '',
  70. listTab: [{
  71. name: '全部'
  72. }, {
  73. name: '可申诉'
  74. }, {
  75. name: '申诉中'
  76. }, {
  77. name: '申诉未通过'
  78. }, {
  79. name: '申诉通过'
  80. }],
  81. currentIndex: 0,
  82. list: [{
  83. id: '',
  84. illegal: '全部'
  85. }],
  86. current: 0,
  87. orderlist: [],
  88. totalCount: 0,
  89. illegalId: ''
  90. }
  91. },
  92. mounted() {
  93. },
  94. onLoad() {
  95. // this.getTypeList()
  96. this.bindorder()
  97. },
  98. methods: {
  99. getTypeList() {
  100. this.$Request.getT('/app/illegalType/selectIllegalTypeList').then(res => {
  101. if (res.code == 0) {
  102. this.list = [...this.list, ...res.data]
  103. }
  104. });
  105. },
  106. bindlist(index) {
  107. console.log(index)
  108. this.current = index;
  109. this.isShow = !this.isShow
  110. },
  111. // 获取全部数据
  112. bindorder() {
  113. this.$Request.getT('/app/tbindent/selectComplaint', {
  114. page: this.page,
  115. limit: this.limit,
  116. // shopId:uni.getStorageSync('shopId')
  117. // complaintState: this.complaintState,
  118. // illegalId: this.illegalId
  119. }).then(res => {
  120. if (res.code == 0) {
  121. this.totalCount = res.data.totalCount
  122. if (this.page == 1) {
  123. this.orderlist = res.data.list
  124. } else {
  125. this.orderlist = this.list_box.concat(res.data.list)
  126. }
  127. } else {
  128. console.log('失败:', res.data)
  129. }
  130. });
  131. },
  132. change(index) {
  133. console.log(index)
  134. this.illegalId = this.list[index].id
  135. this.orderlist = []
  136. this.current = index;
  137. this.currentIndex = 0
  138. this.page = 1
  139. this.complaintState = ''
  140. this.bindorder()
  141. },
  142. changeTab(index) {
  143. this.orderlist = []
  144. this.currentIndex = index
  145. this.page = 1
  146. if (index == 0) {
  147. this.complaintState = ''
  148. } else {
  149. this.complaintState = index
  150. }
  151. this.bindorder()
  152. },
  153. bindonline(item) {
  154. // if(item.complaintState == 1 || item.complaintState == 4) {
  155. uni.navigateTo({
  156. url: '/my/tousu/detail?indentNumber=' + item
  157. .indentNumber + '&complaintId=' + item.complaintId
  158. })
  159. // }
  160. },
  161. bindshow() {
  162. this.isShow = !this.isShow
  163. },
  164. },
  165. // 上拉加载
  166. onReachBottom: function() {
  167. if (this.page < this.totalCount) {
  168. this.page = this.page + 1;
  169. } else {
  170. uni.showToast({
  171. title: '已经最后一页啦',
  172. icon: 'none'
  173. })
  174. }
  175. this.bindorder();
  176. }
  177. }
  178. </script>
  179. <style>
  180. body {
  181. background-color: #F5F5F5;
  182. }
  183. .empty {
  184. width: 100%;
  185. background: #ffffff;
  186. /* #ifdef MP-WEIXIN */
  187. height: 93vh;
  188. /* #endif */
  189. /* #ifndef MP-WEIXIN */
  190. height: 80vh;
  191. /* #endif */
  192. }
  193. .u-tab-item {
  194. font-weight: 400 !important;
  195. color: #000000 !important;
  196. font-size: 24rpx !important;
  197. }
  198. .tabs_box {
  199. /* display: none; */
  200. /* position: absolute; */
  201. /* top: 144rpx; */
  202. }
  203. .dis {
  204. /* display: block; */
  205. /* width: 100%; */
  206. /* position: absolute; */
  207. /* top: 100rpx; */
  208. }
  209. .content {
  210. width: 100%;
  211. position: relative;
  212. }
  213. .complain_cont {
  214. width: 100%;
  215. position: relative;
  216. /* display: flex; */
  217. }
  218. .complain_tabs {
  219. width: 100%;
  220. }
  221. .complain_btn {
  222. width: 15%;
  223. background: #FFFFFF;
  224. box-shadow: -2rpx 1rpx 3rpx 0rpx rgba(39, 39, 39, 0.11);
  225. height: 88rpx;
  226. position: absolute;
  227. top: 0rpx;
  228. right: 0rpx;
  229. z-index: 10075;
  230. }
  231. .btn {
  232. color: #999999;
  233. font-size: 25rpx;
  234. letter-spacing: 2rpx;
  235. text-align: center;
  236. line-height: 88rpx;
  237. }
  238. .complain_none {
  239. width: 15%;
  240. background: #FFFFFF;
  241. box-shadow: -2rpx 1rpx 3rpx 0rpx rgba(39, 39, 39, 0.11);
  242. height: 88rpx;
  243. position: absolute;
  244. top: 88rpx;
  245. right: 0rpx;
  246. }
  247. .popup_list {
  248. width: 97%;
  249. margin: 0 auto;
  250. position: relative;
  251. top: 90rpx;
  252. }
  253. .list_tabs {
  254. width: 90%;
  255. height: auto;
  256. display: flex;
  257. justify-content: start;
  258. flex-wrap: wrap;
  259. }
  260. .tabs {
  261. border: 1rpx solid #cccccc;
  262. padding: 0rpx 25rpx;
  263. line-height: 50rpx;
  264. margin: 10rpx 10rpx;
  265. }
  266. /* 全部 */
  267. .complain_box {
  268. width: 90%;
  269. margin: 0 auto;
  270. /* height: 300rpx; */
  271. background: #ffffff;
  272. margin-top: 30rpx;
  273. border-radius: 17rpx;
  274. }
  275. .complain_part1 {
  276. width: 90%;
  277. margin: 0 auto;
  278. display: flex;
  279. /* padding-top: 20rpx; */
  280. }
  281. .part1_left {
  282. flex: 1;
  283. font-size: 26rpx;
  284. font-weight: bold;
  285. letter-spacing: 2rpx;
  286. height: 80rpx;
  287. justify-content: left;
  288. align-items: center;
  289. display: flex;
  290. }
  291. .part1_right {
  292. flex: 1;
  293. color: #FF1B1B;
  294. display: flex;
  295. justify-content: flex-end;
  296. align-items: center;
  297. }
  298. .complain_part2 {
  299. width: 90%;
  300. margin: 0 auto;
  301. height: 50rpx;
  302. display: flex;
  303. justify-content: left;
  304. align-items: center;
  305. }
  306. .complain_part2 image {
  307. width: 15rpx;
  308. height: 15rpx;
  309. margin-right: 20rpx;
  310. }
  311. .complain_part2 text {
  312. color: #999999;
  313. font-size: 24rpx;
  314. }
  315. .u-line {
  316. border-bottom-width: 3px !important;
  317. margin-top: 20rpx !important;
  318. }
  319. .complain_title {
  320. /* width: 90%; */
  321. margin: 0 auto;
  322. height: 80rpx;
  323. display: flex;
  324. justify-content: flex-end;
  325. align-items: center;
  326. color: #FF2727;
  327. font-size: 27rpx;
  328. font-weight: bold;
  329. letter-spacing: 2rpx;
  330. }
  331. </style>