diff --git a/common/api/order.js b/common/api/order.js index faeda26..4dd3338 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-19 11:10:55 + * @LastEditTime: 2022-04-19 15:00:05 * @Description: file content */ import {ToAsyncAwait, MsbRequestTk} from '@/common/utils'; @@ -76,7 +76,16 @@ export const ApiPutCancelOrder = (data) => export const ApiPostWxPay = (data) => // ToAsyncAwait(MsbRequestTk.post(`${BASE_URL}/pay/wxPay/app`, data)); ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/pay/payTest`, data)); - + +/** + * 获取订单统计数据 + */ +export const ApiGetOrderStatistics = () => + ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/statistics`)) + + + + diff --git a/common/utils/requset.js b/common/utils/requset.js index 443bc22..2866a1b 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-19 11:23:58 + * @LastEditTime: 2022-04-19 11:33:34 * @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/components/BsPay.vue b/components/BsPay.vue new file mode 100644 index 0000000..f0ff43e --- /dev/null +++ b/components/BsPay.vue @@ -0,0 +1,60 @@ + + + + \ No newline at end of file diff --git a/components/UiButton.vue b/components/UiButton.vue index 74dbf98..4eafad9 100644 --- a/components/UiButton.vue +++ b/components/UiButton.vue @@ -2,11 +2,11 @@ * @Author: ch * @Date: 2022-03-26 10:06:38 * @LastEditors: ch - * @LastEditTime: 2022-04-15 15:43:12 + * @LastEditTime: 2022-04-19 14:38:07 * @Description: file content -->