@@ -568,6 +568,20 @@ export const uploadFile = (tempImagePath, imageType, code) => { | |||
resolve(data) | |||
}); | |||
}, | |||
fail:()=>{ | |||
uni.showModal({ | |||
title: '提示', | |||
content: '图片上传失败,请联系管理人员', | |||
success: function (res) { | |||
if (res.confirm) { | |||
console.log('用户点击确定'); | |||
} else if (res.cancel) { | |||
console.log('用户点击取消'); | |||
} | |||
} | |||
}); | |||
} | |||
}); | |||
}) |