6
0
Fork 0

对接佣金列表接口

hui.zhou
h30830569 2022-05-31 13:40:10 +08:00
parent 16dd9a0da5
commit 47e65241cb
2 changed files with 26 additions and 7 deletions

View File

@ -2,16 +2,16 @@
<view class="px-30rpx pt-20rpx"> <view class="px-30rpx pt-20rpx">
<view class="sticky top-0 z-1500 bg-hex-F5F5F5 rounded-full grid grid-cols-3 text-28rpx text-hex-333 leading-40rpx py-10rpx"> <view class="sticky top-0 z-1500 bg-hex-F5F5F5 rounded-full grid grid-cols-3 text-28rpx text-hex-333 leading-40rpx py-10rpx">
<view class="text-center">时间</view> <view class="text-center">时间</view>
<view class="text-center"></view> <view class="text-center"></view>
<view class="text-center">信息</view> <view class="text-center">状态</view>
</view> </view>
<mescroll-body :height="height" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" <mescroll-body :height="height" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption"
:up="upOption"> :up="upOption">
<block v-for="(item,index) in dataList" :key="index"> <block v-for="(item,index) in dataList" :key="index">
<view class="grid grid-cols-3 text-28rpx text-h666 py-18rpx mt-16rpx "> <view class="grid grid-cols-3 text-28rpx text-h666 py-18rpx mt-16rpx ">
<view class="text-center line-1 ">{{item.name}}</view> <view class="text-center line-1 ">{{item.created_at*1000 | date('yyyy-mm-dd')}}</view>
<view class="text-center price-text">{{item.price}}</view> <view class="text-center price-text">{{item.money}}</view>
<view class="text-center " v-if="item.success_time">{{item.success_time.substring(0,10)}}</view> <view class="text-center ">{{item.status |StatusText}}</view>
</view> </view>
<u-line></u-line> <u-line></u-line>
</block> </block>
@ -37,6 +37,25 @@
dataList: [], // dataList: [], //
}; };
}, },
filters:{
StatusText(value){
const status = [{
value: 0,
label: '待付款'
}, {
value: 1,
label: ' 付款中'
}, {
value: 2,
label: '已付款'
}, , {
value: 3,
label: '付款失败'
}]
const obj = status.find((e) => e?.value == value) ?? {}
return obj?.label ?? value
}
},
computed:{ computed:{
height() { height() {
const { const {
@ -54,7 +73,7 @@
this.loadData(page); this.loadData(page);
}, },
loadData(page) { loadData(page) {
this.$api.get(`/v1/vip/buy`, { this.$api.get(`/v1/profit`, {
params: { params: {
page: page.num, page: page.num,
per_page: page.size per_page: page.size

View File

@ -147,7 +147,7 @@
<view class="mt-5rpx">签到积分</view> <view class="mt-5rpx">签到积分</view>
</view> --> </view> -->
<view <view
@tap="$u.route('/pages/web_view/index', { url: config.about_us })" @tap="$u.route('/pages/web_view/index', { url: config.article_profit })"
class="my-base flex items-center justify-center flex-col text-md text-txBase" class="my-base flex items-center justify-center flex-col text-md text-txBase"
> >
<image class="w-58rpx h-58rpx" src="@/static/images/user/commission.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/commission.png" mode=""></image>