jyy-smart-canteen-h5/pages/mine/healthScience/detail.vue

54 lines
879 B
Vue
Raw Normal View History

2025-09-15 09:35:44 +08:00
<template>
<page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
2025-05-27 10:30:44 +08:00
<view class="page">
2025-09-15 09:35:44 +08:00
<rich-text :nodes="detailData.articleContent || ''"></rich-text>
2025-05-27 10:30:44 +08:00
</view>
</template>
<script>
export default {
data() {
return {
2025-09-15 09:35:44 +08:00
fontValue: uni.getStorageSync('fontSize') || 16,
detailData: {}
2025-05-27 10:30:44 +08:00
}
},
onLoad(options) {
this.detailData = JSON.parse(options.params)
}
}
</script>
<style lang="scss" scoped>
.page {
background: #f9fbff;
padding: 16px;
min-height: 95vh;
color: #0f274b;
2025-09-15 09:35:44 +08:00
font-family: 'Helvetica Neue', Arial, sans-serif;
}
rich-text {
font-size: 16px;
line-height: 1.8;
color: #333;
2025-05-27 10:30:44 +08:00
}
2025-09-15 09:35:44 +08:00
rich-text strong,
rich-text b {
font-weight: bold;
color: #0f274b;
}
rich-text p {
margin: 0 0 12px;
}
rich-text img {
max-width: 100%;
display: block;
margin: 12px auto;
border-radius: 4px;
2025-05-27 10:30:44 +08:00
}
</style>