| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | <template>	<view>		<!-- <view class="helpTitle">{{ resultData.helpWordTitle }}</view> -->		<view class="helpCon" v-html="content"></view>	</view></template><script>	export default {		data() {			return {				helpWordId: '',				resultData:[],				content:''			};		},		onLoad(options) {						this.helpWordId = options.helpWordId			console.log(this.helpWordId ,options.helpWordId)			console.log(options)			if (this.helpWordId) {				this.getContent()			}		},		methods: {			getContent() {				let data = {					helpWordId: this.helpWordId,				}				this.$Request.get("/app/helpWord/selectHelpWordDetails", data).then(res => {					if (res.code == 0) {						this.resultData = res.data						uni.setNavigationBarTitle({							title:this.resultData.helpWordTitle						});						this.content = res.data.helpWordContent.replace(new RegExp("img","g"),'img style="width:100%;height:auto;"')					} else {						uni.showToast({							title: res.msg,							icon: 'none'						})					}				});			}		}	};</script><style>	page {		background-color: #FFFFFF;	}	.helpTitle {		font-size: 40rpx;		font-weight: bold;		margin: 50rpx 30rpx 30rpx;		color: #000;	}	.helpCon {		font-size: 30rpx;		margin: 30rpx 30rpx 50rpx;		color: #000;		line-height: 2em;	}</style>
 |