diff --git a/apis/modules/order.js b/apis/modules/order.js index 0d8332b..e9a003d 100644 --- a/apis/modules/order.js +++ b/apis/modules/order.js @@ -35,4 +35,8 @@ export const del = (data) => { export const miniProgramOrderRecord = (data) => { return post('nakadai/nakadai/applets/order/miniProgramOrderRecord', data) +} + +export const queryCitySettlementPrice = (mallId, provinceId, cityId) => { + return post(`nakadai/mallPrice/queryCitySettlementPrice?mallId=${mallId}&provinceId=${provinceId}&cityId=${cityId}`) } \ No newline at end of file diff --git a/apis/modules/product.js b/apis/modules/product.js index 6af27bb..50aeada 100644 --- a/apis/modules/product.js +++ b/apis/modules/product.js @@ -19,4 +19,20 @@ export const detailsOfGoods = (id) => { export const productCategoryList = () => { return get('nakadai/productClassification/productCategoryList') +} + +export const productTypeList = () => { + return get('nakadai/productType/productTypeList') +} + +export const addToShoppingCart = (data) => { + return post('nakadai/mini/program/shopping/cart/addToShoppingCart', data) +} + +export const delCart = (data) => { + return post('nakadai/mini/program/shopping/cart/batchDeletion', data) +} + +export const shoppingCartList = (data) => { + return post('nakadai/mini/program/shopping/cart/shoppingCartList', data) } \ No newline at end of file diff --git a/config/request.js b/config/request.js index 6748186..2e4f704 100644 --- a/config/request.js +++ b/config/request.js @@ -5,8 +5,8 @@ */ export default { - baseURL: 'https://huorantech.cn/', - // baseURL: 'http://192.168.31.151:9000/', + // baseURL: 'https://huorantech.cn/', + baseURL: 'http://192.168.31.51:9000/', // baseURL: 'http://121.37.12.51/', headers: { 'Content-Type': 'application/json;charset=UTF-8' diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index 2520aff..c750721 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -11,7 +11,7 @@