From 0a52842e35b418a33193a86ef49482f1daec9373 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Mon, 3 Aug 2020 20:59:24 +0800 Subject: [PATCH] time none8.3 --- common/api/user.js | 9 ++ components/mine/collection-item/index.vue | 32 ++---- components/mine/order-item/index.vue | 10 ++ components/shop/recommend/pintuan.vue | 2 +- pageE/mine/EditUserInfo.vue | 2 +- pageE/mine/MineConcerns.vue | 119 ++++++++++++---------- pageE/mine/StoreCollection.vue | 14 +-- pageE/tool/ManicureOrder.vue | 2 +- pageE/tool/WashOrder.vue | 19 ++-- pages/mine/index.vue | 2 +- 10 files changed, 116 insertions(+), 95 deletions(-) diff --git a/common/api/user.js b/common/api/user.js index 8594ef0..2eafe9e 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -257,6 +257,15 @@ export default { if(msg) Object.assign(params, {msg: msg}); return vm.$u.post('Order/buyer_cancel', params); }, + // add_refund + refundOrder({ order_id, goods_id, refund_amount, refund_type = 1 } = {}) { + return vm.$u.post('order/add_refund', { + order_id: order_id, + goods_id: goods_id, + refund_amount: refund_amount, + refund_type: refund_type, + }); + }, // 删除订单 deleteOrder({ order_id }) { return vm.$u.post('order/order_delete', { order_id: order_id }); diff --git a/components/mine/collection-item/index.vue b/components/mine/collection-item/index.vue index 92ce7ba..8c81c56 100644 --- a/components/mine/collection-item/index.vue +++ b/components/mine/collection-item/index.vue @@ -3,22 +3,22 @@ - + - 木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子 + {{ item.goods_name }} - ¥99 + ¥{{ item.favlog_price }} - 2020-05-17 + {{ item.fav_time }} @@ -30,20 +30,7 @@ export default { data() { return { - list: [ - { - id: 1, - show: false - }, - { - id: 2, - show: false - }, - { - id: 3, - show: false, - } - ], + list: [], show: false, options: [ { @@ -61,17 +48,18 @@ export default { methods: { getGoodsFavoritesList() { this.$u.api.getFavoritesList().then(res => { - if(res.errCode == 0) {} + if(res.errCode == 0) { + this.list = res.data; + } }) }, removeFavorite(id) { this.$u.api.removeFavorite({ id: id }).then(res => { + this.$u.toast(res.message); if(res.errCode == 0) { this.getGoodsFavoritesList(); - } else { - this.$u.toast(res.message); } }) }, diff --git a/components/mine/order-item/index.vue b/components/mine/order-item/index.vue index e167fd8..6ae95b9 100644 --- a/components/mine/order-item/index.vue +++ b/components/mine/order-item/index.vue @@ -82,7 +82,17 @@ export default { }) }, applyRefund() { + let params = { + order_id: this.order.order_id, + // goods_id: goods_id, + // refund_amount: refund_amount, + } + this.$u.api.refundOrder(params).then(res => { + this.$u.toast(res.message); + if(res.errCode == 0) { + } + }) }, confirmReceive() { this.$u.api.confirmReceive({ diff --git a/components/shop/recommend/pintuan.vue b/components/shop/recommend/pintuan.vue index cfa60a9..a983347 100644 --- a/components/shop/recommend/pintuan.vue +++ b/components/shop/recommend/pintuan.vue @@ -20,7 +20,7 @@ ¥{{ info.goods_price }} - + diff --git a/pageE/mine/EditUserInfo.vue b/pageE/mine/EditUserInfo.vue index b896a70..7f9eeb0 100644 --- a/pageE/mine/EditUserInfo.vue +++ b/pageE/mine/EditUserInfo.vue @@ -156,7 +156,7 @@ export default { }).then(res => { if (res.errCode == 0) { this.getUserInfo(); - this.$u.toast(res.message); + // this.$u.toast(res.message); } }) }, diff --git a/pageE/mine/MineConcerns.vue b/pageE/mine/MineConcerns.vue index 3e7e741..fcc3b2e 100644 --- a/pageE/mine/MineConcerns.vue +++ b/pageE/mine/MineConcerns.vue @@ -1,15 +1,16 @@ @@ -17,61 +18,73 @@ export default { data() { return { - list: [ - { - member_avatar: '', - member_nickname: '111', - live_status: 0, - member_id: 1, - is_attention: 1, + list: [] + } + }, + onShow() { + this.attentionMemberList(); + }, + methods: { + attentionMemberList() { + this.$u.api.attentionMemberList().then(res => { + if(res.errCode == 0) { + this.list = res.data; + } else { + this.list = []; } - ] + }) } }, };