lanan-repair/pages/guideList/guideDetail.vue

57 lines
1.1 KiB
Vue

<template>
<view class="container">
<VNavigationBar title="操作指南" background-color="#fff" title-color="#333"></VNavigationBar>
<view class="body">
<view class="title">{{guideObj.title}}</view>
<rich-text style="width: 100%" :nodes="guideObj.content" />
<!-- <view class="content">{{guideObj.content}}</view>-->
</view>
</view>
</template>
<script>
import VNavigationBar from '@/components/VNavigationBar.vue'
import {getJSONData} from '@/utils/auth'
export default {
components: {
VNavigationBar
},
data() {
return {
guideObj:{
title:"",
content:"",
},
};
},
onLoad(){
this.guideObj = getJSONData("guideObj")
}
}
</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;
display: flex;
flex-direction: column;
row-gap: 20rpx;
.title {
text-align: center;
font-size: 20px;
}
}
}
</style>