| | |
| | | title: '请选择隐患类型', |
| | | icon: 'none' |
| | | }) |
| | | if (!param.content) return uni.showToast({ |
| | | title: '请输入情况说明', |
| | | icon: 'none' |
| | | }) |
| | | if (param.content.length < 10) return uni.showToast({ |
| | | title: '情况说明不得小于10个字', |
| | | icon: 'none' |
| | | }) |
| | | |
| | | DangerCreate({ |
| | | ...param, |
| | |
| | | uni.chooseImage({ |
| | | count: 4, |
| | | success: (chooseImageRes) => { |
| | | console.log('chooseImageRes.tempFilePaths', chooseImageRes.tempFilePaths) |
| | | uni.showLoading({ title: '上传中', mask: true }) |
| | | const tempFilePaths = chooseImageRes.tempFilePaths |
| | | let imgs = tempFilePaths.map((value, index) => { |
| | |
| | | position: absolute; |
| | | right: -20rpx; |
| | | top: -20rpx; |
| | | z-index: 9999; |
| | | } |
| | | image { |
| | | width: 100%; |