<template>
	<view class="container">
		<uni-card>
			<template v-slot:title>
				<text>{{merchant.name}} {{merchant.affiliatedCommunity}} {{merchant.type}}</text>
				<text></text>
			</template>
			<text class="uni-body">{{merchant.address}} {{merchant.contact}} {{merchant.tel}}</text>
		</uni-card>
	</view>
</template>

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

<style>
</style>
