From 5902d68d4ef46f1b1d3ded9b130dc5c5fd963ad3 Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Thu, 22 Jul 2021 10:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E5=9B=BE=E7=89=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api.js | 2 +- pages/center/wallet.vue | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/api.js b/common/api.js index 62dfe1f..5e4ac51 100644 --- a/common/api.js +++ b/common/api.js @@ -76,7 +76,7 @@ export const API_CONFIRM_CODE = '/api/confirm/code'; // 扫码核销 export const API_WIDTHDRAW = '/api/income/extract'; // 提现 -export const API_WIDTHDRAWIMG = '/api/income/extractImg'; // 提现图片 +export const API_WIDTHDRAWIMG = '/api/share/img'; // 提现图片 /* token相关 */ export const API_WAREHOUSE_SET = '/api/warehouse/set'; // 存储token diff --git a/pages/center/wallet.vue b/pages/center/wallet.vue index cd9320c..6dfbc3f 100644 --- a/pages/center/wallet.vue +++ b/pages/center/wallet.vue @@ -109,9 +109,10 @@ getWidthdraw() { let userInfo = uni.getStorageSync('userinfo') || {}; this.$http(this.API.API_WIDTHDRAWIMG, { - token: userInfo.token + token: userInfo.token, + type: 'extract_img' }).then(res => { - this.widthdrawImg = res.data.img.url + this.widthdrawImg = res.data.img_url console.log(this.widthdrawImg) if(this.widthdrawImg) { this.maskHidden = true @@ -213,7 +214,7 @@ width: 80%; height: 80%; position: fixed; - top: 280rpx; + top: 240rpx; left: 50%; margin-left: -40%; z-index: 10;