<template>
	<view class="center">
		<view style="background: linear-gradient( 180deg, #1FCA7C 0%, #F2F2F2 100%);">
			<u-navbar bgColor="transparent" placeholder="true">
				<view style="display: flex;align-items: center;font-size: 32rpx;color: #fff;" slot="left">
					<image src="/static/icon_home_dw1.png" style="width: 30rpx;height: 30rpx;margin-right: 10rpx;"
						mode=""></image>
					<text>{{address}}</text>
					<image src="/static/icon_xsj.png" style="width: 30rpx;height: 8.5rpx;margin-left: 8rpx;"
						mode="widthFix"></image>
				</view>
			</u-navbar>
			<view class="h-300 flex flex-row-between v-center  ml-60 mr-35">
				<view class="flex-column" style="color: #FFFFFF;">
					<text class="fs-52" style="text-align: left;">便民服务</text>
					<text class="fs-30">洗衣清洁 | 超市送水~</text>
				</view>
				<image class="w-280 h-216" src="/static/icon_bmfw.png"></image>
			</view>
		</view>
		<view class="overflow-y mlr-25" style="background: white;border-radius: 20rpx;margin-top: -20rpx;">
			<scroll-view scroll-y style="height: 100%;">
				<view class="mlr-25" style="align-items: left;">
					<view class="flex">
						<text class="fs-32 fw-700 mt-30 mb-10">便民服务</text>
					</view>

					<view class="flex-column">
						<image @click="onClick(0)" class="item" src="/static/icon_bmfw_1.png"></image>
						<image @click="onClick(1)" class="item" src="/static/icon_bmfw_2.png"></image>
						<image @click="onClick(2)" class="item" src="/static/icon_bmfw_3.png"></image>
						<image @click="onClick(3)" class="item" src="/static/icon_bmfw_4.png"></image>
					</view>
				</view>
			</scroll-view>
		</view>



	</view>
</template>

<script>
	export default {
		data() {
			return {
				address: '请选择',

			};
		},
		onLoad(options) {
			//获取小区信息
			const addressItem = uni.getStorageSync("addressItem")
			this.address = addressItem.communityName
		},
		methods: {
			onClick(inder) {
				this.$wskj.toast('敬请期待')
			},

		}
	};
</script>

<style>
	.center {
		height: 100vh;
		display: flex;
		flex-direction: column;
		background: #f5f5f5;
	}

	.item {
		width: 100%;
		height: 200rpx;
		margin-top: 20rpx;
	}
</style>