From d5917b2c8602771645961affdd8ba46983b96b6c Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Tue, 10 May 2022 22:03:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E8=B5=84=E6=96=99=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B5=84=E6=96=99=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constants/index.js | 9 +- pages/account/index/home/index.vue | 47 +++++ .../index/home/module/LogisitcsInfo.vue | 9 +- pages/account/index/userInfo.vue | 194 +++++++++++++++++- plugins/api/order.js | 5 + 5 files changed, 252 insertions(+), 12 deletions(-) diff --git a/constants/index.js b/constants/index.js index dd230f8..b86de01 100644 --- a/constants/index.js +++ b/constants/index.js @@ -12,4 +12,11 @@ const ORDER_STATUS = { WAIT_RECEIVE: 4, // 待收货 }; -export { TOKEN_KEY, ORDER_STATUS }; +// 性别 +const SEX_TYPE = { + MALE: 1, // 男 + FEMALE: 2, // 女 + UNKNOW: 3, // 未知 +}; + +export { TOKEN_KEY, ORDER_STATUS, SEX_TYPE }; diff --git a/pages/account/index/home/index.vue b/pages/account/index/home/index.vue index dd9a5c9..75236aa 100644 --- a/pages/account/index/home/index.vue +++ b/pages/account/index/home/index.vue @@ -27,6 +27,9 @@ > {{ item.label }} +
+ {{ item.count }} +
@@ -39,6 +42,10 @@ \ No newline at end of file +.account-user-info { + width: 1000px; + border: 1px solid #dddddd; + font-size: 14px; + color: #333333; + .account-user-info__label { + height: 42px; + line-height: 42px; + padding-left: 24px; + border-bottom: 1px solid #dddddd; + background: #f8f8f8; + } + .account-user-info__content { + padding: 44px 69px; + background: #ffffff; + /deep/.el-form { + .el-form-item__label { + margin-right: 40px; + color: #333333; + } + .user-info-content__avatar { + margin-top: -13px; + .el-image { + width: 70px; + height: 70px; + margin-right: 30px; + border-radius: 50%; + } + .el-button { + width: 89px; + height: 30px; + border-radius: 15px 15px 15px 15px; + border: 1px solid #eeeeee; + } + } + .user-info-content__nickname { + height: 35px; + width: 210px; + .el-input__inner { + border: 1px solid #eeeeee; + } + } + .ui-button { + width: 136px; + height: 36px; + } + } + } +} + diff --git a/plugins/api/order.js b/plugins/api/order.js index 493d51d..ade221d 100644 --- a/plugins/api/order.js +++ b/plugins/api/order.js @@ -150,6 +150,11 @@ export const ApiGetLogisticsCompanylist = (params) => */ export const ApiPutLogisticsInfo = (data) => ToAsyncAwait(axiosTk.put(`${BASE_URL}/app/refundOrder/completeRefund`, data)); +/** + * 退款订单统计 + */ + export const ApiGetRefundStatistisc= (data) => + ToAsyncAwait(axiosTk.put(`${BASE_URL}/app/refundOrder/statistics`, data));