From 7c360416775c90c37bbccdb8b7a048c1157e6844 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Tue, 30 Apr 2024 16:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/cart.js | 5 + api/order.js | 10 + api/user.js | 9 + components/addressPopup.vue | 2 +- components/goodPopup.vue | 4 +- components/shopListPopup.vue | 137 ++++++++++++ config/app.js | 6 +- manifest.json | 10 +- pages/cart/cart.vue | 172 ++++++++++----- pages/login/login.vue | 18 +- pagesOrder/detail/detail.vue | 8 + pagesOrder/order/component/good.vue | 54 ++--- pagesOrder/order/order.vue | 73 ++----- pagesOrder/settle/settle.vue | 89 +++++++- unpackage/dist/dev/mp-weixin/app.json | 9 + .../mp-weixin/components/addressPopup.wxml | 2 +- .../dist/dev/mp-weixin/pages/cart/cart.js | 206 ++++++++++++++---- .../dist/dev/mp-weixin/pages/cart/cart.wxml | 2 +- .../dist/dev/mp-weixin/pages/cart/cart.wxss | 16 +- .../dist/dev/mp-weixin/pages/login/login.js | 21 +- .../dist/dev/mp-weixin/pages/login/login.wxml | 2 +- .../dist/dev/mp-weixin/pages/login/login.wxss | 2 +- .../dev/mp-weixin/pagesOrder/detail/detail.js | 4 + .../pagesOrder/order/component/good.js | 56 +++-- .../pagesOrder/order/component/good.wxml | 2 +- .../pagesOrder/order/component/good.wxss | 22 +- .../dev/mp-weixin/pagesOrder/order/order.js | 74 ++++--- .../dev/mp-weixin/pagesOrder/order/order.wxml | 2 +- .../dist/dev/mp-weixin/project.config.json | 19 +- .../dev/mp-weixin/project.private.config.json | 2 +- utils/request.js | 2 +- 31 files changed, 725 insertions(+), 315 deletions(-) create mode 100644 components/shopListPopup.vue diff --git a/api/cart.js b/api/cart.js index 8e3cba2..cd60254 100644 --- a/api/cart.js +++ b/api/cart.js @@ -20,6 +20,11 @@ export const cartListApi = (data)=>{ return request.get('/order/cart/list', data); } +//购物车-常买记录 +export const frequentlyPurchaseApi = (data)=>{ + return request.get('/order/RetailOrder/frequently_purchase', data); +} + //购物车-零售购物车预检 export const checkOrderApi = (data)=>{ return request.post('/order/RetailOrder/checkOrder', data); diff --git a/api/order.js b/api/order.js index eceff70..4fca412 100644 --- a/api/order.js +++ b/api/order.js @@ -3,4 +3,14 @@ import request from '@/utils/request'; //提交零售订单 export const createOrderApi = (data)=>{ return request.post('/order/RetailOrder/createOrder', data); +} + +//订单列表 +export const orderListApi = (data)=>{ + return request.get('/order/retailOrder/order_list', data); +} + +//订单详情 +export const orderDetailApi = (data)=>{ + return request.get('/order/RetailOrder/detail', data); } \ No newline at end of file diff --git a/api/user.js b/api/user.js index 1789f21..bc7e670 100644 --- a/api/user.js +++ b/api/user.js @@ -5,6 +5,10 @@ export const userLoginApi = (data)=>{ return request.post('/login/account', data); } +// 微信登录 +export const userLoginWeixinApi = (data)=>{ + return request.post('/login/mnpLogin', data); +} // 添加地址 export const addressCreateApi = (data)=>{ @@ -29,4 +33,9 @@ export const addressListsApi = (data)=>{ // 地址详情 export const addressDetailApi = (data)=>{ return request.get('/user/address/detail', data); +} + +// 自提点列表 +export const merchantListApi = (data)=>{ + return request.get('/merchant/merchant/lists', data); } \ No newline at end of file diff --git a/components/addressPopup.vue b/components/addressPopup.vue index 34dd436..036dffb 100644 --- a/components/addressPopup.vue +++ b/components/addressPopup.vue @@ -1,7 +1,7 @@