<script>
	var wsUrl="ws://42.194.245.189:8008/app/webSocket/w-";
	var pingpangTimes=null;
	var isSocketOpen=false;
	var socket=null;
	export default {
		globalData: {
			wsDanmuUrl: 'wss://userapp.gjh2024.com/apis', // 小程序wss,h5用ws
		},
		data() {
			return {
			};
		},
		onLaunch: function() {
			// uni.hideTabBar();
		},
		onLoad() {
			 // #ifndef MP-WEIXIN 
			    uni.hideNavigationBar(); // H5 隐藏导航栏
			// #endif
		},
		onShow: function() {
			
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		onUnload() {
			
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import '@/assets/css/theme.scss';
	@import '@/assets/css/common.scss';
	view{
		box-sizing: border-box;
	}
	.ellipsis{
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.single-line-ellipsis {
		width: 480rpx; /* 设置固定宽度 */
		white-space: nowrap; /* 文本不换行 */
		overflow: hidden; /* 隐藏超出部分 */
		text-overflow: ellipsis; /* 超出部分用省略号表示 */
	}
	.single-ellipsis {
		width: 260rpx; /* 设置固定宽度 */
		white-space: nowrap; /* 文本不换行 */
		overflow: hidden; /* 隐藏超出部分 */
		text-overflow: ellipsis; /* 超出部分用省略号表示 */
	}
	.ellipsis2{
		overflow:hidden; 
		text-overflow:ellipsis;
		display:-webkit-box; 
		-webkit-box-orient:vertical;
		-webkit-line-clamp:2; 
	}
	 
	
	.no-data-box{
		height:100%;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		image{
			width: 264upx;
			height: 212upx;
		}
		.empty-title{
			margin-top: 20rpx;
			font-size: 28rpx;
			color: gray;
			 
		}
	}
		
	
	
		.w-calc-30 {
			padding: 0 30rpx;
			width: calc(100% - 60rpx);
		}
	
		.hb {
			height: 100%;
			box-sizing: border-box;
		}
	
		.hidden {
			overflow: hidden;
		}
	
		.base-color {
			color: $--base-color;
		}
	
		.base-color-2 {
			color: $--base-color2;
		}
	
		.base-color-3 {
			color: $--base-color3;
		}
		.base-color-9 {
			color: $--base-color-9;
		}
		.base-color-8 {
			color: $--base-color-f8;
		}
		.base-color-6 {
			color: $--base-color-6;
		}
		.base-color-gray {
			color: $--base-color-gray;
		}
		.base-color-red{
				color:#ee0a25;
		}
		.base-color-dark {
			color: $--base-color-dark;
		}
	
		.base-color-dark2 {
			color: $--base-color-dark2;
		}
	
		.base-price {
			color: $--base-color-price;
		}
	
		.base-success {
			color: $--base-color-success;
		}
	
		.base-bg {
			background: $--base-bg;
		}
	
		.base-bg-2 {
			background: $--base-bg2;
		}
		.base-bg-red{
			background: #ee0a25;
		}
		.base-bg-f{
			background-color:#fff;
		}
		.base-bg-f8{
			background-color: $--base-color-f8;
		}
		.base-bg-f5{
			background-color: $--base-color-f5;
		}
		.base-bg-9{
			background-color: $--base-color-9;
		}
		.base-bg-blue{
			background:$--base-bg-blue;
		}
		.base-bg-sure{
			background:$--base-sure-bg;
		}
		.base-bg-orange{
			background:$--base-bg-orange;
		}
		.base-bg-false{
			background:$--base-false-bg;
		}
		.bor-blue{
			border: 2rpx solid $--base-bor-blue;
		}
		.bor-red{
			border: 2rpx solid $--base-bor-red;
		}
		.colorf {
			color: #fff;
		}
	
		.bgf {
			background: #fff;
		}
	
		.fixed {
			position: fixed;
		}
	
		.absolute {
			position: absolute;
		}
	
		.relative {
			position: relative;
		}
	
		.w100 {
			width: 100%;
		}
	
		.h100 {
			height: 100%;
		}
	
		.card {
			background: #fff;
			border-radius: 15rpx;
		}
	
		.cover-height {
			height: 100%;
			display: flex;
			flex-direction: column;
			box-sizing: border-box;
		}
	
		.row {
			display: flex;
			flex-direction: row;
		}
	
		.column {
			display: flex;
			flex-direction: column;
		}
	
		.justify-start {
			display: flex;
			justify-content: flex-start;
		}
	
		.justify-center {
			display: flex;
			justify-content: center;
		}
	
		.justify-end {
			display: flex;
			justify-content: flex-end;
		}
	
		.justify-around {
			display: flex;
			justify-content: space-around;
		}
		.justify-evenly {
			display: flex;
			justify-content: space-evenly;
		}
	
		.justify-between {
			display: flex;
			justify-content: space-between;
		}
	
		.align-start {
			display: flex;
			align-items: flex-start;
		}
	
		.align-center {
			display: flex;
			align-items: center;
		}
	
		.align-end {
			display: flex;
			align-items: flex-end;
		}
	
		.center {
			display: flex;
			justify-content: center;
			align-items: center;
		}
	
		.centerV {
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
		}
	
		.wrap {
			flex-wrap: wrap;
		}
	
		.flex-1 {
			flex: 1;
		}
	
		.ellipsis {
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			box-sizing: border-box;
			width: 100%;
			-webkit-line-clamp: 1;
		}
	
		.lines-2 {
			-webkit-line-clamp: 2 !important;
		}
	
		.lines-3 {
			-webkit-line-clamp: 3 !important;
		}
	
		.bold {
			font-weight: bold;
		}
	
		.line-through {
			text-decoration: line-through;
		}
	
		.nowrap {
			white-space: nowrap;
		}
	
		.scrollx {
			overflow-x: scroll;
		}
	
		.scrolly {
			overflow-y: scroll;
		}
	
		.cvauto {
			content-visibility: auto;
		}

</style>
<style lang="less">
/*每个页面公共css */
@import './assets/iconfont/iconfont.css';
@import './assets/css/common.less';
</style>
