lanan-repair/pages/guideList/guideDetail.vue

57 lines
1.1 KiB
Vue
Raw Normal View History

2024-09-22 15:07:01 +08:00
<template>
<view class="container">
<VNavigationBar title="操作指南" background-color="#fff" title-color="#333"></VNavigationBar>
2024-09-22 15:07:01 +08:00
<view class="body">
<view class="title">{{guideObj.title}}</view>
<rich-text style="width: 100%" :nodes="guideObj.content" />
<!-- <view class="content">{{guideObj.content}}</view>-->
2024-09-22 15:07:01 +08:00
</view>
</view>
</template>
<script>
import VNavigationBar from '@/components/VNavigationBar.vue'
import {getJSONData} from '@/utils/auth'
2024-09-22 15:07:01 +08:00
export default {
components: {
VNavigationBar
},
data() {
return {
guideObj:{
title:"",
content:"",
},
2024-09-22 15:07:01 +08:00
};
},
onLoad(){
this.guideObj = getJSONData("guideObj")
}
2024-09-22 15:07:01 +08:00
}
</script>
<style lang="less" scoped>
.container {
height: 100%;
display: flex;
flex-direction: column;
background-color: #f1f1f1;
.body {
background-color: #fff;
flex: 1;
height: 0;
margin: 32rpx;
padding: 30rpx;
2024-09-22 15:07:01 +08:00
display: flex;
flex-direction: column;
row-gap: 20rpx;
2024-09-22 15:07:01 +08:00
.title {
text-align: center;
font-size: 20px;
2024-09-22 15:07:01 +08:00
}
}
}
</style>