抖火调整自由服务包
This commit is contained in:
@@ -376,17 +376,19 @@
|
||||
// 上传打款凭证
|
||||
onOffline(){
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
count: 4,
|
||||
success: path => {
|
||||
console.log('这是成功的')
|
||||
let { tempFiles } = path;
|
||||
uploads([{
|
||||
name: 'file' + tempFiles[0].size,
|
||||
uri : tempFiles[0].path
|
||||
}], {}).then(updRes => {
|
||||
let paths = tempFiles.map(val => {
|
||||
return {
|
||||
name: 'file' + val.size,
|
||||
uri : val.path
|
||||
}
|
||||
})
|
||||
uploads(paths, {}).then(updRes => {
|
||||
let { path } = updRes
|
||||
cashierOffline({
|
||||
image : path[0],
|
||||
pics : path,
|
||||
order_type : this.orderType,
|
||||
order_id : this.orderId,
|
||||
}).then(res => {
|
||||
@@ -398,6 +400,11 @@
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
wx.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user