|
@@ -12,6 +12,7 @@ import { TypeImageList } from '../chargeV2/Charging';
|
|
|
import ImageCropPicker from 'react-native-image-crop-picker';
|
|
import ImageCropPicker from 'react-native-image-crop-picker';
|
|
|
import { UploadThemes } from '../../components/ThemesConfig';
|
|
import { UploadThemes } from '../../components/ThemesConfig';
|
|
|
import apiUpload from '../../api/apiUpload';
|
|
import apiUpload from '../../api/apiUpload';
|
|
|
|
|
+import utils from '../../utils/utils';
|
|
|
|
|
|
|
|
const options = {
|
|
const options = {
|
|
|
width: 300,
|
|
width: 300,
|
|
@@ -75,7 +76,6 @@ export default class VehicleDetail extends Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getModelOptions() {
|
|
getModelOptions() {
|
|
|
- console.log("getModelOptions", this.state.vehicleInfo);
|
|
|
|
|
if (this.state.vehicleInfo.brand) {
|
|
if (this.state.vehicleInfo.brand) {
|
|
|
apiUser.getVehicleModelByBrand({
|
|
apiUser.getVehicleModelByBrand({
|
|
|
brand: this.state.vehicleInfo.brand
|
|
brand: this.state.vehicleInfo.brand
|
|
@@ -295,7 +295,7 @@ export default class VehicleDetail extends Component {
|
|
|
onPress={() => this.uploadImage()}>
|
|
onPress={() => this.uploadImage()}>
|
|
|
<Image
|
|
<Image
|
|
|
style={styles.uploadImage}
|
|
style={styles.uploadImage}
|
|
|
- source={{uri: this.state.vehicleInfo.vehiclePhoto}}
|
|
|
|
|
|
|
+ source={{uri: utils.getImageUrl(this.state.vehicleInfo.vehiclePhoto)}}
|
|
|
/>
|
|
/>
|
|
|
</Pressable>
|
|
</Pressable>
|
|
|
: <Pressable
|
|
: <Pressable
|