| | |
| | | phone: '', |
| | | typeId: '' |
| | | }, |
| | | problemList: [] |
| | | problemList: [], |
| | | isEnd: true |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | // 提交 |
| | | submit() { |
| | | if (this.from.problemId == '') { |
| | | uni.showToast({ title: '车辆问题不能为空', icon: 'none', duration: 2000 }); |
| | | return |
| | | } |
| | | this.$u.api.saveRepair({ |
| | | addr: this.from.address, |
| | | bikeCode: this.from.code, |
| | | binkeId: this.binkeId, |
| | | content: this.from.info, |
| | | fileUrlList: this.from.files.map(item => item.imgaddr), |
| | | latitude: this.from.latitude, |
| | | linkname: this.from.contacts, |
| | | linkphone: this.from.phone, |
| | | longitude: this.from.longitude, |
| | | param: this.from.problemName, |
| | | paramId: this.from.problemId, |
| | | typeId: this.from.typeId |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '上报成功', icon: 'success', duration: 2000 }); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, 2000) |
| | | if (this.isEnd) { |
| | | if (this.from.problemId == '') { |
| | | uni.showToast({ title: '车辆问题不能为空', icon: 'none', duration: 2000 }); |
| | | return |
| | | } |
| | | }) |
| | | this.isEnd = false |
| | | this.$u.api.saveRepair({ |
| | | addr: this.from.address, |
| | | bikeCode: this.from.code, |
| | | binkeId: this.binkeId, |
| | | content: this.from.info, |
| | | fileUrlList: this.from.files.map(item => item.imgaddr), |
| | | latitude: this.from.latitude, |
| | | linkname: this.from.contacts, |
| | | linkphone: this.from.phone, |
| | | longitude: this.from.longitude, |
| | | param: this.from.problemName, |
| | | paramId: this.from.problemId, |
| | | typeId: this.from.typeId |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '上报成功', icon: 'success', duration: 2000 }); |
| | | this.isEnd = true |
| | | setTimeout(() => { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, 2000) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 拨打电话 |
| | | calling(mobile) { |
| | |
| | | .form_item_uplaod_list_item { |
| | | width: 150rpx; |
| | | height: 150rpx; |
| | | border-radius: 16rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | position: relative; |
| | | margin-right: 16rpx; |
| | | |
| | | |
| | | &:last-child { |
| | | margin-right: 0 !important; |
| | | } |
| | |
| | | .images { |
| | | width: 150rpx; |
| | | height: 150rpx; |
| | | border-radius: 16rpx; |
| | | overflow: hidden; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |