From 8d2d820c40a13a0b10b70a6e3a72a2c30f7a1617 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 12 Jun 2023 11:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E3=80=81=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/order.js | 4 + apis/modules/product.js | 16 ++ config/request.js | 4 +- order/addCourse/addCourse.vue | 102 +++++++++---- order/editCourse/editCourse.vue | 28 ++-- order/orderDetail/orderDetail.vue | 28 ++-- order/productDetail/productDetail.vue | 45 +++++- order/products/products.vue | 201 +++++++++++++++----------- order/shopCart/shopCart.vue | 183 +++++++++++++++++++++++ pages.json | 9 ++ pages/index/index.vue | 91 ++++++++++-- pages/workbench/workbench.vue | 3 +- static/image/product/shop-blue.png | Bin 0 -> 791 bytes static/image/product/shop.png | Bin 2000 -> 15612 bytes styles/common.scss | 46 +++--- 15 files changed, 574 insertions(+), 186 deletions(-) create mode 100644 order/shopCart/shopCart.vue create mode 100644 static/image/product/shop-blue.png 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 @@