userTuiExtractLog.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view class="promoter-list" >
  3. <view class="header">
  4. <view class="promoterHeader">
  5. <image class="bg" src="/static/images/transparent.png" />
  6. <view class="headerCon acea-row row-between-wrapper">
  7. <view>
  8. <view class="name">提现记录</view>
  9. <view>
  10. <text class="num">{{nowMoney}}</text>
  11. <text>元</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="extract-list">
  18. <view v-for="(item,index) in list" :key="index" class="item" >
  19. <view class="ordersn-box">
  20. <view class="title">提现金额:{{item.extractPrice}}</view>
  21. <view class="status-box">
  22. <text class="text info" v-if="item.status==0">审核中</text>
  23. <text class="text success" v-if="item.status==1">已提现</text>
  24. <text class="text red" v-if="item.status==-1">已拒绝</text>
  25. </view>
  26. </view>
  27. <view class="content">
  28. <view class="ask-time" v-if="item.createTime!=null">提交时间:{{item.createTime}}</view>
  29. <view class="ask-time" v-if="item.updateTime!=null" >审核时间:{{item.updateTime}}</view>
  30. <view class="ask-text" v-if="item.status!=0">审核结果:{{item.failMsg}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. <Loading :loaded="loaded" :loading="loading"></Loading>
  35. </view>
  36. </template>
  37. <script>
  38. import {getUserInfo,getExtractList} from '@/api/user'
  39. import Loading from "@/components/Loading";
  40. export default {
  41. name: "tuiMoney",
  42. components: {
  43. Loading
  44. },
  45. data: function () {
  46. return {
  47. nowMoney:0,
  48. page: {
  49. page: 1,
  50. pageSize: 10,
  51. logsType:5
  52. },
  53. list: [],
  54. loaded: false,
  55. loading: false
  56. };
  57. },
  58. mounted: function () {
  59. this.getUserInfo();
  60. this.getExtractList();
  61. },
  62. onReachBottom() {
  63. !this.loading && this.getExtractList();
  64. },
  65. methods: {
  66. getExtractList: function () {
  67. let that = this;
  68. if (that.loaded || that.loading) return;
  69. that.loading = true;
  70. getExtractList(this.page).then(
  71. res => {
  72. that.list.push.apply(that.list, res.data.list);
  73. that.loading = false;
  74. that.loaded = !res.data.hasNextPage;
  75. that.page.page = that.page.page + 1;
  76. uni.hideLoading()
  77. },
  78. err => {
  79. uni.showToast({
  80. title: err.msg,
  81. icon: "none",
  82. duration: 2000
  83. });
  84. },
  85. 300
  86. );
  87. },
  88. getUserInfo(){
  89. getUserInfo().then(
  90. res => {
  91. if(res.code==200){
  92. if(res.user!=null){
  93. this.nowMoney=res.user.nowMoney;
  94. }
  95. else{
  96. this.utils.loginOut();
  97. }
  98. }else{
  99. uni.showToast({
  100. icon:'none',
  101. title: "请求失败",
  102. });
  103. }
  104. },
  105. rej => {}
  106. );
  107. },
  108. }
  109. };
  110. </script>
  111. <style lang="less">
  112. /*所有推广头部样式*/
  113. .promoterHeader {
  114. width: 100%;
  115. height: 2.2 * 100rpx;
  116. background-color: #018C39;
  117. position: relative;
  118. .bg{
  119. width: 100%;
  120. height: 100%;
  121. position: absolute;
  122. top: 0;
  123. left: 0;
  124. }
  125. }
  126. .promoterHeader .headerCon {
  127. height: 100%;
  128. padding: 0 0.88 * 100rpx 0 0.55 * 100rpx;
  129. font-size: 0.28 * 100rpx;
  130. color: #fff;
  131. background-repeat: no-repeat;
  132. background-size: 100% 100%;
  133. }
  134. .promoterHeader .headerCon .name {
  135. margin-bottom: 0.02 * 100rpx;
  136. }
  137. .promoterHeader .headerCon .num {
  138. font-size: 0.5 * 100rpx;
  139. }
  140. .promoterHeader .headerCon .iconfont {
  141. font-size: 1.25 * 100rpx;
  142. }
  143. .extract-list{
  144. .item{
  145. background: #FFFFFF;
  146. border-bottom: 1px solid #eee;
  147. padding: 40upx 30upx;
  148. position: relative;
  149. .ordersn-box{
  150. display: flex;
  151. align-items: center;
  152. justify-content: space-between;
  153. padding: 0upx 0 10upx;
  154. .title{
  155. font-size: 32upx;
  156. font-family: PingFang SC;
  157. font-weight: 500;
  158. color: #111;
  159. line-height: 1;
  160. }
  161. .status-box{
  162. display: flex;
  163. align-items: center;
  164. .recom-box{
  165. width: 108upx;
  166. height: 30upx;
  167. line-height: 30upx;
  168. text-align: left;
  169. padding-left: 8upx;
  170. font-size: 22upx;
  171. font-family: PingFang SC;
  172. font-weight: 500;
  173. color: #FFFFFF;
  174. background-image: url(/static/images/recom.png);
  175. background-repeat: no-repeat;
  176. background-size: 100% 100%;
  177. margin-right: 8upx;
  178. }
  179. .text{
  180. font-size: 28upx;
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. line-height: 1;
  184. &.success{
  185. color: #018C39;
  186. }
  187. &.red{
  188. color: #ff0000;
  189. }
  190. &.info{
  191. color: #999999;
  192. }
  193. }
  194. }
  195. }
  196. .content{
  197. .ask-text{
  198. font-size: 28upx;
  199. font-family: PingFang SC;
  200. font-weight: 500;
  201. color: #999999;
  202. line-height: 42rpx;
  203. }
  204. .ask-time{
  205. font-size: 28upx;
  206. font-family: PingFang SC;
  207. font-weight: 500;
  208. color: #999999;
  209. line-height: 42rpx;
  210. }
  211. }
  212. }
  213. }
  214. </style>