<template>
	<view>
		<!-- 月度政策 -->
		
	</view>
</template>

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

<style>

</style>
