123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <template>
- <view class="blacklist-box">
- <en-nav title="黑名单" :title-color="'#333'" @navHeight="setNavHeight"></en-nav>
- <scroll-view class="blacklist-list" :scroll-y="true" :scroll-x="true" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
- <view class="blacklist-item" v-for="i in 12">
- <view class="blacklist-left">
- <image class="blacklist-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
- </view>
- <view class="blacklist-right">
- <view class="blacklist-title">
- <view class="title-text sys-color-black sys-weight-600 sys-height-44">江小明</view>
- <view class="title-icon">
- <text class="iconfont sys-height-44 sys-color-black"></text>
- </view>
- </view>
- <view class="blacklist-text">
- <view class="text-item sys-color-gray-9">女/24/天瓶座</view>
- <view class="text-item sys-color-gray-9">2023/04/24</view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- import EnNav from "@/components/en-utils/en-nav/en-nav";
- import {getBlackList} from "@/api/my";
- export default {
- components: {EnNav},
- data() {
- return {
- navHeight:0,
- list:[],
- isAjax:false,
- total:undefined,
- page:1,
- }
- },
- mounted() {
- this.startList()
- },
- methods: {
- setNavHeight(navHeight){
- this.navHeight=navHeight
- },
- startList(){
- if(this.userId<=0){
- // return false
- }
- this.list=[]
- this.isAjax=false
- this.total=undefined
- this.page=1
- this.getBlackList()
- },
- getBlackList(){
- if(this.isAjax){
- return
- }
- this.isAjax=true
- let that=this
- getBlackList({'pageNo':this.page,'pageSize':20}).then((res)=>{
- this.isAjax=false
- if(res.code===0){
- res.data.data.forEach((item)=>{
- that.list.push(item )
- })
- ++that.page
- that.total=res.data.total
- }
- })
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .blacklist-box{
- height: 100vh;
- padding: 0 32rpx;
- overflow-x: auto;
- .blacklist-list{
- width: calc(100vw - 64rpx);
- }
- .blacklist-item{
- width: calc(100vw - 64rpx);
- display: flex;
- justify-content: space-between;
- .blacklist-left{
- padding: 32rpx 0;
- margin-right: 28rpx;
- .blacklist-img{
- border-radius: 50%;
- width: 96rpx;
- height: 96rpx;
- }
- }
- .blacklist-right{
- padding: 32rpx 0;
- width: calc(100% - 124rpx);
- border-bottom: 1rpx solid #F2F2F2;
- .blacklist-title{
- display: flex;
- justify-content: space-between;
- height: 44rpx;
- .title-text{
- font-size: 32rpx;
- }
- .title-icon{
- .iconfont{
- font-size: 24rpx;
- }
- }
- }
- .blacklist-text{
- display: flex;
- justify-content: space-between;
- margin-top: 4rpx;
- .text-item{
- font-size: 28rpx;
- }
- }
- }
- }
- }
- </style>
|