连云港陪玩陪聊
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.

104 lines
1.9 KiB

2 months ago
<template>
<view class="feed">
2 months ago
<view class="item" v-for="(a,i) in list" :key="i" @click="toPage(a)">
2 months ago
<view class="fl">
2 months ago
<view class="title">{{a.content}}</view>
<view class="desc">{{a.createTime}}</view>
2 months ago
</view>
<view class="fr">
<image src="@/static/icon-arrow.png"></image>
</view>
2 months ago
</view>
<view class="empty" v-if="isShow">
<image src="@/static/empty.png"></image>
<view class="txt">暂无数据</view>
2 months ago
</view>
</view>
</template>
<script>
export default {
data() {
return {
2 months ago
list: [],
isShow: false
2 months ago
};
2 months ago
},
onLoad() {
this.getList();
},
methods: {
toPage(a) {
uni.setStorageSync("pcontent",a);
uni.navigateTo({
url: "/pages/users/feedback/detail"
})
},
async getList() {
const {code,data} = await this.$api.feedbackList({
userId: uni.getStorageSync("userInfo").id
})
if(code == 200){
this.isShow = data.length == 0?true:false;
this.list = data;
}
}
},
2 months ago
}
</script>
<style scoped lang="scss">
.feed{
padding: 0 25rpx 25rpx;
2 months ago
overflow: hidden;
.empty{
padding: 150rpx 0;
text-align: center;
font-weight: 500;
font-size: 28rpx;
color: #222222;
image{
display: block;
width: 460rpx;
height: 400rpx;
margin: 0 auto;
}
}
2 months ago
.item{
height: 150rpx;
background: #FFFFFF;
border-radius: 20rpx;
padding: 30rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20rpx;
.fl{
flex: 1;
max-width: 600rpx;
.title{
font-weight: 500;
font-size: 30rpx;
color: #333333;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.desc{
font-weight: 500;
font-size: 24rpx;
color: #999999;
margin-top: 10rpx;
}
}
.fr{
image{
width: 40rpx;
height: 40rpx;
}
}
}
}
</style>