From 4bec2aebf56d6dc87e850a9b05a57838db8b75d0 Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Sat, 17 Jul 2021 15:48:02 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=87=AA=E4=BB=98=E9=92=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/api.js | 2 ++
pages/center/invite.vue | 1 -
pages/center/wallet.vue | 63 +++++++++++++++++++++++++++++++++--
pages/order/confirm-order.vue | 2 +-
4 files changed, 64 insertions(+), 4 deletions(-)
diff --git a/common/api.js b/common/api.js
index d5697ba..e2bcdf1 100644
--- a/common/api.js
+++ b/common/api.js
@@ -73,6 +73,8 @@ export const API_CONFIRM_CODE = '/api/confirm/code'; // 扫码核销
export const API_WIDTHDRAW = '/api/income/extract'; // 提现
+export const API_WIDTHDRAWIMG = '/api/income/extractImg'; // 提现图片
+
/* token相关 */
export const API_WAREHOUSE_SET = '/api/warehouse/set'; // 存储token
export const API_WAREHOUSE_GET = '/api/warehouse/get'; // 获取token
\ No newline at end of file
diff --git a/pages/center/invite.vue b/pages/center/invite.vue
index 09d784d..502a37c 100644
--- a/pages/center/invite.vue
+++ b/pages/center/invite.vue
@@ -81,7 +81,6 @@
let options = {
route: 'home',
pt: 2,
- id: 2,
share_id: userInfo.id,
scene_code: this.$scene.V2_INVITE_SHAREPOSTER
}
diff --git a/pages/center/wallet.vue b/pages/center/wallet.vue
index ff399be..5b41f0e 100644
--- a/pages/center/wallet.vue
+++ b/pages/center/wallet.vue
@@ -6,7 +6,7 @@
{{walletBalance}}
佣金(元)
-
+
@@ -66,6 +66,10 @@
+
+
+
+
@@ -92,7 +96,9 @@
loadingText: '正在加载中'
}],
windowHeight: 0,
- walletBalance: 0
+ walletBalance: 0,
+ widthdrawImg: '',
+ maskHidden: false
}
},
onLoad(){
@@ -100,6 +106,18 @@
this.getIncomeList()
},
methods: {
+ getWidthdraw() {
+ let userInfo = uni.getStorageSync('userinfo') || {};
+ this.$http(this.API.API_WIDTHDRAWIMG, {
+ token: userInfo.token
+ }).then(res => {
+ this.widthdrawImg = res.data.img.url
+ console.log(this.widthdrawImg)
+ if(this.widthdrawImg) {
+ this.maskHidden = true
+ }
+ })
+ },
changeTab(index) {
if(this.current == index) {
return
@@ -179,6 +197,47 @@
}