dengjie commit: 行业报告及其详情页初步完成

This commit is contained in:
clay
2022-12-16 21:54:51 +08:00
parent 9223a1023e
commit 380dc0f343
57 changed files with 1082 additions and 90 deletions

View File

@@ -0,0 +1,117 @@
<template>
<view style="margin-top: 20rpx; height: 1176rpx;background: #FFFFFF;">
<view class="xw_content" v-for="(item,index) in cjsList" :key="index" @click="click(index)">
<u--image :src="item.src" width="112rpx" height="112rpx" :lazy-load="true">
</u--image>
<view class="xw_right">
<view class="xw_title">
{{item.title}}
</view>
<view style="display: flex;">
<text class="cj_tags" v-for="(tagsItem,tagsIndex) in item.tags" :key="tagsIndex">
{{tagsItem.tag}}
</text>
</view>
</view>
</view>
<view v-if="cjsShow" class="no-data">已经到底啦</view>
</view>
</template>
<script>
export default {
data() {
return {
cjsShow: true,
cjsList: [{
src: '/static/report/cj1.png',
title: '西安兴沃丰餐饮管理有限责任公司',
tags: [{
tag: '咖啡'
},
{
tag: '饮品'
}
]
},
{
src: '/static/report/cj2.png',
title: '福建省海纳川食品有限公司',
tags: [{
tag: '活冻鲍鱼'
},
{
tag: '鲍鱼罐头'
},
{
tag: '佛跳墙'
},
{
tag: '海螺片'
}
]
},
]
}
},
methods: {
click(index) {
if (index == 0) {
uni.navigateTo({
url: '/pages/detail/certifiedCjDetail/certifiedCjDetail'
})
}
}
// this.cjsShow = this.list.length === 0 ? true : false
}
}
</script>
<style lang="scss">
.no-data {
text-align: center;
margin-top: 29rpx;
font-size: 20rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #BBBBBB;
line-height: 28rpx;
}
.xw_content {
background: #FFFFFF;
border: 1rpx solid #EEEEEE;
display: flex;
padding: 29rpx 19rpx;
.xw_right {
padding-left: 19rpx;
display: flex;
flex-direction: column;
.xw_title {
font-size: 30rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: bold;
color: #3E3E3E;
line-height: 42rpx;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.cj_tags {
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #969696;
line-height: 33rpx;
padding-right: 10rpx;
margin-top: 35rpx;
}
}
}
</style>