1
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
<script>
|
||||
import {
|
||||
uploadFile
|
||||
} from '@/websoft/api/upload.js'
|
||||
} from '@/api/upload'
|
||||
import {
|
||||
pageOrder,
|
||||
removeOrder,
|
||||
@@ -66,6 +66,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
order: {},
|
||||
orderSourceData: [],
|
||||
// 按钮禁用
|
||||
@@ -130,13 +131,14 @@
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(chooseImageRes) {
|
||||
const tempFilePaths = chooseImageRes.tempFilePaths;
|
||||
|
||||
uploadFile({
|
||||
filePath: tempFilePaths[0],
|
||||
fileType: 'image',
|
||||
name: 'file'
|
||||
}).then(res => {
|
||||
console.log("res: ", res);
|
||||
app.orderSourceData.push(fileUrl + res.data.path)
|
||||
app.orderSourceData.push(res.data.url)
|
||||
receiptOrder({
|
||||
orderId,
|
||||
orderSourceData: JSON.stringify(app.orderSourceData)
|
||||
|
||||
Reference in New Issue
Block a user