<template>
	<view class="content">
		<view class="header">
			<image src="../static/images/skm_fn_bg.png" mode="aspectFill" class="bg-img"></image>
			<view class="info-block flex-y-center">
				<view class="info">
					<view class="title">商户管理</view>
					<view class="desc">查看管理商户应用</view>
				</view>
			</view>
		</view>
		<view class="content-row">
			<view class="setup flex-y-center ft32">
				常用应用
			</view>

			<view class="table">
				<view class="table-tr">
					<navigator class="table-td" url="flow-record?shop=1">
						<image src="./static/images/liu.png" mode=""></image>
						<view class="">流水记录</view>
					</navigator>

					<navigator class="table-td" url="coupon">
						<image src="./static/images/coupon.png" mode=""></image>
						<view class="">优惠券列表</view>
					</navigator>

					<navigator class="table-td" url="addCoupons">
						<image src="./static/images/add-coupon.png" mode=""></image>
						<view class="">添加优惠券</view>
					</navigator>

					<navigator class="table-td" url="Applied">
						<image src="./static/images/add-hexiao.png" mode=""></image>
						<view class="">核销优惠券</view>
					</navigator>

					<navigator class="table-td" url="verification">
						<image src="./static/images/hexiao.png" mode=""></image>
						<view class="">核销记录</view>
					</navigator>

					<navigator class="table-td" v-if="admin_id" url="../saomaDiancan/index/index?type=1">
						<image src="./static/images/hexiao.png" mode=""></image>
						<view class="">餐饮管理</view>
					</navigator>

				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user_info: {},
				admin_id: "",
			}
		},
		onLoad(e) {
			this.admin_id = e.admin_id;
			if (e.admin_id) {
				uni.setStorageSync("admin_id", e.admin_id);
			}
		},

		methods: {

		}
	}
</script>

<style>
	.header {
		width: 100%;
		height: 198rpx;
		position: relative;
	}

	.header .bg-img {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		z-index: 1;
		width: 100%;
		height: 198rpx;
	}

	.header .info-block {
		padding: 0 40rpx 0 48rpx;
		height: 198rpx;
		position: relative;
		z-index: 2;
	}

	.header .info-block .title {
		font-size: 36rpx;
		color: #fff;
		font-weight: 500;
		line-height: 50rpx;
	}

	.header .info-block .desc {
		font-size: 28rpx;
		font-weight: 500;
		color: #fff;
		line-height: 40rpx;
		margin-top: 8rpx;
	}

	.content-row {
		background-color: #fff;
		border-radius: 10px 10px 0 0;
		margin-top: -10px;
		padding: 10px 21px 0;
		z-index: 3;
		position: relative;
	}

	.setup {
		width: 100%;
		height: 90rpx;

		opacity: 1;
		padding: 0 22rpx;
	}

	.table,
	.table div {
		margin: 0 auto;
	}

	.table {
		width: 100%;
		border-collapse: collapse;
		box-sizing: border-box;
	}

	.table-tr {}

	.table-th {
		display: table-cell;
		font-weight: bold;
		border: 1rpx solid #FAFAFA;
		text-align: center;
		vertical-align: middle;
	}

	.table-td {
		display: inline-block;
		/* border: 1rpx solid #FAFAFA; */
		text-align: center;
		vertical-align: middle;
		background: #fff;
		font-size: 27rpx;
		color: #666666;
		padding: 62rpx 0;
		width: 33.333%;
	}

	.table-td image {
		width: 50rpx;
		height: 50rpx;
		margin-bottom: 23rpx;
	}
</style>
