<template>
	<view class="container cart clearfix" v-if="hasLogin"> 	
		<cart :pathType='pathType' v-if="isShowComponents"></cart>
	</view>
</template>
<script>
	import { mapState,mapMutations } from 'vuex';
	import cart from '@/components/cm-module/cart-components/index.vue'
	export default{
		components:{
			cart
		},
		data(){
			return{
				isShowComponents:false,
				pathType:0
			}
		},
		onLoad(){
			this.isShowComponents = true;
		},
		computed: {
			...mapState(['hasLogin','userInfo','isWxAuthorize'])
		},
		methods:{
			
		},
		onPullDownRefresh() {//下拉刷新
			this.isShowComponents = false;
			uni.stopPullDownRefresh()
			this.isShowComponents = true;
		},
		onShow(){
			
		},
	}
</script>

<style lang="scss">
	
</style>