<script>
	const updateManager = wx.canIUse('getUpdateManager') ? wx.getUpdateManager() : null;
	export default {
		onLaunch: function() {
			this.$options.checkHasLoginInfo();
		},
		onShow: function() {
			let that = this;
			updateManager && updateManager.onUpdateReady(function() {
				wx.showModal({
					showCancel: false,
					title: '更新提示',
					content: '新版本已经准备好，请重启应用',
					success: function(res) {
						// 新的版本已经下载好，调用 applyUpdate 应用新版本并重启
						updateManager.applyUpdate();
					}
				});
			});
		},
		onHide: function() {
			console.log('App Hide')
		},
		checkHasLoginInfo() {
			wx.checkSession({
				success: function(res) {
					console.warn('已经登录', res);
				},
				fail: function() {
					uni.clearStorageSync();
				}
			});
		}
	}
</script>

<style>
	/*每个页面公共css */
	@font-face {
	    font-family: 'TpldKhangXiDictTrial';  /*重命名字体名 */
	    src: url('https://cs.tour-ma.com/r/cms/www/m/yushan/WenYue-GuDianMingChaoTi-NC-W5-1.otf');  //引入字体
	    font-weight: normal;
	    font-style: normal;
	}
	/*每个页面公共css */
	page{
		width: 100%;
		height: 100%;
		
	}
	.family_regular {
		font-family: SourceHanSansCNRegular, PingFangSC-Regular, Microsoft YaHei, arial, sans-serif;
	}
	
	.family_heiti {
		font-family: heiti, PingFangSC-Regular, Microsoft YaHei, arial, sans-serif;
	}
	
	.font_normal {
		font-family: PingFangSC-Regular, Microsoft YaHei, arial, sans-serif;
	}
	
	.font_bold {
		font-family: PingFangSC-Semibold, Microsoft YaHei, arial, sans-serif;
		font-weight: bold;
	}
	
	.no_data {
		padding: 60rpx 0 30rpx 0;
		text-align: center;
		font-size: 28upx;
		color: #999;
	}
	
	page,
	.body {
		font-size: 24upx;
		height: 100%;
		overflow-y: auto;
		font-family: PingFangSC-Regular, Microsoft YaHei, arial, sans-serif;
	}
	
	image {
		display: block;
	}
	
	.mescroll-empty .empty-icon {
		margin: auto;
	}
	
	.line_through {
		text-decoration: line-through;
	}
	
	.bottom_line {
		position: fixed;
		bottom: 0;
		width: 100%;
		left: 0;
		z-index: 998;
		height: 1px;
		background-color: #eee;
	}
	
	.overflow_hidden {
		overflow: hidden;
	}
	
	button {
		margin: 0;
		padding: 0;
		border-radius: 0;
		line-height: 1;
	}
	
	button:focus {
		outline: none;
	}
	
	button::after {
		border: none;
		border-radius: 0;
	}
	
	/*三角形*/
	.triangle_left {
		position: relative;
		height: 0px;
		width: 0px;
		border-top: 6upx solid transparent;
		border-right: 8upx solid #808080;
		border-bottom: 6upx solid transparent;
	}
	
	.triangle_right {
		position: relative;
		height: 0px;
		width: 0px;
		border-top: 6upx solid transparent;
		border-left: 8upx solid #808080;
		border-bottom: 6upx solid transparent;
	}
	
	.triangle_top {
		position: relative;
		height: 0px;
		width: 0px;
		border-bottom: 8upx solid #808080;
		border-left: 6upx solid transparent;
		border-right: 6upx solid transparent;
	}
	
	.triangle_bottom {
		position: relative;
		height: 0px;
		width: 0px;
		border-top: 8upx solid #808080;
		border-left: 6upx solid transparent;
		border-right: 6upx solid transparent;
	}
	
	/*解决页面渲染看到隐藏的demo*/
	[v-cloak] {
		display: none;
	}
	
	/*按钮*/
	.content_btn_con {
		overflow: hidden;
		padding: 30upx 30upx;
	}
	
	.main_content_btn {
		height: 88upx;
		line-height: 88upx;
		text-align: center;
		background: #ffb155;
		border-radius: 10upx;
		color: $color_fff;
		font-size: 32upx;
		font-weight: bold;
	}
	
	/*tab*/
	
	/*文本超出宽度点点*/
	.text_hidden {
		overflow: hidden;
		white-space: nowrap !important;
		text-overflow: ellipsis !important;
	}
	
	/*行文本溢出点点*/
	.one_hidden {
		display: -webkit-box;
		overflow: hidden;
		text-overflow: ellipsis;
		word-break: break-all;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
	}
	
	.two_hidden {
		display: -webkit-box;
		overflow: hidden;
		text-overflow: ellipsis;
		word-break: break-all;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}
	
	.three_hidden {
		display: -webkit-box;
		overflow: hidden;
		text-overflow: ellipsis;
		word-break: break-all;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
	
	.color_bg_main {
		background: $color_main !important;
		color: $color_fff !important;
		border-color: $color_main !important;
	}
	
	.color_br_main {
		color: $color_main !important;
		border-color: $color_main !important;
	}
	
	.color_black {
		color: $color_black !important;
	}
	
	.color_main {
		color: $color_main !important;
	}
	
	.color_orange {
		color: $color_orange !important;
	}
	
	.color_green {
		color: $color_green;
	}
	
	.color_light_green {
		color: $color_light_green;
	}
	
	.color_999 {
		color: $color_999;
	}
	
	.color_red {
		color: $color_red !important;
	}
	
	.color_pink {
		color: $color_pink;
	}
	
	.color_666 {
		color: $color_666;
	}
	
	.color_808080 {
		color: $color_808080;
	}
	
	.color_ccc {
		color: $color_ccc;
	}
	
	.color_333 {
		color: $color_333;
	}
	
	.color_blue {
		color: $color_blue !important;
	}
	
	.color_bg_gray {
		background-color: #d9d9d9 !important;
	}
	
	/*字体大小*/
	.font_16 {
		font-size: 16upx !important;
	}
	
	.font_18 {
		font-size: 18upx !important;
	}
	
	.font_20 {
		font-size: 20upx !important;
	}
	
	.font_22 {
		font-size: 22upx !important;
	}
	
	.font_24 {
		font-size: 24upx !important;
	}
	
	.font_26 {
		font-size: 26upx !important;
	}
	
	.font_28 {
		font-size: 28upx !important;
	}
	
	.font_30 {
		font-size: 30upx !important;
	}
	
	.font_32 {
		font-size: 32upx !important;
	}
	
	.font_34 {
		font-size: 34upx !important;
	}
	
	.font_36 {
		font-size: 36upx !important;
	}
	
	.font_40 {
		font-size: 40upx !important;
	}
	
	.font_42 {
		font-size: 43upx !important;
	}
	
	.font_44 {
		font-size: 44upx !important;
	}
	
	.font_46 {
		font-size: 46upx !important;
	}
	
	.font_50 {
		font-size: 50upx !important;
	}
	
	.font_62 {
		font-size: 62upx !important;
	}
	
	.font_72 {
		font-size: 72upx !important;
	}
	
	.float_left {
		float: left !important;
	}
	
	.float_right {
		float: right !important;
	}
	
	/*间距*/
	.ml_0 {
		margin-left: 0 !important;
	}
	
	.ml_10 {
		margin-left: 10upx;
	}
	
	.ml_20 {
		margin-left: 20upx;
	}
	
	.ml_30 {
		margin-left: 30upx;
	}
	
	.ml_40 {
		margin-left: 40upx;
	}
	
	.ml_60 {
		margin-left: 60upx;
	}
	
	.ml_80 {
		margin-left: 80upx;
	}
	
	.ml_100 {
		margin-left: 100upx;
	}
	
	.ml_120 {
		margin-left: 120upx;
	}
	
	.ml_10 {
		margin-left: 10upx;
	}
	
	.ml_20 {
		margin-left: 20upx;
	}
	
	.ml_30 {
		margin-left: 30upx;
	}
	
	.ml_40 {
		margin-left: 40upx;
	}
	
	.ml_60 {
		margin-left: 60upx;
	}
	
	.ml_80 {
		margin-left: 80upx;
	}
	
	.ml_100 {
		margin-left: 100upx;
	}
	
	.ml_120 {
		margin-left: 120upx;
	}
	
	.mt_10 {
		margin-top: 10upx;
	}
	
	.mt_20 {
		margin-top: 20upx;
	}
	
	.mt_30 {
		margin-top: 30upx;
	}
	
	.mt_40 {
		margin-top: 40upx;
	}
	
	.mt_60 {
		margin-top: 60upx;
	}
	
	.mt_80 {
		margin-top: 80upx;
	}
	
	.mt_100 {
		margin-top: 100upx;
	}
	
	.mt_120 {
		margin-top: 120upx;
	}
	
	.mb_10 {
		margin-bottom: 10upx;
	}
	
	.mb_20 {
		margin-bottom: 20upx;
	}
	
	.mb_30 {
		margin-bottom: 30upx;
	}
	
	.mb_40 {
		margin-bottom: 40upx;
	}
	
	.mb_60 {
		margin-bottom: 60upx;
	}
	
	.mb_80 {
		margin-bottom: 80upx;
	}
	
	.mb_100 {
		margin-bottom: 100upx;
	}
	
	.mb_120 {
		margin-bottom: 120upx;
	}
	
	.mr_10 {
		margin-right: 10upx;
	}
	
	.mr_20 {
		margin-right: 20upx;
	}
	
	.mr_30 {
		margin-right: 30upx;
	}
	
	.mr_40 {
		margin-right: 40upx;
	}
	
	.mr_60 {
		margin-right: 60upx;
	}
	
	.mr_80 {
		margin-right: 80upx;
	}
	
	.mr_100 {
		margin-right: 100upx;
	}
	
	.mr_120 {
		margin-right: 120upx;
	}
	
	.p_0 {
		padding: 0 !important;
	}
	
	.ptb_0 {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	
	.plr_0 {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	.pt_10 {
		padding-top: 10upx;
	}
	
	.pt_5 {
		padding-top: 5upx;
	}
	
	.pt_20 {
		padding-top: 20upx;
	}
	
	.pt_30 {
		padding-top: 30upx;
	}
	
	.pt_40 {
		padding-top: 40upx;
	}
	
	.pt_60 {
		padding-top: 60upx;
	}
	
	.pt_80 {
		padding-top: 80upx;
	}
	
	.pt_100 {
		padding-top: 100upx;
	}
	
	.pt_120 {
		padding-top: 120upx;
	}
	
	.pb_20 {
		padding-bottom: 20upx;
	}
	
	.pb_30 {
		padding-bottom: 30upx !important;
	}
	
	.pb_40 {
		padding-bottom: 40upx;
	}
	
	.pb_60 {
		padding-bottom: 60upx;
	}
	
	.pb_80 {
		padding-bottom: 80upx;
	}
	
	.pb_100 {
		padding-bottom: 100upx;
	}
	
	.pb_120 {
		padding-bottom: 120upx;
	}
	
	.pl_10 {
		padding-left: 10upx;
	}
	
	.pl_20 {
		padding-left: 20upx;
	}
	
	.pl_40 {
		padding-left: 40upx;
	}
	
	.pl_60 {
		padding-left: 60upx;
	}
	
	.pl_80 {
		padding-left: 80upx;
	}
	
	.pl_100 {
		padding-left: 100upx;
	}
	
	.pl_120 {
		padding-left: 120upx;
	}
	
	/*flex*/
	
	.d_flex {
		display: -webkit-flex;
		display: flex;
	}
	
	.flex_wrap {
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
	}
	
	.j_start {
		-webkit-justify-content: flex-start;
		justify-content: flex-start;
	}
	
	.j_center {
		-webkit-justify-content: center;
		justify-content: center;
	}
	
	.j_end {
		-webkit-justify-content: flex-end;
		justify-content: flex-end;
	}
	
	.j_space_around {
		-webkit-justify-content: space-around;
		justify-content: space-around;
	}
	
	.j_between {
		-webkit-justify-content: space-between;
		justify-content: space-between;
	}
	
	.a_start {
		-webkit-align-items: flex-start;
		align-items: flex-start;
	}
	
	.a_center {
		-webkit-align-items: center;
		align-items: center;
	}
	
	.a_end {
		-webkit-align-items: flex-end;
		align-items: flex-end;
	}
	/* 单行文字省略 */
	.text_overflow{
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
	}
	/* 2行文字省略 */
	.text_overflow_2{
		word-break: break-all;
		text-overflow: ellipsis;
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.konglist{
		width: 100%;
		height: 318rpx;
		background: url(https://cs.tour-ma.com/r/cms/www/m/changshu/wf-kong.png);
		background-size: 100% 100%;
		font-size: 30rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #999999;
		line-height: 36rpx;
		text-align: center;
		font-family: Microsoft YaHei;
		font-weight: 400;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding: 20rpx 0;
	}
	@import "uview-ui/index.scss";
	@import './common/index.scss';
</style>
