orderiom-api-package 0.3.53 → 0.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/modules/order.js +1 -1
- package/src/modules/restaurant.js +11 -0
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -899,7 +899,7 @@ const actions = {
|
|
|
899
899
|
return {type: "error", msg: "Basket not found"};
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
-
return $http.post("api/basket/update-extraInfo", {
|
|
902
|
+
return $http.post("api/basket/update-basket-extraInfo", {
|
|
903
903
|
basketId,
|
|
904
904
|
restaurantId: data.restaurantId || restaurantIdEnv,
|
|
905
905
|
...data,
|
|
@@ -200,6 +200,17 @@ const actions = {
|
|
|
200
200
|
commit('finishFetchingBlogs');
|
|
201
201
|
})
|
|
202
202
|
},
|
|
203
|
+
async recordTheVisit(_, data){
|
|
204
|
+
return $http.post('api/restaurant/website-view', {
|
|
205
|
+
...data,
|
|
206
|
+
restaurantId: data.restaurantId || restaurantIdEnv
|
|
207
|
+
}).then(() => {
|
|
208
|
+
return true
|
|
209
|
+
}).catch(err => {
|
|
210
|
+
console.error(err);
|
|
211
|
+
return false;
|
|
212
|
+
})
|
|
213
|
+
},
|
|
203
214
|
getBlog({ commit }, blogId) {
|
|
204
215
|
return $http.get('api/blogs/show', {
|
|
205
216
|
params: blogId
|