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;