diff --git a/src/api/common/common.js b/src/api/common/common.js new file mode 100644 index 0000000..24e2ea8 --- /dev/null +++ b/src/api/common/common.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +// 查询生成表数据 +export function getQiniuToken() { + return request({ + url: '/common/qiniu/uploadInfo', + method: 'get', + }) +} + + +// 获取省市区 +export function getDistrictList() { + return request({ + url: '/app/getDistrictList', + method: 'get', + }) +} + +// 转二维码 +export function getQrCodeText(data) { + let url = `https://dianche.chuantewulian.cn?sn=`+data.sn; + return url; +} + diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 2e64c9b..880f411 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -12,7 +12,7 @@ ref="imageUpload" :on-remove="handleDelete" :show-file-list="true" - :headers="headers" + :data='uploadData' :file-list="fileList" :on-preview="handlePictureCardPreview" :class="{hide: this.fileList.length >= this.limit}" @@ -43,7 +43,7 @@