提交 19171b52 编写于 作者: MHT_ZJL_'s avatar MHT_ZJL_

139_修改

上级 cbc75a93
......@@ -91,13 +91,6 @@ class Quota extends Component {
}
};
countTime() {
if (!this.lastClickTime) {
//350的时间可以延长,根据需要改变
this.lastClickTime = 1;
this.countTime.bind(this);
} else {
return '';
}
this.setState({start: this.getMyDate()});
this._timer = setInterval(() => {
this.setState({
......@@ -152,15 +145,9 @@ class Quota extends Component {
<Text style={styles.text}>开始</Text>
</TouchableOpacity>
</View>
<View
style={{
display: this.state.tDisplay,
position: 'absolute',
top: parseInt(height) / 1.4,
left: parseInt(width) / 4,
}}>
<View style={{display: this.state.tDisplay}}>
<MyBanner
containerStyle={styles.myButton}
containerStyle={styles.myButton.container}
onPress={this.stop.bind(this)}
/>
</View>
......@@ -206,7 +193,7 @@ const styles = StyleSheet.create({
borderWidth: parseInt(width) / 180,
position: 'absolute',
top: parseInt(height) / 1.3,
left: parseInt(width) / 3.5,
left: parseInt(width) / 3.4,
justifyContent: 'center',
borderRadius: 6,
alignItems: 'center',
......@@ -276,7 +263,11 @@ const styles = StyleSheet.create({
left: parseInt(width) / 3,
},
myButton: {
width: parseInt(width) / 1.8,
container: {
position: 'absolute',
top: parseInt(height) / 1.4,
left: parseInt(width) / 3,
},
},
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册