withdraw.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="container">
  3. <!-- 明细列表 -->
  4. <view class="list" v-for="(item,index) in list" :key="index">
  5. <view class="list_con flex_r flex_ac">
  6. <view class="list_name flex_r flex_ac flex_jb"><text>提</text><text>现</text><text>订</text><text>单</text><text>号</text><text>:</text></view>
  7. <view class="list_text">{{item.planNo}}</view>
  8. </view>
  9. <view class="list_con flex_r flex_ac">
  10. <view class="list_name flex_r flex_ac flex_jb"><text>结</text><text>算</text><text>状</text><text>态</text><text>:</text></view>
  11. <view class="list_text" :class="item.status == 3 ? 'r_color' : 'g_color'">{{item.status == 1 ? '审核中' : item.status == 2 ? '审核成功' : '审核失败'}}</view>
  12. </view>
  13. <view class="list_con flex_r flex_ac">
  14. <view class="list_name flex_r flex_ac flex_jb"><text>申</text><text>请</text><text>人</text><text>:</text></view>
  15. <view class="list_text">{{item.wxName}}</view>
  16. </view>
  17. <view class="list_con flex_r flex_ac">
  18. <view class="list_name flex_r flex_ac flex_jb"><text>提</text><text>现</text><text>金</text><text>额</text>:</text></view>
  19. <view class="list_text y_color">¥{{item.money}}</view>
  20. </view>
  21. <view class="list_con flex_r flex_ac">
  22. <view class="list_name flex_r flex_ac flex_jb"><text>提</text><text>现</text><text>类</text><text>型</text>:</text></view>
  23. <view class="list_text y_color">{{item.type == 1 ? '余额提现' : item.type == 2 ? '拼团金提现' : '拼豆提现'}}</view>
  24. </view>
  25. <view class="list_con flex_r flex_ac">
  26. <view class="list_name flex_r flex_ac flex_jb"><text>申</text><text>请</text><text>时</text><text>间</text>:</text></view>
  27. <view class="list_text">{{item.createTime}}</view>
  28. </view>
  29. <view class="list_con flex_r flex_ac">
  30. <view class="list_name flex_r flex_ac flex_jb"><text>处</text><text>理</text><text>时</text><text>间</text>:</text></view>
  31. <view class="list_text">{{item.updateTime}}</view>
  32. </view>
  33. <view class="list_hint flex_r flex_ac" v-if="item.status==3">
  34. <image class="hint_img" src="/static/notice.png" mode=""></image>
  35. <view class="hint_msg r_color">{{item.msg}}</view>
  36. </view>
  37. </view>
  38. <!-- 明细列表-end -->
  39. <not-goods v-if="haveGoods" textStr="暂无提现信息"></not-goods>
  40. </view>
  41. </template>
  42. <script>
  43. let page = 1;
  44. let app = getApp();
  45. var appEv = app.$vm.$options;
  46. import { get, post, u_post } from "@/request/api.js";
  47. // let reqApi = new ReqApi();
  48. // import { ReqApi } from "@/utils/reqTools.js";
  49. import notGoods from '@/components/not-goods/index.vue'
  50. export default {
  51. components: {
  52. notGoods
  53. },
  54. data() {
  55. return {
  56. haveGoods: false,
  57. status: 0,
  58. list: []
  59. };
  60. },
  61. onShow: function() {
  62. page = 1
  63. this.loadData()
  64. },
  65. methods: {
  66. loadData: function() {
  67. let that = this;
  68. let data = {
  69. page: page
  70. }
  71. uni.showLoading({ mask: true })
  72. u_post("ShuZiTeaYW/cashWithd/applicationRecord", data).then(res => {
  73. uni.hideLoading()
  74. if (res.status == 200) {
  75. let obj = res.recordList
  76. if (obj.length > 0) {
  77. that.list = [...that.list, ...obj]
  78. } else {
  79. if (page == 1) {
  80. that.haveGoods = true
  81. page = -1
  82. } else {
  83. page = -1
  84. appEv.errTips('暂无更多')
  85. }
  86. }
  87. } else {
  88. if (page == 1) {
  89. that.haveGoods = true
  90. page = -1
  91. } else {
  92. page = -1
  93. appEv.errTips('暂无更多')
  94. }
  95. }
  96. })
  97. }
  98. },
  99. /**
  100. * 页面上拉触底事件的处理函数
  101. */
  102. onReachBottom: function() {
  103. if (page != -1) {
  104. var that = this;
  105. setTimeout(function() {
  106. ++page;
  107. that.loadData();
  108. }, 800);
  109. }
  110. }
  111. }
  112. </script>
  113. <style lang="scss">
  114. // 页面配置
  115. page {
  116. background: #f4f4f4;
  117. }
  118. .container {
  119. padding-top: 16rpx;
  120. }
  121. // 页面配置-end
  122. // 明细列表
  123. .hint_msg {
  124. font-size: 22rpx;
  125. }
  126. .list_name {
  127. width: 180rpx;
  128. overflow: hidden;
  129. }
  130. .hint_img {
  131. width: 24rpx;
  132. height: 25rpx;
  133. margin-right: 36rpx;
  134. }
  135. .list_hint {
  136. width: 100%;
  137. overflow: hidden;
  138. margin-top: 12rpx;
  139. }
  140. .list_text {
  141. color: #7C7C7C;
  142. font-size: 26rpx;
  143. font-family: "SourceHanSansCN-Medium";
  144. }
  145. .list_name text {
  146. font-size: 30rpx;
  147. color: #404142;
  148. font-family: "SourceHanSansCN-Medium";
  149. }
  150. .list {
  151. width: 100%;
  152. overflow: hidden;
  153. padding: 30rpx 60rpx;
  154. box-sizing: border-box;
  155. background: #fff;
  156. margin-bottom: 20rpx;
  157. }
  158. // 明细列表-end
  159. // 状态颜色
  160. .g_color {
  161. color: #1BBD89;
  162. }
  163. .y_color {
  164. color: #FD9F33;
  165. }
  166. .r_color {
  167. color: #EC421A;
  168. }
  169. // 状态颜色-end
  170. </style>