| 
					
				 | 
			
			
				@@ -8,44 +8,57 @@ class Result extends Component{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   constructor(props) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     super(props); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.determine= this.determine.bind(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.punchClock= this.punchClock.bind(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   determine(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Taro.eventCenter.trigger('result') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  punchClock(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    e.stopPropagation(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    Taro.eventCenter.trigger('GoPunchIn',this.props.punchClockInfor) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    Taro.switchTab({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      url: '/pages/punchClock/index', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   render() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <View className='result'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <View className='resultIcon'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.props.resultState === 0 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <Icon size='80' type='success' /> : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.props.resultState === 43101 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <Icon size='80' type='info' /> : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <Icon size='80' type='warn' /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*{*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*  this.props.resultState === 0 ?*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*    <Icon size='80' type='success' /> :*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*    this.props.resultState === 43101 ?*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*      <Icon size='80' type='info' /> :*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*      <Icon size='80' type='warn' />*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/*}*/} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Icon size='80' type='success' /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </View> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <View className='resultTitle'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.props.resultState === 0 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              '申请成功,已通知上级审核' : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.props.resultState === 43101 || this.props.resultState === 2 || this.props.resultState === 40003 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                '申请成功,上级未打开消息通知,请联系您的上级' : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.props.resultState === 41030 || this.props.resultState === 47003 || this.props.resultState === 40037 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  '申请成功,消息发送失败,请联系管理员': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    '申请成功,消息发送失败' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.props.resultState !== 0 && this.props.resultState !== 43101 && this.props.resultState !== 2 && this.props.resultState !== 40003 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <View className='resultError'>错误编码:{this.props.resultState}</View>:null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <View>申请成功,可以打卡了!</View> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <View className='resultError'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.props.resultState === 0 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                '' : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.props.resultState === 43101 || this.props.resultState === 2 || this.props.resultState === 40003 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  ('您可以联系上级审核' + '(' +this.props.resultState + ')') : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.props.resultState === 41030 || this.props.resultState === 47003 || this.props.resultState === 40037 ? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ('您可以联系上级审核' + '(' +this.props.resultState + ')'): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ('您可以联系上级审核' + '(' +this.props.resultState + ')') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </View> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </View> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <View className='resultOperation'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <AtButton circle onClick={this.determine}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             再次发起 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </AtButton> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <AtButton type='primary' circle onClick={()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <AtButton circle type='primary' onClick={this.punchClock}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            前往打卡 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </AtButton> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <AtButton type='secondary' circle onClick={()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Taro.navigateTo({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               url:'/pages/egressDetails/index?id='+this.props.resultId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 |