diff --git a/common/api/order.js b/common/api/order.js index 00141fc..faeda26 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-29 17:38:17 * @LastEditors: ch - * @LastEditTime: 2022-04-15 11:29:32 + * @LastEditTime: 2022-04-19 11:10:55 * @Description: file content */ import {ToAsyncAwait, MsbRequestTk} from '@/common/utils'; @@ -21,6 +21,7 @@ export const ApiGetOrderList = (params) => */ export const ApiGetBeforeOrder = (data) => ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/buyAdvanceOrder`, data)); + /** * 获取购物车预订单 * @param {*} data @@ -41,6 +42,19 @@ export const ApiGetOrderDetail = (id) => */ export const ApiGetOrderProductDetail = ({orderProductId}) => ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/product/${orderProductId}`)); + +/** + * 获取物流信息 + * @param {*} orderId + */ +export const ApiGetOrderLogistics = ({orderId}) => + ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/logistics/${orderId}`)); +/** + * 确认收货 + * @param {*} orderId + */ +export const ApiPutOrderReceive = (params) => + ToAsyncAwait(MsbRequestTk.put(`${BASE_URL}/app/tradeOrder/receive`, params)); /** * 提交订单 * @param {*} data @@ -60,7 +74,8 @@ export const ApiPutCancelOrder = (data) => * @param {*} data */ export const ApiPostWxPay = (data) => - ToAsyncAwait(MsbRequestTk.post(`${BASE_URL}/pay/wxPay/app`, data)); + // ToAsyncAwait(MsbRequestTk.post(`${BASE_URL}/pay/wxPay/app`, data)); + ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/pay/payTest`, data)); @@ -98,7 +113,7 @@ export const ApiGetSaleAfterOrderList = (params) => * @param {*} data */ export const ApiGetSaleAfterOrderDetail = (params) => - ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/refundOrder/${params.refundId}`)); + ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/refundOrder/refundInfo`, params)); /** * 售后物流公司 * @param {*} data diff --git a/common/utils/requset.js b/common/utils/requset.js index 54d4520..82611e1 100644 --- a/common/utils/requset.js +++ b/common/utils/requset.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-17 17:42:32 * @LastEditors: ch - * @LastEditTime: 2022-04-15 19:13:32 + * @LastEditTime: 2022-04-18 10:04:10 * @Description: 项目接口请求统一处理器,返回一个需要token和不需要token的请求封装方法 */ @@ -11,8 +11,8 @@ import $store from '@/common/store'; const ENV = 'test'; const BASE_URL = { - 'test' : 'http://k8s-horse-gateway.mashibing.cn', - // 'test' : '', + // 'test' : 'http://k8s-horse-gateway.mashibing.cn', + 'test' : '', 'release' : '', 'prod' : '' }; diff --git a/manifest.json b/manifest.json index 670834c..69c42d1 100644 --- a/manifest.json +++ b/manifest.json @@ -77,19 +77,13 @@ "devServer" : { "proxy" : { "/uc/" : { - "target" : "http://192.168.10.52:8090/" + "target" : "http://192.168.10.109:8090/" }, - "/mall/trade/" : { - "target" : "http://192.168.10.52:8090/" - }, - "/mall/base/" : { - "target" : "http://192.168.10.52:8090/" + "/mall/" : { + "target" : "http://192.168.10.109:8090/" }, "/pay/" : { - "target" : "http://192.168.10.52:8090/" - }, - "/mall/product/" : { - "target" : "http://192.168.10.52:8090/" + "target" : "http://192.168.10.109:8090/" } } } diff --git a/pages.json b/pages.json index 933101c..889a339 100644 --- a/pages.json +++ b/pages.json @@ -154,6 +154,21 @@ "navigationBarBackgroundColor" : "#F8F8F8" } }, + { + "path": "pages/order/logisitcsInfo", + "aliasPath" : "/logisitcsInfo", + "style": { + "navigationBarTitleText": "物流详情", + "navigationBarBackgroundColor" : "#F8F8F8" + } + }, + { + "path": "pages/order/orderSuccess", + "aliasPath" : "/orderSuccess", + "style": { + "navigationBarTitleText": "交易成功" + } + }, { "path": "pages/order/paySuccess", "aliasPath" : "/paySuccess", @@ -251,6 +266,12 @@ } ] }, + "style": { + "app-plus": { + "animationType": "slide-in-right", + "animationDuration": 300 + } + }, "globalStyle": { "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle" : "black", diff --git a/pages/account/address/list.vue b/pages/account/address/list.vue index 10ad7fa..87aaf47 100644 --- a/pages/account/address/list.vue +++ b/pages/account/address/list.vue @@ -2,19 +2,17 @@ * @Author: ch * @Date: 2022-03-22 13:54:15 * @LastEditors: ch - * @LastEditTime: 2022-04-09 15:03:39 + * @LastEditTime: 2022-04-18 18:36:28 * @Description: file content -->