<template>
	<view class="shop-page">
		<scroll-view scroll-y class="shop-list">
			<view class="shop-item" v-for="(item, index) in shopList" :key="index">
				<image
					class="avatar"
					:src="`${constant.imgUrl}/uploads/12358/202005/29/de74c55596d304b85e79154958e8bf57_small.jpeg`"
					alt="商品图"
				/>
				<view class="info">
					<view class="info-name">{{ item.name }}</view>
					<view class="info-address">
						{{ item.dateTime }}
					</view>
				</view>
				<view :class="['edit']">
					<text class="iconfont iconshoukuanma1"> </text>
					<text class="iconfont iconbianji"> </text>
					<text class="iconfont iconshanchu1"> </text>
				</view>
			</view>
		</scroll-view>
		<view class="under-bar">
			<button :class="['admin-button-com', 'middle', 'blue']" @click="">
				添加
			</button>
		</view>
	</view>
</template>
<script>
export default {
	components: {},
	data() {
		return {
			tabs: [
				{
					name: "全部",
					key: ""
				},
				{
					name: "草稿",
					key: "01"
				},
				{
					name: "已盘点",
					key: "02"
				}
			],
			shopList: [
				{
					orderNo: "PD20201217212800156",
					name: "小许",
					dateTime: "2020-7-10 21:50",
					count: "101",
					status: "02"
				},
				{
					orderNo: "PD20201217212800156",
					name: "小许",
					dateTime: "2020-7-10 21:50",
					count: "101",
					status: "02"
				},
				{
					orderNo: "PD20201217212800156",
					name: "小许",
					dateTime: "2020-7-10 21:50",
					count: "101",
					status: "01"
				}
			]
		};
	}
};
</script>
<style lang="scss" scoped>
.shop-page {
	height: 100%;
	display: flex;
	flex-direction: column;
	background-color: #f9fbfc;
	.under-bar {
		padding: 0 20upx;
		display: flex;

		flex-shrink: 0;
		justify-content: flex-end;
		align-items: center;
		width: 100%;
		height: 100upx;
		background-color: #fff;
	}
	.shop-list {
		margin-top: 20upx;
		flex: 1;
		padding-bottom: 150upx;
		.shop-item {
			margin-bottom: 1px;
			padding: 30upx;
			display: flex;
			align-items: center;
			box-shadow: 0px 1px 0px 0px #eeeeee;
			background-color: #fff;
			.avatar {
				width: 90upx;
				height: 90upx;
				border-radius: 50%;
				image {
					width: 100%;
					height: 100%;
				}
			}
			.info {
				flex: 1;
				margin: 0 20px;
				.info-name {
					font-size: 30upx;
					font-weight: 600;
					color: #333333;
				}
				.info-address {
					margin-top: 15upx;
					font-size: 24upx;
					font-weight: 400;
					color: #999999;
				}
			}
			.edit {
				display: flex;
				align-items: center;
				justify-content: space-around;
				flex-shrink: 0;
				.iconfont {
					margin: 0 20upx;
				}
				.iconshoukuanma1 {
					font-size: 40upx;
					color: $mainColor;
				}
				.iconbianji {
					font-size: 40upx;
				}
				.iconshanchu1 {
					font-size: 40upx;
				}
			}
		}
	}
}
</style>
