You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/pages/news/user/invite.vue

102 lines
1.9 KiB

11 months ago
<template>
<view class="user">
<view class="user-bd">
10 months ago
<view class="li" v-for="(a,i) in list" :key="i">
11 months ago
<view class="l">
10 months ago
<image :src="$picUrl+'/static/news/avater.png'"></image>
11 months ago
</view>
<view class="m">
<view class="n">AUIIO</view>
<view class="t">2023-02-12 10:00</view>
</view>
<view class="r">
+<text>18</text>
</view>
</view>
10 months ago
</view>
<u-empty text="暂无信息" v-if="total == 0" mode="list"></u-empty>
11 months ago
</view>
</template>
10 months ago
<script>
import * as newFunApi from '@/api/newFun'
11 months ago
export default {
data() {
return {
10 months ago
list: [],
total: 1
11 months ago
};
},
10 months ago
onLoad() {
this.getList();
},
11 months ago
methods: {
10 months ago
async getList() {
uni.showLoading({
title:"加载中"
})
const {status, data} = await newFunApi.inviteGetList({});
if(status == 200){
uni.hideLoading();
this.list = data.list.data;
this.total = data.list.total
console.log(this.total)
}
},
11 months ago
}
}
</script>
<style lang="scss" scoped>
.user{
padding: 0 0 130rpx;
overflow: hidden;
&-bd{
10 months ago
padding: 0 20rpx 0 60rpx;;
11 months ago
background-color: #FFFFFF;
overflow: hidden;
margin-top: 20rpx;
.li{
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 35rpx 0;
border-bottom: 1px solid #F2F2F2;
.l{
width: 86rpx;
height: 86rpx;
margin-right: 25rpx;
image{
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.m{
flex: 1;
max-width: 400rpx;
margin-right: 20rpx;
.n{
font-size: 28rpx;
font-weight: 400;
color: #545454;
}
.t{
margin-top: 10rpx;
font-size: 28rpx;
font-weight: 400;
color: #A7A7A7;
}
}
.r{
font-size: 28rpx;
color: #FF4C4B;
text{
font-size: 36rpx;
}
}
}
}
}
</style>