抖火调整自由服务包

This commit is contained in:
唐明明
2024-04-09 17:48:29 +08:00
parent 994ba4eb72
commit bf8fcdbf4c
8 changed files with 51 additions and 62 deletions

View File

@@ -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 => {