<template>
	<view>
		<u-navbar title="店铺详情" leftIconSize="0" @leftClick="leftClick" placeholder>
			<u-icon name="arrow-left" slot="left" color="#333333" size="24"></u-icon>
		</u-navbar>

		<detailedinformation :msgabc="arr"></detailedinformation>
	</view>
</template>

<script>
	import detailedinformation from "./detailedinformation.vue"
	import portrait from "./portrait.vue"
	import visit from "./visit.vue"
	export default {
		components: {
			detailedinformation,
			portrait,
			visit
		},
		data() {
			return {
				index: 0,
				arr: [{
					msg: '',
					id: ''
				}],
				list1: [{
						name: "基础信息"
					},
					{
						name: '客户画像'
					},
					{
						name: '客户拜访'
					}
				]
			};
		},
		onLoad(status) {
			console.log(status, '传入');
			this.arr.msg = status.st //客户id
			this.arr.id = status.id //店铺id
		},
		methods: {
			click(item) {

				this.index = item.index
				console.log('item', item.index);
			},
			leftClick(){
				// #ifdef H5
				event.stopPropagation();
				// #endif
					uni.navigateTo({
						url: `/page_salesman_customer/Management/Management?status=${this.arr.msg}`,
					})
			}
			
		}
	}
</script>

<style lang="scss">
	::v-deep {
		.u-tabs__wrapper__nav {
			width: 100%;

		}

		.u-tabs__wrapper__nav__item {
			padding: 0 68rpx;
		}

	}

	.head {
		width: 750rpx;
		height: 100rpx;
		background: #FFFFFF;

	}
</style>
