|
@@ -122,14 +122,10 @@ const toConsult = async () => {
|
|
|
|
|
|
|
|
async function getNearStore() {
|
|
async function getNearStore() {
|
|
|
const params = {
|
|
const params = {
|
|
|
- point: localStorage.getItem('MINI_USER_LOCATION_POINT'),
|
|
|
|
|
- page: 1,
|
|
|
|
|
- limit: 1,
|
|
|
|
|
|
|
+ farmId: currentFarmId,
|
|
|
};
|
|
};
|
|
|
- const res = await VE_API.farm.getStoreList(params);
|
|
|
|
|
- if(res.data.length > 0){
|
|
|
|
|
- return res.data[0].miniUserIds[0];
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ const {data} = await VE_API.z_agricultural_store.getStoreItem(params);
|
|
|
|
|
+ return data.miniUserId;
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|