<template>
	<view>
		<!-- 月度政策 -->
		<view class="picture" v-html="contentDetail"></view>
	</view>
</template>

<script>
	import {
		request
	} from '@/common/request/request'
	require("promise.prototype.finally").shim()
	export default {
		data() {
			return {
				contentDetail: null
			}
		},
		onLoad() {
			this.handleGetData();
		},
		methods: {
			handleGetData(){
				uni.showLoading({
					title: "加载中"
				});
				var _this = this;
				request({
					url: '/homepage/getArticleOne',
					method: 'post',
					data: {
						"displayType": "1" //门店1
					}
				}).then(res => {
					console.log(res)
					if (res.data.code == 0) {
						_this.contentDetail = res.data.data.contentDetail;
					}
				}).catch(err => {})
				.finally(() => {
					setTimeout(() => {
						uni.hideLoading();
						this.loading = false;
					}, 1000);
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.picture {
		/deep/img {
			width: 100%;
		}
	}
</style>
