80%
This commit is contained in:
@ -0,0 +1,118 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="quality-issue-item">
|
||||
<image class="banner" src="@/static/quality_manage_example.png"></image>
|
||||
<view class="issue-title">
|
||||
<text>电缆</text>
|
||||
<view class="issue-level">
|
||||
三级
|
||||
</view>
|
||||
</view>
|
||||
<view class="issue-content">
|
||||
<view class="issue-item" v-for="item in Object.keys(fields)" :key="item">
|
||||
<text class="key">
|
||||
{{fields[item]}}
|
||||
</text>
|
||||
<text class="value">
|
||||
{{data && data[item]}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
props: {
|
||||
fields: {
|
||||
type: Object
|
||||
},
|
||||
data: {
|
||||
type: Object
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
// .quality-issues {
|
||||
// padding: 20rpx;
|
||||
|
||||
.quality-issue-item:not(:last-child) {
|
||||
margin-bottom: 36rpx;
|
||||
}
|
||||
|
||||
.quality-issue-item {
|
||||
border-radius: 16rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.banner {
|
||||
width: 100%;
|
||||
height: 454rpx;
|
||||
border-radius: 16rpx 16rpx 0 0;
|
||||
}
|
||||
|
||||
.issue-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 28rpx;
|
||||
|
||||
text {
|
||||
margin-left: 20rpx;
|
||||
font-size: 32rpx;
|
||||
color: #232930;
|
||||
line-height: 48rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.issue-level {
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
color: #FFFFFF;
|
||||
line-height: 24px;
|
||||
font-weight: 400;
|
||||
width: 120rpx;
|
||||
height: 48rpx;
|
||||
background-image: linear-gradient(219deg, #39DAAA 0%, #02C489 99%);
|
||||
border-radius: 0px 8px 0px 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.issue-content {
|
||||
padding: 14rpx 20rpx 11rpx;
|
||||
|
||||
.issue-item {
|
||||
display: flex;
|
||||
margin-bottom: 28rpx;
|
||||
|
||||
.key {
|
||||
width: 120rpx;
|
||||
display: block;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 14px;
|
||||
color: #8F959E;
|
||||
line-height: 22px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.value {
|
||||
width: 540rpx;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
line-height: 44rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// }
|
||||
</style>
|
Reference in New Issue
Block a user