<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// plus.screen.lockOrientation('portrait-primary');
		},
		onShow: function() {

			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		post: function(url, data, method) {

			// (showLoad == undefined || showLoad) ?
			//   wx.showLoading({
			//     title: '加载中',
			//   }) : ''
			// wx.showNavigationBarLoading()
			var promise = new Promise((resolve, reject) => {
				//init
				let that = this,
					token = uni.getStorageSync('token'),
					header = {
						token: token || ''
					},
					postData;

				// console.log(token,"token")
				//网络请求  
				uni.request({
					url: this.globalData.baseUrl + url,
					data: data,
					method: method,
					header: header,
					success: function(res) {
						// console.log(res)//返回取得的数据
						// console.log(res)
						if (res.statusCode == 200) {
							resolve(res);
						} else {
							// uni.showToast({
							// 	title: res.data.msg,
							// 	icon: 'none',
							// })
							reject(res.data)
							// if (res.data.code == '401') {}
						}
						// (showLoad || showLoad == undefined) ? wx.hideLoading(): "";
						// wx.hideNavigationBarLoading()
					},
					fail: function(e) {
						console.log(e)
						reject('网络出错');
						// (showLoad || showLoad == undefined) ? wx.hideLoading() : "";
						wx.hideNavigationBarLoading()
					},
					complete: function(daa) {
						// console.log(daa)
					}
				})
			});
			return promise;
		},
		globalData: {
			userInfo: null,
			// baseUrl: 'http://icrgangjuren.w.brotop.cn/'
			baseUrl: 'https://www.bjzha.net/api/'
		}
	}
</script>

<style>
	/*每个页面公共css */
	.flex {
		display: flex;
	}

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

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

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

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

	.flexfive {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
	}
	.shaiselecttop{
		width:750rpx;
		display:flex;
		justify-content: flex-end;
		padding-top: 10rpx;
		padding-bottom: 10rpx;
		box-sizing: border-box;
		
	}
	.shaiselect{
		display: inline-block;
		width:200rpx;
		height:64rpx;
		background: #0093FF;
		color:#fff;
		font-size:24rpx;
		text-align: center;
		line-height: 64rpx;
		border-radius: 30rpx;
		
		
	}


	.register {
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 5;
		/* display:none */
	}

	.taizhangwrap {
		width: 750rpx;
		height: 664rpx;
		background: #fff;
		position: absolute;
		top: 0rpx;
		left: 0;
		padding: 0 32rpx;
		box-sizing: border-box;
	}

	.zibot {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 100rpx;

	}

	.reset {
		width: 200rpx;
		height: 64rpx;
		background: rgba(232, 80, 0, 1);
		opacity: 1;
		border-radius: 8rpx;
		color: #fff;
		font-size: 24rpx;
		text-align: center;
		line-height: 64rpx;
		margin-right: 24rpx;
	}

	.nodata {
		color: #999;
		font-size: 32rpx;
		text-align: center;
		margin-top: 200rpx;
	}

	/* 评审类型 */
	.wrapitem {
		display: flex;
		align-items: center;
		margin-top: 40rpx;
	}

	.wrapitemleft {
		width: 120rpx;
	}

	.wrapitemleft {
		color: #06121E;
		font-size: 28rpx
	}

	.wrapitemright {
		width: 544rpx;
		height: 76rpx;
		background: rgba(238, 238, 238, 1);
		opacity: 1;
		border-radius: 8rpx;
		margin-left: 18rpx;
		display: flex;
		align-items: center;
		padding: 20rpx;
		box-sizing: border-box;
	}

	.wrapitemright input {
		width: 100%;
		color: #8C9198;
		font-size: 28rpx;
	}

	.nianduright {
		width: 14rpx;
		height: 22rpx;
		font-size: 0;
	}

	.nianduleft {
		width: 500rpx;

	}

	.nianduright image {
		width: 100%;
		height: 100%;
	}

	.time {
		display: flex;
		align-items: center;
		margin-left: 18rpx;
	}

	.timeleft {
		width: 232rpx;
		height: 76rpx;
		background: rgba(238, 238, 238, 1);
		opacity: 1;
		border-radius: 8rpx;
		padding: 15rpx 20rpx;
		box-sizing: border-box;
		color: #8C9198;
		font-size: 28rpx;

	}

	.timeleft input {
		width: 100%;
		color: #8C9198;
		fotn-size: 28rpx;
	}

	.timemiddle {
		width: 39rpx;
		background: rgba(189, 196, 206, 1);
		border: 1rpx solid rgba(189, 196, 206, 1);
		opacity: 1;
		margin: 0 20rpx;
	}

	.chaxun {
		width: 200rpx;
		height: 64rpx;
		background: rgba(0, 147, 255, 1);
		opacity: 1;
		border-radius: 8rpx;
		color: #F9F9F9;
		font-size: 24rpx;
		text-align: center;
		line-height: 64rpx;

	}

	.projectname {
		color: #8C9198;
		font-size: 28rpx;
	}

	.detailname {
		color: #0093FF;
		font-size: 24rpx;
		margin-left: 20rpx;
	}

	.headleft input {
		width: 100%;
		height: 100%;
	}

	.tabfooter {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		height: 110rpx;
		width: 750rpx;
		bottom: 0;
		left: 0;
		padding: 14rpx 48rpx;
		box-sizing: border-box;
		background: #fff;
		border-top: 1rpx solid #f9f9f9;
	}

	.tabfooteritem {
		width: 200rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.tabfooteritemimg {
		width: 45rpx;
		height: 48rpx;
		font-size: 0;
	}

	.tabfooteritemimg image {
		width: 100%;
		height: 100%;
	}

	.tabfooteritemtop {
		width: 100rpx;
		color: #BDC4CE;
		font-size: 22rpx;
		text-align: center;
	}

	.tabfooteritemtopactive {
		color: #2E85ED
	}
</style>
ssss