Newer
Older
xinJiangMiniProgranm / packageA / phones / phones.vue
dutingting on 13 Jun 2023 4 KB 网站类型举报
<template>
	<view class="phones">
		<image src="http://111.198.10.15:11604/png/back_ts.png" style="position:absolute;top: -4rpx;left: 0;z-index: -999; width:100%;height: 300rpx;"></image>
		<view style="color: #fff;font-size: 36rpx;text-align: center;font-weight: 600;">
			各地、州、市网信部门举报电话
		</view>
		<view class="main">
			<view class="box">
				<i class="top"></i><i class="bottom"></i>
				<text>地、州、市</text>
				<text>举报电话</text>
			</view>
			<view class="list-item" v-for="(item, index) in phonesList" :key="index">
				<text style="color: #000;font-weight: 600;word-break: break-all;">{{item.name}}</text>
				<view style="color: #000;font-weight: 600;word-break: break-all;" @click="call(item.phone)">{{item.phone}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phonesList: [
					{
						name: '乌鲁木齐市',
						phone: '0991-4168123',
					},
					{
						name: '伊犁哈萨克自治州',
						phone: '0999-8032982',
					},
					{
						name: '塔城地区',
						phone: '0901-6856007',
					},
					{
						name: '阿勒泰地区',
						phone: '0906-2317252',
					},
					{
						name: '克拉玛依市',
						phone: '0990-6261005',
					},
					{
						name: '博尔塔拉蒙古自治州',
						phone: '0909-2319278',
					},
					{
						name: '昌吉回族自治州',
						phone: '0994-2586700',
					},
					{
						name: '哈密市',
						phone: '0902-7265333',
					},
					{
						name: '吐鲁番市',
						phone: '0995-8525882',
					},
					{
						name: '巴音郭楞蒙古自治州',
						phone: '0996-2620315',
					},
					{
						name: '阿克苏地区',
						phone: '0997-2187788',
					},
					{
						name: '克孜勒苏柯尔克孜自治州',
						phone: '0908-4234053',
					},
					{
						name: '喀什地区',
						phone: '0998-2950026',
					},
					{
						name: '和田地区',
						phone: '0903-2039577',
					},
				]
			}
		},
		methods: {
			// 点击举报电话
			call(phone) {
				wx.makePhoneCall({
					phoneNumber: phone,
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.phones {
		position: relative;
		width: 100%;
		box-sizing: border-box;
		padding: 60rpx 20rpx;
		.main {
			background: #fff;
			border-radius: 20rpx;
			line-height: 70rpx;
			margin-top: 40rpx;
			overflow: hidden;
			.title {
				background-color: #0043ac;
				color: #fff;
				font-weight: 600;
				display: flex;
				justify-content: space-between;
				padding: 20rpx;
			}
			.list-item {
				display: flex;
				justify-content: space-between;
				padding: 20rpx;
				border-bottom: 2rpx solid #ccc
			}
			.box {
				width: 100%;
				height: 100%;
				padding: 20rpx 40rpx;
				// padding-left: 0;
				box-sizing: border-box;
				background-color: #0043ac;
				position: relative;
				overflow: hidden;
				color: #fff;
				font-weight: 600;
				display: flex;
				justify-content: space-between;
				&::before {
					content: ' ';
					position: absolute;
					width: 10rpx;
					height: 100%;
					top: -100%;
					left: 0rpx;
					background-image: linear-gradient(
						0deg,
						transparent,
						#fff,
						transparent
					);
					animation: two 4s linear infinite;
				}
				&::after {
					content: ' ';
					position: absolute;
					width: 10rpx;
					height: 100%;
					bottom: -100%;
					right: 0;
					background-image: linear-gradient(
						360deg,
						transparent,
						#fff,
						transparent
					);
					animation: four 4s linear 2s infinite;
				}
				i {
					position: absolute;
					display: inline-block;
					height: 10rpx;
					width: 100%;
				}
				.bottom {
					bottom: 0;
					left: -100%;
					background-image: linear-gradient(
						270deg,
						transparent,
						#fff,
						transparent
					);
					animation: one 4s linear 1s infinite;
				}
				.top {
					top: 0;
					right: -100%;
					background-image: linear-gradient(
						270deg,
						transparent,
						#fff,
						transparent
					);
					animation: three 4s linear 3s infinite;
				}}
			@keyframes one {
			  0% {
			    left: -100%;
			  }
			  50%,
			  100% {
			    left: 100%;
			  }
			}
			 
			@keyframes two {
			  0% {
			    top: -100%;
			  }
			  50%,
			  100% {
			    top: 100%;
			  }
			}
			 
			@keyframes three {
			  0% {
			    right: -100%;
			  }
			  50%,
			  100% {
			    right: 100%;
			  }
			}
			 
			@keyframes four {
			  0% {
			    bottom: -100%;
			  }
			  50%,
			  100% {
			    bottom: 100%;
			  }
			}
			
		}
	}
</style>
<style>
	page {
		background-color: #f0f0f0;
	}
</style>