repare login
add search in sale detail add refresh button in sale detail
This commit is contained in:
@@ -99,6 +99,33 @@ const Agent = class
|
||||
});
|
||||
}
|
||||
|
||||
async getLotInfos(url){
|
||||
return new Promise((resolve, reject) => {
|
||||
url = encodeURIComponent(url);
|
||||
this.request(this.ApiAgentURL+'/lot/getInfos/'+url, 'GET')
|
||||
.then(data => {
|
||||
resolve(data);
|
||||
})
|
||||
.catch(error => {
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async getPictures(url){
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
url = encodeURIComponent(url);
|
||||
this.request(this.ApiAgentURL+'/lot/getPictures/'+url, 'GET')
|
||||
.then(data => {
|
||||
resolve(data);
|
||||
})
|
||||
.catch(error => {
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = {Agent};
|
||||
Reference in New Issue
Block a user