| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 | <template>	<view>		<view class="top-bg"></view>		<view class="top">			<text class="title">集散区临时消杀场</text>		</view>		<view class="item-box">			<view class="item" hover-class="hover-class" v-for="(indexItem,index) in indexItemList" :key="index"				@click="navTo(indexItem)">				<image class="icon" :src="indexItem.icon"></image>				<view class="text">{{indexItem.text}}</view>			</view>		</view>		<view class="qrcode">			<image class="qrcode" :src="qrcoderlc"></image>			<text class="text">长按二维码保存分享</text>		</view>	</view></template><script>	export default {		data() {			return {				qrcoderlc: 'https://shiyupeng.com/data/img/ewm.png',				indexItemList: [{						auth: false,						icon: '../../static/home-icon-01.png',						text: '企业注册',						url: '/pages/enterprise-reg/enterprise-reg'					},					{						auth: true,						icon: '../../static/home-icon-02.png',						text: '业务录入',						url: '/pages/business-entering/business-entering'					},					{						auth: true,						icon: '../../static/home-icon-03.png',						text: '业务订单',						url: '/pages/business-order/business-order'					},					{						auth: true,						icon: '../../static/home-icon-04.png',						text: '企业管理',						url: '/pages/customer-management/customer-management'					},					{						auth: true,						icon: '../../static/home-icon-05.png',						text: '出入记录',						url: '/pages/inout-record/inout-record'					}				]			}		},		onLoad() {		},		methods: {			navTo(item) {				let auth = item.auth;				let token = uni.getStorageSync('token');				if (!auth||token) {					this.$common.to(item.url)				} else {					this.$common.to('/pages/login/login')				}			}		}	}</script><style lang="scss">	page {		background-color: #fff;	}	.top-bg {		position: relative;		top: 0;		left: 0;		right: 0;		height: 500rpx;		background-color: #0080ff;		border-radius: 0 0 20rpx 20rpx;	}	.top {		display: flex;		width: 100%;		align-items: center;		justify-content: center;		margin: 60rpx 0;		margin-top: -440rpx;		position: relative;		z-index: 2;		.title {			font-size: 50rpx;			font-weight: bold;			color: #fff;		}	}	.item-box {		display: flex;		flex-wrap: wrap;		align-content: flex-start;		padding: 40rpx;		box-sizing: border-box;		background-color: #fff;		margin: 0 30rpx;		border-radius: 20rpx;		position: relative;		z-index: 2;		//height: calc(100vh - 170rpx - 500rpx);		box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.03);		.item {			width: 33.333%;			display: flex;			flex-direction: column;			align-items: center;			justify-content: center;			padding: 40rpx 0;			.icon {				width: 90rpx;				height: 90rpx;			}			.text {				font-size: 28rpx;				color: #191919;				margin-top: 20rpx;			}		}	}	.qrcode {		display: flex;		width: 100%;		flex-direction: column;		align-items: center;		justify-content: center;		margin: 50rpx 0;		.qrcode {			width: 350rpx;			height: 350rpx;			border: 1px solid #191919;		}		.text {			color: #191919;			font-size: 28rpx;			margin-top: 5rpx;		}	}</style>
 |