Files
QCN_rider/.svn/pristine/3a/3a6dbb4fa1015f9389e1b76a509a716f53458390.svn-base
2026-02-12 12:19:20 +08:00

76 lines
1.9 KiB
Plaintext

<template>
<view style="padding: 10rpx 30rpx;">
<view class="" v-for="(item,index) in withdrowList" :key="index"
style="margin-top: 20rpx; gap: 20rpx; background-color: #fff; border-radius: 20rpx; padding: 30rpx; display: flex; align-items: center; justify-content: space-between; ">
<view class="icon-placeholder">
<image :src="Service.GetIconImg('/static/index/income/order.png')" style="width: 55rpx; height: 55rpx;"
mode=""></image>
</view>
<view class="" style="flex: 1;">
<view class="" style="font-weight: bold;">
余额提现-到{{item.payway}}
</view>
<view style=" margin-top: 4rpx; color: #999; font-size: 24rpx;">2025-12-15</view>
</view>
<view class="" style="color: red; font-weight: bold; ">
+15.6
</view>
</view>
<up-loadmore :status="status" />
</view>
</template>
<script setup lang="ts">
import { onShow, onLoad } from "@dcloudio/uni-app";
import { Service } from '@/Service/Service';
import { ref } from "vue";
import { CNRiderOrderService } from '@/Service/CN/CNRiderOrderService'
let withdrowList = ref<Array<any>>([])
let status = ref('nomore')
let page = ref(1)
onLoad(() => {
getData()
});
onShow(() => {
});
const getData = () => {
status.value = 'loadmore'
page.value = 1
withdrowList.value = []
getList()
}
//获取订单
const getList = () => {
if (status.value == 'nomore' || status.value == 'loading') {
return
}
status.value == 'loadmore'
CNRiderOrderService.GetRiderWithList(page.value).then(res => {
withdrowList.value = [...withdrowList.value, ...res.data.list]
status.value = res.data.list == 10 ? 'loadmore' : 'nomore'
page.value++
})
}
</script>
<style lang="scss">
.icon-placeholder {
width: 70rpx;
height: 70rpx;
background-color: #E6F7FF;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
}
</style>