<script>
	import { islog } from '@/api/login.js'
	import { myRequest, dingRequest } from '@/util/api.js';
	export default {
		data() {
			return{
				//用户协议弹窗
				firstApp:false,
				agreeXieyi:false,
			}
		},
		onLaunch() {
			//登录
			uni.setStorageSync('isAuth',true)
			const updateManager = uni.getUpdateManager();
			updateManager.onCheckForUpdate(function (res) {
			    // 请求完新版本信息的回调
			    if(res.hasUpdate){
				    updateManager.onUpdateReady(function (res) {
					    uni.showModal({
					        title: '更新提示',
						    content: '新版本已经准备好，是否重启应用？', 
							success(res) {
								if (res.confirm) {
									// 新的版本已经下载好，调用 applyUpdate 应用新版本并重启
									updateManager.applyUpdate();
								}							}
						})
				    })
			    }
			})
		},
		onShow() {			
			
		},
		methods:{
			
		},
		onHide() {
			
		},
		onShareAppMessage() {
			
		}
	}
</script>

<style  lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	.b_color{
		color: #f00;
	}
	.bo_color{
		color: #ffffff;
	}
	.safebottom{
		width:750rpx;
		height: calc(env(safe-area-inset-bottom) / 2);
	}
	.valueActive {
		color: #333 !important;
	}
	.icon_creat {
		position: fixed;
		z-index: 1;
		bottom: 180rpx;
		right: 80rpx;
	
		image {
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
		}
	}
	/* 引入 css */
	@import url('./static/font/iconfont.css');
	/*每个页面公共css */
	page {
		background-color: #f5f5f5;
		/* background-color: red; */
		font-size: 26rpx;
		color: #666;
	}
	//暂无更多
	.noData{
		font-size:24rpx;
		color:#666;
		text-align: center;
		margin-top:200rpx;
	}
	// 表单只展示必填字段
	.top_required{
		display: flex;
		justify-content: center;
		align-items: center;
		font-size:28rpx;
		color:#666;
		padding:10rpx 0;
		switch{
			transform: scale(0.7);
		}
	}
	/* 标题样式 */
	.title-style {
		padding: 20rpx 0 20rpx 24rpx;
		font-size: 28rpx;
		font-weight: 700;
	}
	.botsec{
		height:30rpx;
	}
	/* 全局按钮样式 */
	.btn_g {
		width: 590rpx;
		height: 80rpx;
		line-height: 80rpx;
		font-size: 28rpx;
		text-align: center;
		margin: 40rpx auto 30rpx;
		color: #fff;
		border-radius: 40rpx;
		background:$uni-text-color;
	}
	/* 单元格 */
	.industry_item_g {
		padding-right: 30rpx;
		display: flex;
		justify-content: space-between;
		height: 90rpx;
		line-height: 90rpx;
		border-bottom: 1rpx solid #EAEAEA;
	}
	
	/*按钮样式*/
	.button-hover{
		background:$uni-text-color;
		border-radius: 40rpx;
	}
	.uni-picker-container .uni-picker-action.uni-picker-action-confirm{
		color:$uni-text-color;
	}
	//隐私政策提示
	.privacy_mask{
		width:100%;
		background:#fff;
		border-top-left-radius: 20rpx;
		border-top-right-radius: 20rpx;
		padding-top:50rpx;
		padding-bottom: calc(env(safe-area-inset-bottom) / 2);
		background: linear-gradient(180deg, #cfe8fe 50%, #F1F4F6 88%, #F4F4F4 100%);
		.privacy_box{
			padding:0 40rpx 30rpx;
			.priva_tit{
				font-size:28rpx;
				color:#000;
			}
			.priva_tip{
				font-size:24rpx;
				color:#666;
				margin:16rpx 0;
			}
			.priva_con{
				font-size:24rpx;
				color:#666;
				line-height: 32rpx;
				text{
					color:$uni-text-color;
				}
			}
			.agreebtn{
				width:200rpx;
				height:60rpx;
				font-size: 24rpx;
				text-align: center;
				line-height: 60rpx;
				background:$uni-text-color;
				color:#fff;
				margin:16rpx auto 30rpx;
			}
			.noagree{
				font-size:24rpx;
				text-align: center;
				text{
					color:#999;
				}
			}
		}
	}
</style>
