<template>
	<view class='center'>
		<view style="background: linear-gradient( 180deg, #1FCA7C 0%, #F2F2F2 100%);height: 550rpx;">
			<u-navbar :autoBack="true" title="常用电话" placeholder="true" bgColor="transparent" leftIconColor="#FFF"
				:title-style="{color: '#FFF'}">
			</u-navbar>
			<view class=" mlr-25 mt-30 ">
				<input style="height: 72rpx; text-align: center;border:1rpx solid #F2F2F2; border-radius:36rpx ;"
					placeholder="搜索" placeholder-style="color:#fff" />
			</view>
		</view>
		<view class="overflow-y mlr-25"
			style="background: white;border-top-left-radius: 20rpx;border-top-right-radius: 20rpx;margin-top: -250rpx;">
			<scroll-view scroll-y style="height: 100%;">
				<view class="mar-20">
					<view v-for="(item, index) in 40" :key="index">
						<view class="flex" style="border:1rpx solid #20CA7D;">
							<view class="flex vh-center ptb-20 fs-24" style="flex: 1;border-right:1rpx solid #1FCA7C;">
								天气预报
							</view>
							<view class="flex vh-center fs-28" style="flex: 1;border-right:1rpx solid #1FCA7C;">
								12121
							</view>
							<view class="flex vh-center" style="flex: 1;" @click="onZd(index)">
								<view class="flex-column vh-center" style="flex: 1;">
									<image v-if="index==0" class="w-30 h-30" src="/pagesMain/static/icon_cydh_qxzd.png">
									</image>
									<image v-else class="w-30 h-30" src="/pagesMain/static/icon_cydh_zd.png"></image>
									<text style="color: #999999;font-size: 18rpx;">{{index==0?"取消置顶":"置顶"}}</text>
								</view>
								<view class="flex-column vh-center ml-30" style="flex: 1;" @click="onBd('10086')">
									<image class="w-30 h-30" src="/pagesMain/static/icon_cydh_dh.png"></image>
									<text style="color: #999999;font-size: 18rpx;">一键拨打</text>
								</view>
							</view>
						</view>

					</view>

				</view>


			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		onLoad(e) {

		},
		methods: {
			onZd(index) {
				if (index == 0) {
					this.$wskj.toast("取消置顶")
				} else {
					this.$wskj.toast("置顶")
				}

			},
			onBd(phone) {
				this.$wskj.onCall(phone)
			}
		},
	};
</script>

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