<template>
	<view>
		<view class="display" v-for="(item,index) in list">
			<view class="store-content" @click="handleClick(item)">
				<image :src="image(item.shopsPic)" mode="" class="store-image"></image>
				<view class="text-content">
					<view class="font-thirty-two font-color2">
						{{item.shopsName}}
					</view>
					<view class="font-twenty font-color5" style="margin-top: 20rpx;">
						类别：店铺未通过审核
					</view>
				</view>
			</view>
			<!-- <view class="button-dis">
				<button type="default" class="btn">通过</button>
				<button type="default" class="btn color">不通过</button>
			</view> -->
		</view>
	</view>
</template>

<script>
	import server from "@/api/index";
	import http from '@/common/http.js'
	export default {
		data() {
			return {
				list:[],
				userInfo: {}
			}
		},
		mounted() {
			this.userInfo = uni.getStorageSync('userInfo');
			this.getListFn()
		},
		methods: {
			showModel(){
				this.userInfo = uni.getStorageSync('userInfo');
				this.getListFn()
			},
			image(e) {
				return http.webUrl + e
			},
			handleClick(item){
				// if(item.type === '店铺'){
					uni.navigateTo({
						url: '/pages/manage/modifyInfo/modifyInfo?id=' + item.shopsId + '&flag="false"'
					})
				// }else if(item.type === '商品'){
				// 	uni.navigateTo({
				// 		url: '/pages/manage/modifyInfo/addToOrder?id=' + item.id + '&flag="false"'
				// 	})
				// }
			},
			getListFn(){
				server.getManageShopList({shopsStatus :'3', shopsId: this.userInfo.nickName}).then(res =>{
					this.list = [];
					if(res){
						this.list = res
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.display {
		margin: 30rpx 30rpx 0;
		padding: 30rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 8rpx;

		.store-content {
			display: flex;
			align-items: center;
			padding-bottom: 30rpx;
			border-bottom: 2rpx solid #DEDEDE;
			.store-image {
				width: 220rpx;
				height: 150rpx;
			}
			.text-content{
				margin-left: 30rpx;
			}
		}

		.button-dis {
			display: flex;
			margin-top: 30rpx;
			.btn {
				width: 300rpx;
				background: #2E4F1C;
				color: #FFFFFF;
				border-radius: 48rpx;
			}
			.color{
				background: #CC1019;
			}
		}
	}
</style>
