From ecb9010f5abb10fed00ccbdb66f3bdc25b19e0a6 Mon Sep 17 00:00:00 2001 From: donqi Date: Sun, 22 May 2022 21:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/data.js | 29 ++++++--- common/js/request.js | 13 ++++ components/modal/pic-modal.vue | 62 +++++++++++++++++++ pages.json | 4 ++ pages/index/my-home.vue | 3 +- pages/my/account-security.vue | 36 +++++++++++ pages/my/personal-info.vue | 65 ++++++++++++++++++++ pages/order-manage/order-manage.vue | 94 ++++++++++++++++++++++++++++- 8 files changed, 295 insertions(+), 11 deletions(-) create mode 100644 components/modal/pic-modal.vue create mode 100644 pages/my/account-security.vue create mode 100644 pages/my/personal-info.vue diff --git a/common/js/data.js b/common/js/data.js index 6ba846d..c9c49e6 100644 --- a/common/js/data.js +++ b/common/js/data.js @@ -252,21 +252,28 @@ const myOrders = { id: 1, title: '清洗空调/挂机内机拆洗(不分匹)', state: '', - subState: 'waitServing', + subState: 'afterSaleService', tags: [{ level: 'info', content: '商城订单' - }, { - level: 'error', - content: '超时未预约' }], name: 'cc', address: '广东省广州市天河区。。。。。。', servTime: '2022-06-01 08:00-08:30', doorTime: '2022-06-01 08:15:00', - comments: '备注内容。。。。。。', + comments: '服务超时,超上门时间8小时后,即计为罚款。但重排不超时或申请完单退出状态。', phoneNum: '13233433467', - deadlineDate: '2022-06-01 08:30:00', + deadlineDate: '2022-06-01 08:30:00', + chargeReachDate: '2022-06-04 08:30:00', + afterSaleType: 'unfinished',// finished || unfinished + applyRefundLastTime: '2022-06-01 08:30:00', + refundAmount: '--', + refundReachAmount: '0.49', + refundReason: '客户家条件限制,无法装', + refundStatus: '', + waitAfterSaleLastTime: '2022-06-01 08:30:00', + afterSaleReason: '清洗不干净啊!', + afterSaleDealStatus: '', product: { id: 1, picUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big20000.jpg', @@ -579,6 +586,13 @@ const chatMsgList = [{ msg: '汪汪汪!@#¥%……&*()~', time: '13:25' }] + +const picImgList = [ + // 'https://ossweb-img.qq.com/images/lol/web201310/skin/big50000.jpg', + // 'https://ossweb-img.qq.com/images/lol/web201310/skin/big50001.jpg', + // 'https://ossweb-img.qq.com/images/lol/web201310/skin/big50002.jpg', + // 'https://ossweb-img.qq.com/images/lol/web201310/skin/big50003.jpg' +] export default { moduleBarInfos, @@ -603,5 +617,6 @@ export default { statementDesc, payDeposit, personToChat, - chatMsgList + chatMsgList, + picImgList } diff --git a/common/js/request.js b/common/js/request.js index 3ba8888..5acbee0 100644 --- a/common/js/request.js +++ b/common/js/request.js @@ -143,6 +143,19 @@ export default { getCurUserInfo() { let userProfile = uni.getStorageSync('userProfile'); return userProfile; + }, + async getCurUserNoCache() { + let userInfo = this.getCurUserInfo(); + let wxGetUserRes = await this.qryUserInfo(userInfo.openId); + if (!wxGetUserRes.data) { + userInfo = null; + } else { + userInfo = { + ...wxGetUserRes.data, + wxLoginCode: userInfo.wxLoginCode + } + } + return userInfo; }, async uploadFile(filePath) { let res = await uni.uploadFile({ diff --git a/components/modal/pic-modal.vue b/components/modal/pic-modal.vue new file mode 100644 index 0000000..87bdb8d --- /dev/null +++ b/components/modal/pic-modal.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/pages.json b/pages.json index b1eb1d5..f0f5e36 100644 --- a/pages.json +++ b/pages.json @@ -47,6 +47,10 @@ "path": "statement-desc" }, { "path": "pay-deposit" + }, { + "path": "personal-info" + }, { + "path": "account-security" }] }], "globalStyle": { diff --git a/pages/index/my-home.vue b/pages/index/my-home.vue index 3433ccf..1aa2193 100644 --- a/pages/index/my-home.vue +++ b/pages/index/my-home.vue @@ -84,7 +84,8 @@ pageUrl: '/pages/my/goods-manage' }, { name: '个人信息', - icon: 'lock' + icon: 'lock', + pageUrl: '/pages/my/personal-info' }, { name: '法律声明', icon: 'read' diff --git a/pages/my/account-security.vue b/pages/my/account-security.vue new file mode 100644 index 0000000..f4ca7bc --- /dev/null +++ b/pages/my/account-security.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/pages/my/personal-info.vue b/pages/my/personal-info.vue new file mode 100644 index 0000000..09cf935 --- /dev/null +++ b/pages/my/personal-info.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/pages/order-manage/order-manage.vue b/pages/order-manage/order-manage.vue index 6126622..47656fd 100644 --- a/pages/order-manage/order-manage.vue +++ b/pages/order-manage/order-manage.vue @@ -74,7 +74,8 @@ - + + {{tag.content}} @@ -107,6 +108,16 @@ :second="$dateUtil.countDownDiff(order.deadlineDate).seconds"> + + + 距到帐: + + + @@ -132,6 +143,61 @@ + + + + + + + + + + + 退单申请: + + + + + 退款金额:{{order.refundAmount}} + 到帐金额:{{order.refundReachAmount}} + + + 退款原因:{{order.refundReason}} + + + + + + + + + + + + 待处理售后: + + + + + 售后原因:{{order.afterSaleReason}} + + 完成操作:点击“处理完成”提交由客服回访! + + + + + + + + 备注:{{order.comments}} @@ -143,6 +209,8 @@ + +