Add navigation to policy detail and adjust font sizes in policyList component
- Implemented a method to navigate to the policy detail page with the selected item's ID. - Reduced font sizes for various elements in the policyList component to improve layout and readability.
This commit is contained in:
@@ -278,6 +278,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toPolicyDetail() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/packageRc/pages/policy/policyDetail?id=${item.id}`,
|
||||||
|
})
|
||||||
|
},
|
||||||
async getCheckData() {
|
async getCheckData() {
|
||||||
const resLevel = await getDicts("zc_level");
|
const resLevel = await getDicts("zc_level");
|
||||||
const resType1 = await getDicts("policy_type1");
|
const resType1 = await getDicts("policy_type1");
|
||||||
@@ -1162,7 +1167,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.total-count {
|
.total-count {
|
||||||
font-size: 20px !important;
|
font-size: 12px !important;
|
||||||
margin: 20px 0 !important;
|
margin: 20px 0 !important;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -1171,14 +1176,14 @@ export default {
|
|||||||
padding: 32px !important;
|
padding: 32px !important;
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
font-size: 24px !important;
|
font-size: 14px !important;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 16px !important;
|
margin-bottom: 16px !important;
|
||||||
}
|
}
|
||||||
.infos {
|
.infos {
|
||||||
margin-bottom: 16px !important;
|
margin-bottom: 16px !important;
|
||||||
view {
|
view {
|
||||||
font-size: 18px !important;
|
font-size: 11px !important;
|
||||||
line-height: 1.6 !important;
|
line-height: 1.6 !important;
|
||||||
padding: 4px 12px !important;
|
padding: 4px 12px !important;
|
||||||
margin-right: 12px !important;
|
margin-right: 12px !important;
|
||||||
@@ -1212,7 +1217,7 @@ export default {
|
|||||||
margin-right: 16rpx !important;
|
margin-right: 16rpx !important;
|
||||||
}
|
}
|
||||||
.loading-text {
|
.loading-text {
|
||||||
font-size: 26px !important;
|
font-size: 16px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* #endif */
|
/* #endif */
|
||||||
@@ -1237,12 +1242,12 @@ export default {
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
.iconfont{
|
.iconfont{
|
||||||
|
|
||||||
font-size: 40px!important;
|
font-size: 24px!important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.nav-title {
|
.nav-title {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 43rpx;
|
font-size: 26rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.nav-placeholder {
|
.nav-placeholder {
|
||||||
@@ -1283,7 +1288,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.date-md {
|
.date-md {
|
||||||
font-size: 60rpx;
|
font-size: 36rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #107afd;
|
color: #107afd;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@@ -1304,7 +1309,7 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-size: 64rpx;
|
font-size: 38rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 24rpx;
|
margin-bottom: 24rpx;
|
||||||
@@ -1321,7 +1326,7 @@ export default {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
.info-tag {
|
.info-tag {
|
||||||
font-size: 48rpx;
|
font-size: 29rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-right: 24rpx;
|
margin-right: 24rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user