| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { $ } from '@tarojs/extend'; |
| | | import { AtInput, AtImagePicker, AtCurtain } from 'taro-ui-vue'; |
| | | import { Fetcher } from '@components/bases/Fetcher'; |
| | | import { $hostBoot } from '@components/bases/HostBoot'; |
| | | import { $fetchCommon } from '@fetchers/FCommon'; |
| | | import { Tools } from '@components/common/Tools'; |
| | | import CImageCompressor from './CImageCompressor.vue'; |
| | |
| | | }); |
| | | }, |
| | | $uploadImage(callback) { |
| | | const url = Fetcher.host + $fetchCommon.getUploadImgURL(); |
| | | let url = $fetchCommon.getUploadImgURL(); |
| | | if (url.indexOf('http') < 0) { |
| | | url = $hostBoot.getHost() + url; |
| | | } |
| | | const uploadTeam = []; |
| | | const imgs = []; |
| | | this.files.forEach(file => { |