<template>
	<view class="container">
		<uni-card>
			<template v-slot:title>
				<text>{{shop.district}} {{shop.building}} {{shop.floor}}  {{shop.number}}</text>
				<text>{{shop.status}}</text>
			</template>
			<text class="uni-body">{{shop.name}} {{shop.catagory}} {{shop.area}} {{shop.business_model}} {{shop.contact}} {{shop.phone}}</text>
		</uni-card>
	</view>
</template>

<script>
	import request from '../../api/shop.js';
	import { BASE_URL } from '../../env.js';
	export default {
		components: {},
		onLoad: function (option) {
			this.shopId = option.id;
		},
		data() {
			return {
				shopId: '',
				shop: {},
			}
		},
		async mounted() {
			const resp = await request.getShopInfo({ shopId: this.shopId});
			this.shop = resp.data;
		},
		methods: {}
	}
</script>

<style>
</style>
