flat: 修改

This commit is contained in:
史典卓
2025-08-20 13:38:47 +08:00
parent 58c36c01a0
commit 07b2aa5f80
12 changed files with 184 additions and 35 deletions

View File

@@ -24,11 +24,13 @@ const renderedHtml = computed(() => parseMarkdown(props.content));
const handleItemClick = (e) => {
let { attrs } = e.detail.node;
console.log(attrs);
let { 'data-copy-index': codeDataIndex, 'data-job-id': jobId, class: className } = attrs;
switch (className) {
case 'custom-card':
navTo('/packageA/pages/post/post?jobId=' + jobId);
return;
return navTo('/packageA/pages/post/post?jobId=' + jobId);
case 'custom-more':
return navTo('/packageA/pages/moreJobs/moreJobs?jobId=' + jobId);
case 'copy-btn':
uni.setClipboardData({
data: codeDataList[codeDataIndex],
@@ -40,6 +42,7 @@ const handleItemClick = (e) => {
});
},
});
break;
}
};
</script>
@@ -258,6 +261,19 @@ ol {
</style>
<style lang="stylus">
.custom-more{
display: flex
justify-content: flex-end
color: #256BFA
padding-top: 5rpx
padding-bottom: 14rpx
.more-icon{
width: 60rpx;
height: 40rpx;
background: url('@/static/svg/seemore.svg') center center no-repeat;
background-size: 100% 100%
}
}
.custom-card
background: #FFFFFF;
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04);