征信小程序
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.

204 lines
4.4 KiB

3 months ago
<template>
<view class="history">
<view class="history-list">
<view class="tab">
<u-tabs :list="list1" @click="click"
lineWidth="0"
:activeStyle="{
color: '#00C6A9',
border: '1px solid #00C6A9',
borderRadius: '5px',
width: '150rpx',
textAlign: 'center',
padding: '10rpx 0',
display: 'block',
}"
:inactiveStyle="{
color: '#999999',
border: '1px solid #999999',
width: '150rpx',
display: 'block',
padding: '10rpx 0',
textAlign: 'center',
borderRadius: '5px'
}"
></u-tabs>
</view>
<view class="list">
<view class="item" v-for="i in 20" :key="i" @click="openPage(1)">
<view class="name">王某某欠钱不还已起诉</view>
<view class="desc">欠钱不还/欺诈/拖欠工资</view>
<view class="do">
<view class="fl"><image class="img1" src="https://www.lijkj.cn/static/icon-view.png"></image>560</view>
<view class="fl"><image class="img2" src="https://www.lijkj.cn/static/dianzan.png"></image>260</view>
3 months ago
</view>
<view class="tag"></view>
</view>
<view class="item" @click="openPage(1)">
<view class="name">王某某欠钱不还已起诉</view>
<view class="desc">欠钱不还/欺诈/拖欠工资</view>
<view class="do">
<view class="fl"><image class="img1" src="https://www.lijkj.cn/static/icon-view.png"></image>560</view>
<view class="fl"><image class="img2" src="https://www.lijkj.cn/static/dianzan.png"></image>260</view>
3 months ago
</view>
<view class="tag tag-on"></view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list1: [{
name: '热点事件',
}, {
name: '暖心善举',
}, {
name: '恶行曝光'
}],
}
},
mounted() {
},
onShow() {
},
methods: {
openPage(id){
uni.navigateTo({
url: "/pages/release/detail?id="+id
})
},
//获取轮播图
async queryBannerList() {
const { code, data } = await this.$api.bannerList({})
let arr = []
if(data && data.length > 0){
data.map(a=>{
arr.push(a.image)
})
}
if(code == 200){
this.bannerList = arr
}
},
}
}
</script>
<style lang="scss" scoped>
.history {
overflow: hidden;
box-sizing: border-box;
&-title{
text-align: center;
padding: 38rpx;
font-weight: 500;
font-size: 26rpx;
color: #333333;
text{
display: block;
font-weight: bold;
font-size: 36rpx;
color: #333333;
margin-bottom: 25rpx;
}
}
&-list{
overflow: hidden;
.title{
font-weight: bold;
font-size: 36rpx;
color: #333333;
padding: 0 25rpx;
}
.tab{
padding: 20rpx 0 15rpx;
}
.list{
padding: 0 25rpx 0;
overflow: hidden;
.item{
width: 100%;
height: 180rpx;
background: #FFFFFF;
box-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);
border-radius: 20rpx;
padding: 30rpx;
box-sizing: border-box;
position: relative;
margin-top: 20rpx;
&:first-child{
margin-top: 0;
}
.tag{
width: 80rpx;
height: 56rpx;
text-align: center;
line-height: 56rpx;
background: #00C6A9;
border-radius: 0px 20rpx 0px 20rpx;
font-size: 32rpx;
color: #FFFFFF;
position: absolute;
right: 0;
top: 0;
z-index: 2;
&-on{
background: #333333;
}
}
.name{
font-weight: 500;
font-size: 30rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
color: #333333;
}
.desc{
font-weight: 500;
font-size: 24rpx;
color: #999999;
margin-top: 18rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.do{
display: flex;
align-items: center;
margin-top: 10rpx;
.fl{
width: 130rpx;
display: flex;
align-items: center;
font-weight: 500;
font-size: 24rpx;
color: #999999;
.img1{
width: 30rpx;
height: 20rpx;
margin-right: 10rpx;
margin-top: 5rpx;
}
.img2{
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
}
}
}
}
}
}
</style>