|
@@ -38,6 +38,7 @@ class PunchClocks extends Component {
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
imgs: [],
|
|
|
+ nowTime: '00:00:00',
|
|
|
loading: false,
|
|
|
selector: [{ value: 0, lable: "调研阶段" },],
|
|
|
dateSel: dayjs().format('YYYY-MM-DD'),
|
|
@@ -52,7 +53,7 @@ class PunchClocks extends Component {
|
|
|
this.publicReleaseClockIn = this.publicReleaseClockIn.bind(this);
|
|
|
this.onClose = this.onClose.bind(this);
|
|
|
}
|
|
|
-
|
|
|
+ nowTime = null;
|
|
|
|
|
|
componentDidMount() {
|
|
|
this.imagePickerRef && this.imagePickerRef.clear();
|
|
@@ -65,6 +66,12 @@ class PunchClocks extends Component {
|
|
|
})
|
|
|
}
|
|
|
componentWillMount() {
|
|
|
+ this.nowTime = setInterval(() => {
|
|
|
+ this.setState({
|
|
|
+ nowTime: dayjs().format('HH:mm:ss')
|
|
|
+ })
|
|
|
+ }, 1000)
|
|
|
+
|
|
|
Taro.eventCenter.on('GoPunchIn', (arg) => {
|
|
|
this.setState({
|
|
|
data: arg
|
|
@@ -178,12 +185,12 @@ class PunchClocks extends Component {
|
|
|
background: '#828e83',
|
|
|
marginTop: '85px',
|
|
|
}}>
|
|
|
- <View className='punchClockTitle'>打卡</View>
|
|
|
+ <View className='punchClockTitle'>研发打卡</View>
|
|
|
<View className='punchClockTime'>{this.state.nowTime}</View>
|
|
|
</View>
|
|
|
<View className='noData'>
|
|
|
<View className='tipsNoData'>
|
|
|
- 暂无打卡项目
|
|
|
+ {/* 暂无打卡项目 */}
|
|
|
</View>
|
|
|
<View className='goOut' onClick={() => {
|
|
|
Taro.switchTab({
|
|
@@ -223,7 +230,7 @@ class PunchClocks extends Component {
|
|
|
<View className='items'>
|
|
|
<View className='ititle'><Text style={{ color: "red", width: "7px" }}>*</Text>研发工时:
|
|
|
<Input value={this.state.duration} type='digit' className='input' placeholder='请输入'
|
|
|
- style={{ textAlign: "center", background: "#D7D7D7", borderRadius: "10px", }}
|
|
|
+ style={{ textAlign: "center", background: "#D7D7D7", borderRadius: "15px", padding: "3px 5px" }}
|
|
|
// border: "1px solid #d6e4ef",
|
|
|
onInput={e => {
|
|
|
this.setState({
|
|
@@ -291,7 +298,7 @@ class PunchClocks extends Component {
|
|
|
boxShadow: '1px 1px 15px 1px #acb8ad',
|
|
|
background: '#009DD9',
|
|
|
}}>
|
|
|
- <View className='punchClockTitle'>打卡</View>
|
|
|
+ <View className='punchClockTitle'>研发打卡</View>
|
|
|
</View>
|
|
|
</View>
|
|
|
</View>
|