123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <template>
- <view class="content">
- <view class="box">
- <view class="orderItem" v-for="(item, index) in list" :key="index">
- <view class="orderInfo">
- <view class="info1">
- <view>{{ item.bank }}</view>
- <view>+{{ item.money }}</view>
- </view>
- <view class="info2">
- <view>{{ parse.filterTime(item.createtime) }}</view>
- <view :class="item.status == 1 ? 'color1' : ''">
- {{ item.status == 0 ? '申请中' : item.status == 1 ? '提现成功' : item.status == 2 ? '拒绝提现' : '拒绝提现' }}
- </view>
- </view>
- </view>
- </view>
-
- <view v-if="!list.length" style='color:#999;text-align:center;margin:150rpx 0;font-size:30rpx'>暂无数据</view>
- </view>
- </view>
- </template>
- <script module="parse" lang="wxs">
- module.exports = {
- filterTime: function(time) {
- console.log(time)
- var nowDate = getDate(time * 1000);
- var year = nowDate.getFullYear();
- var month = nowDate.getMonth() + 1;
- var date = nowDate.getDate();
- var hours = nowDate.getHours();
- var minutes = nowDate.getMinutes();
- var seconds = nowDate.getSeconds();
- month = month > 9 ? month : '0' + month;
- date = date > 9 ? date : '0' + date;
- hours = hours > 9 ? hours : '0' + hours;
- minutes = minutes > 9 ? minutes : '0' + minutes;
- seconds=seconds>9?seconds:'0'+seconds;
- return year + '-' + month + '-' + date + " " + hours + ":" + minutes+ ":" + seconds;
- }
- }
- </script>
- <script>
- var app = getApp();
- export default {
- data() {
- return {
- page: 1,
- list: [],
- loaded: false,
-
- pageSize:10
- };
- }
-
- ,
- onLoad: function (options) {
-
- this.getlist();
- },
-
- onReady: function () {},
-
- onShow: function () {},
-
- onHide: function () {},
-
- onUnload: function () {},
-
- onPullDownRefresh: function () {
- this.init();
- this.getlist();
- uni.stopPullDownRefresh();
- },
-
- onReachBottom: function () {
- this.loaded || this.getlist();
- },
-
- onShareAppMessage: function () {},
- methods: {
- async getlist() {
- var that = this;
-
- let res = await this.$api.request('/withdraw/index', 'GET', {
- page: this.page,
- pagesize: this.pageSize
- });
-
- console.log(res)
- if (res) {
-
- if (res.rows.length > 0) {
-
- this.list= this.list.concat(res.rows);
-
- this.page++;
-
- } else {
- this.loaded = true
- this.$api.msg('没有更多数据');
- }
- }
-
- },
- init() {
- this.setData({
- list: [],
- Page: 1,
- loaded: false
- });
- }
- }
- };
- </script>
- <style>
- page {
- background: #f4f5f9;
- }
-
- .content {
- margin: 26rpx;
- background: #fff;
- border-radius: 20rpx;
- }
-
- .orderItem {
- display: flex;
- align-items: center;
- padding: 28rpx 0 20rpx;
- border-bottom: 1px solid #e4e5ee;
- }
-
- .orderItem > image {
- width: 116rpx;
- height: 116rpx;
- border-radius: 12rpx;
- }
-
- .orderInfo {
- display: flex;
- flex-direction: column;
- flex: 1;
- justify-content: space-between;
- margin-left: 26rpx;
- }
-
- .info1 {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-right: 30rpx;
- }
-
- .info1 > view:nth-child(1) {
- font-size: 28rpx;
- width: 300rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .info1 > view:nth-child(2) {
- font-size: 28rpx;
- }
-
- .info2 {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-right: 30rpx;
- margin-top: 6rpx;
- }
-
- .info2 > view:nth-child(1) {
- color: #9194a6;
- }
-
- .info2 > view:nth-child(2) {
- color: #9194a6;
- }
- .info3 {
- color: #9194a6;
- }
-
- .color1 {
- color: #FB4C6F !important;
- }
- view{
- font-size: 24rpx;
- }
- </style>
|