From 53d6500dc76dfc3db835ac2d477e83b18cde0fdf Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Tue, 12 Mar 2024 14:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/activity.js | 6 ++++++ pages/admin/orderRefund/index.vue | 11 +++++++++-- pages/index/index.vue | 28 +++++++++++++++++++++------ pages/users/goods_logistics/index.vue | 18 +++++++++-------- pages/users/order_list/indexCopy.vue | 6 ++---- store/modules/app.js | 2 +- 6 files changed, 50 insertions(+), 21 deletions(-) diff --git a/api/activity.js b/api/activity.js index 9e7d885..514142d 100644 --- a/api/activity.js +++ b/api/activity.js @@ -262,3 +262,9 @@ export function spuTopList(data) { noAuth: true }); } + +// 补贴余额统计 +export function storeActivityTotal(data) { + return request.get(`storeActivity/total`, data); +} + diff --git a/pages/admin/orderRefund/index.vue b/pages/admin/orderRefund/index.vue index 82b927e..27367af 100644 --- a/pages/admin/orderRefund/index.vue +++ b/pages/admin/orderRefund/index.vue @@ -126,7 +126,7 @@ }, onLoad(options) { this.order_id = options.id - this.mer_id = options.merId + this.mer_id = options.merId; Promise.all([this.getOrderInfo()]) }, methods:{ @@ -137,7 +137,14 @@ res => { res.data.pics4 = res.data.pics.slice(0,4); that.orderInfo = res.data; - that.refundInfo = res.data.refund_info + that.refundInfo = res.data.refund_info; + + let user = that.$store.state.app.userInfo; + if(user) { + that.refundInfo.mer_delivery_user ? null : that.refundInfo.mer_delivery_user = user.mer_info.mer_name + that.refundInfo.mer_delivery_address ? null : that.refundInfo.mer_delivery_address = user.mer_info.mer_address + that.refundInfo.phone ? null : that.refundInfo.phone = user.mer_info.service_phone + } }, err => { that.$util.Tips({title: err}); diff --git a/pages/index/index.vue b/pages/index/index.vue index ad2c263..35c2bc2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -45,8 +45,10 @@ {{item.value}} + + (次日18点后可提现) + - - - - - {{item.status}} - {{item.time}} - - + + + + + {{item.status}} + {{item.time}} + + + diff --git a/pages/users/order_list/indexCopy.vue b/pages/users/order_list/indexCopy.vue index c0de04f..1e56cdb 100644 --- a/pages/users/order_list/indexCopy.vue +++ b/pages/users/order_list/indexCopy.vue @@ -41,7 +41,7 @@ 售后/退款 - {{len || 0}} + {{orderData.refund || 0}} @@ -496,17 +496,15 @@ }, onReady() {}, mounted: function() { - this.arrlist() + // this.arrlist() }, methods: { arrlist() { - refundList({ product_type: this.product_type, type: 0, page: 1, limit: 1500 - }).then(res => { this.len = res.data.list.length }) diff --git a/store/modules/app.js b/store/modules/app.js index 6436c7a..d8f72a2 100644 --- a/store/modules/app.js +++ b/store/modules/app.js @@ -16,7 +16,7 @@ const state = { location: Cache.get('LOCATION_DATA', true) || {}, token: Cache.get(LOGIN_STATUS) || null, backgroundColor: "#fff", - userInfo: Cache.get(USER_INFO)||null, + userInfo: (typeof Cache.get(USER_INFO)=='string'?JSON.parse(Cache.get(USER_INFO)):Cache.get(USER_INFO))||null, uid: Cache.get(UID) || null, globalData: uni.getStorageSync('GLOBAL_DATA') || {}, homeActive: false,