乱七八糟
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user