|
|
@ -28,37 +28,28 @@ |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
</view> --> |
|
|
</view> --> |
|
|
<view style="background-color: #f9f9f9;height: 100%;color: #666;"> |
|
|
<view style="background-color: #fff;height: 100%;color: #666;"> |
|
|
<v-header class="nav-head" :title="$t('common.d7')"></v-header> |
|
|
<v-header class="nav-head" :title="$t('common.d7')"></v-header> |
|
|
<scroll-view scroll-y="true" style="height: 90vh;"> |
|
|
<view class="d-flex justify-between align-center" style="padding: 0rpx 40rpx;margin: 40rpx 0rpx;"> |
|
|
|
|
|
<view class="d-flex"> |
|
|
|
|
|
<view @click="onskytype(1)">{{$t('common.today')}}</view> |
|
|
|
|
|
<view @click="onskytype(2)" style="margin-left: 30rpx;">1{{$t('common.week')}}</view> |
|
|
|
|
|
<view @click="onskytype(3)" style="margin-left: 30rpx;">1{{$t('common.M')}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view><uni-datetime-picker style="width: 300rpx;" v-model="range" type="daterange" @change="pickerChange" /></view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<scroll-view scroll-y="true" style="height: 80vh;" @scrolltolower="scrollpage"> |
|
|
<view style="padding: 0rpx 40rpx;"> |
|
|
<view style="padding: 0rpx 40rpx;"> |
|
|
<view v-for="(item,index) in recordsList" :key="index" class="recordsList_box"> |
|
|
<view v-for="(item,index) in recordsList" :key="index" class="recordsList_box"> |
|
|
<view style="width: 160rpx;"> |
|
|
<view style="width: 60%;"> |
|
|
<view>{{ $t("common.d8") }}</view> |
|
|
<view>{{item.log_type_text}}</view> |
|
|
<view>{{item.currency}}</view> |
|
|
<view style="margin-top: 20rpx;font-size: 28rpx;color: #aeaeae;">{{item.created_at}}</view> |
|
|
</view> |
|
|
|
|
|
<view style="width: 200rpx;text-align: center;"> |
|
|
|
|
|
<view>{{ $t("common.amout") }}</view> |
|
|
|
|
|
<view>{{item.amount}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view style="width: 200rpx;text-align: right;"> |
|
|
|
|
|
<view>{{ $t("common.d9") }}</view> |
|
|
|
|
|
<view>{{item.rate}}%</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view style="width: 160rpx;margin-top: 30rpx;"> |
|
|
|
|
|
<view>{{ $t("common.d10") }}</view> |
|
|
|
|
|
<view v-if="item.type==1">{{$t('common.d17')}}</view> |
|
|
|
|
|
<view v-if="item.type==2">{{item.day}}{{$t('exchange.f0')}}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view style="width: 200rpx;text-align: center;margin-top: 30rpx;"> |
|
|
<view style="width: 40%;text-align: right;font-weight: bold;"> |
|
|
<view>{{ $t("common.d13") }}</view> |
|
|
<view>{{item.amount}}{{item.coin_name}}</view> |
|
|
<view>{{item.financial_time}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view style="width: 200rpx;text-align: right;margin-top: 30rpx;"> |
|
|
|
|
|
<view>{{ $t("common.d15") }}</view> |
|
|
|
|
|
<view>{{item.redemption_time}}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<van-empty v-if="!recordsList.length" description="" /> |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
</view> |
|
|
@ -77,21 +68,68 @@ export default { |
|
|
watch: { |
|
|
watch: { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
mounted() { |
|
|
this.init() |
|
|
this.init() |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
recordsList:[] |
|
|
recordsList:[], |
|
|
|
|
|
Numbertype:2, |
|
|
|
|
|
page:1, |
|
|
|
|
|
start_time:'', |
|
|
|
|
|
end_time:'', |
|
|
|
|
|
range:[], |
|
|
|
|
|
last_page:1 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
init(){ |
|
|
init(){ |
|
|
Wallet.financial_records({status:1}).then(res => { |
|
|
let data = { |
|
|
this.recordsList = res.data.data; |
|
|
page:this.page, |
|
|
console.log(this.recordsList); |
|
|
type:this.start_time?'':this.Numbertype, |
|
|
|
|
|
start_time:this.start_time, |
|
|
|
|
|
end_time:this.end_time, |
|
|
|
|
|
} |
|
|
|
|
|
Wallet.financial_wlog(data).then(res => { |
|
|
|
|
|
if(res.code==200){ |
|
|
|
|
|
if(this.page==1){ |
|
|
|
|
|
this.last_page = res.data.last_page |
|
|
|
|
|
this.recordsList = res.data.data; |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.last_page = res.data.last_page |
|
|
|
|
|
this.recordsList = [...this.recordsList, ...res.data.data]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// console.log(this.recordsList); |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
console.error('Promise:', error); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
onskytype(type){ |
|
|
|
|
|
this.Numbertype = type; |
|
|
|
|
|
this.page = 1; |
|
|
|
|
|
this.recordsList = []; |
|
|
|
|
|
this.init(); |
|
|
|
|
|
}, |
|
|
|
|
|
scrollpage(e){ |
|
|
|
|
|
if(this.page>this.last_page) return |
|
|
|
|
|
this.page++ |
|
|
|
|
|
this.init(); |
|
|
|
|
|
}, |
|
|
|
|
|
pickerChange(e){ |
|
|
|
|
|
if(e.length!==0){ |
|
|
|
|
|
this.start_time = e[0] |
|
|
|
|
|
this.end_time = e[1] |
|
|
|
|
|
this.page = 1; |
|
|
|
|
|
this.init(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.start_time = '' |
|
|
|
|
|
this.end_time = '' |
|
|
|
|
|
this.page = 1; |
|
|
|
|
|
this.init(); |
|
|
|
|
|
} |
|
|
|
|
|
// console.log(e); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
@ -185,10 +223,9 @@ export default { |
|
|
.recordsList_box{ |
|
|
.recordsList_box{ |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|
margin:40rpx 0px; |
|
|
// margin:40rpx 0px; |
|
|
padding: 30rpx; |
|
|
padding: 40rpx 30rpx; |
|
|
border-radius: 20rpx; |
|
|
border-bottom: 1px solid #ccc; |
|
|
background-color: #fff; |
|
|
|
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |