|
@@ -142,7 +142,7 @@ class PublicContent extends Component {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- if (this.state.totalDuration > 4 && this.state.imgs.length == 0) {
|
|
|
+ if (this.props.enterpriseInfor.type == 0 && this.state.totalDuration > 4 && this.state.imgs.length == 0) {
|
|
|
Taro.showToast({ title: "请上传附件", icon: "none" });
|
|
|
return
|
|
|
}
|
|
@@ -651,7 +651,7 @@ class PublicContent extends Component {
|
|
|
)}
|
|
|
</View>
|
|
|
{/* */}
|
|
|
- <View className="formItem" style={{ display: "block" }}>
|
|
|
+ <View className="formItem" style={{ display: "block", paddingBottom: 0 }}>
|
|
|
<View className="formName">附件:</View>
|
|
|
<View
|
|
|
className="formValue"
|
|
@@ -665,6 +665,12 @@ class PublicContent extends Component {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
+ {
|
|
|
+ this.props.enterpriseInfor.type == 0 && this.state.totalDuration > 4 && this.state.imgs.length == 0 &&
|
|
|
+ <View className="tips" style={{ paddingBottom: "40px" }}>
|
|
|
+ 您公出时长超过4小时,请上传凭证截图!
|
|
|
+ </View>
|
|
|
+ }
|
|
|
<View className="operation">
|
|
|
<AtButton
|
|
|
disabled={this.state.loading}
|