乱七八糟

This commit is contained in:
weicw
2023-10-23 15:21:33 +08:00
parent 0256bd355d
commit 686c1ae304
29 changed files with 2571 additions and 294 deletions

View File

@@ -116,7 +116,20 @@
// 表单提交
handleSubmit() {
const app = this
this.$navTo('pages/order/index')
const { orderId,orderSourceData } = app
if(orderSourceData.length < 5) {
return
}
receiptOrder({
orderId,
orderSourceData: JSON.stringify(orderSourceData)
}).then(result => {
app.$success("上传成功")
uni.navigateBack()
}).catch(err => {
app.$toast(err.message)
})
},
// 上传图片
@@ -139,14 +152,7 @@
}).then(res => {
console.log("res: ", res);
app.orderSourceData.push(res.data.url)
receiptOrder({
orderId,
orderSourceData: JSON.stringify(app.orderSourceData)
}).then(result => {
app.$success("上传成功")
// 刷新订单列表
app.getData()
})
})
}