<template>
	<view class="container all-type-list-wrapper">
		<supplier-details :shop="shopInfo" v-if="isLoading"></supplier-details>
	</view>
</template>

<script>
	import supplierDetails from "@/components/cm-module/productDetails/supplierDetails" //供应商详情
	export default{
		components:{
			supplierDetails
		},
		data(){
			return{
				shopInfo:{},
				isLoading:false
			}
		},		
		onLoad(option) {
			
		},
		methods:{
			
		},
		onShow() {
			this.$api.getComStorage('supplierInfo').then((resolve) =>{
				this.shopInfo = resolve
				this.isLoading = true
			}).catch(reject =>{
				console.log('异常处理=========>',reject)
			})
		}
	}
</script>

<style lang="scss">
	page {
		background: $sub-bg-color;
		.all-type-list-wrapper {
			display: flex;
			flex-direction: column;
		}
	}
</style>
