shuguanshubanintro.vue 1.3 KB
<template>
	<div class="box">
		<div class="intro">

			<rich-text class="conRich" :nodes="content"></rich-text>
		</div>
	</div>
</template>

<script>
	import app from "../../App.vue"
	export default {
		data() {
			return {
				intro: '',
				introid: '',
				content: ''

			}
		},
		methods: {
			// 获取数板数管简介详情
			getintroduce() {
				let param = {
					id: this.introid
				}
				console.log(param)
				app.post("api/index/getDetail", param, 'get')
					.then(res => {
						console.log(res, "数控数板的说明");
						this.content = res.description;
						
					})
					.catch(err => {
						console.log(err)

// 						uni.showToast({
// 							title: '请先登录',
// 							icon: 'none'
// 						});
// 
// 						setTimeout(function() {
// 							uni.navigateTo({
// 								url: '/pages/qidong/qidong'
// 							});
// 						}, 1000)

					});
			}


		},
		onLoad(options) {
			console.log(options)
			this.introid = options.id;
			this.getintroduce()
		},
		mounted() {

			//获取简介详情
			// this.getintroduce()
		},
		created() {

		}
	}
</script>

<style>
	.box {
		background: #F5F5F5;
		padding: 40rpx 34rpx;
		box-sizing: border-box;
	}

	.intro {
		background: #fff;
		height: 1112rpx;
		overflow-y: scroll;
		padding: 30rpx;
		box-sizing: border-box;
		font-size: 28rpx;
		color: #404040;

	}
</style>