<template>
	<!-- 经销商基本信息 -->
	<view class="whole">
		<view class="head">
			<view class="behind"></view>
			<view class="below">
				<view class="content" v-for="(item, index) in supplier_s" :key="index">
					<view class="content_s">
						<view class="title">
							<view></view>
							<h3>{{item.agentName}}的经营品牌</h3>
						</view>
						<view class="information_E">
							<image v-for="(item2, index) in item.brandList" :key="index" :src="item2" mode=""></image>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		request
	} from '../../common/request/request'
	require("promise.prototype.finally").shim()
	export default {
			data() {
				return {
					mobile: '经销商名称',
					code: '张三',
					code_s: '13412336446',
					supplier_s: []		//经销商信息
				}
			},
			created(){
				this.supplier()
			},
			methods: {
				supplier(){
					request({
						url: '/myapp/storeSelectAgent',
						method: 'Post',
						data: {
							storeId: '3000',
							userId: '123'
						}
					}).then(res => {
						console.log(res.data.data)
						console.log(res)
						this.supplier_s = res.data.data
						console.log(res.data.data[1].brandList[1])
					}).catch(err => {
						console.log(err)
					}).finally(() => {
						// Loading.close()
					})
				}
			}
			
		}
</script>

<style lang="scss" scoped>
	.behind {
		width: 750rpx;
		height: 462rpx;
		background: url(../../static/sailun/behind.png) no-repeat;
		background-size: 100% 100%;
		background-repeat: no-repeat;
		margin-top:-150rpx;
		padding-top: 100px;
	}
	.below{
		margin-top: -270rpx;
	}
	.content {
		width: 667rpx;
		height: auto;
		background: #FFFFFF;
		box-shadow: 0px 10px 40px 0px rgba(223, 223, 223, 0.51);
		border-radius: 18px;
		margin: 0 auto;
		padding-top: 30rpx;
		margin-top: 20rpx;
		padding-bottom: 40rpx;

		.content_s {
			width: 92%;
			// height: 330rpx;
			height: auto;
			margin: 0 auto;
			margin-top: 10rpx;
			.information{
				margin-top: 10rpx;
			}
			.information_E{
				image{
					width: 48%;
					height: 100rpx;
					margin-top: 20rpx;
				}
			}
			.title {
				border-bottom: 1rpx solid #EBEBEB;
				padding-bottom: 15rpx;
				view {
					width: 6px;
					height: 20px;
					background: #0292FD;
					float: left;
					margin-right: 10rpx;
					margin-top: 5rpx;
				}
			}
		}
	}
</style>
