<script>
	export default {
		globalData: {
			baseUrl: 'https://tofflon.blpharms.com/client',
		},
		onLaunch: function() {
			let url = location.href;
			// let url = 'https://tofflon.blpharms.com/h5/?language=en'
			console.log('url', url);
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
  @import "@/uni_modules/uview-ui/index.scss";
  @import url("@/common/css/iconfont.css");
  html, body {
    //overflow: hidden;
    //height: 100%;
    //touch-action: none;
  }
	page {
    //height: 100vh !important;
		background-color: #F3F4F6;
		/* 兼容底部和头部安全区域 */
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
		padding-top: constant(safe-area-inset-top);
		padding-top: env(safe-area-inset-top);
	}

	view {
		color: #333333;
		font-size: 28rpx;
	}
	/* 搜索框 */
	/deep/.uni-searchbar {
		margin-top: 28rpx;
		padding: 0 !important;
	}

	/deep/.uni-searchbar__box {
		border: none !important;
		height: 90rpx !important;
		background-color: #FFFFFF !important;
		box-shadow: 0rpx 16rpx 60rpx rgba(202, 205, 220, 0.3) !important;
	}

	.flex-column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.flex-column-center {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.flex-align-center {
		display: flex;
		align-items: center;
	}

	.flex {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.flex-around {
		display: flex;
		justify-content: space-around;
		align-items: center;
	}

	.flex-between {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.flex-end {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	/* 单行文字省略 */
	.font-overflow {
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
	}

	/* 2行文字省略 */
	.font-overflow2 {
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		overflow: hidden;
		-webkit-box-orient: vertical;
	}

	.placeholder-input {
		color: #CCCCCC;
		font-size: 28rpx;
	}

	// 修改checkbox样式边框
	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
		border: 1rpx solid #BF1C2D;
		background-color: #BF1C2D;
	}

	uni-checkbox .uni-checkbox-wrapper {
		width: 100%;
	}

	uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
		border-color: #BF1C2D;
	}
</style>
