MONSTER-ygh 1 年間 前
コミット
61345f8276
1 ファイル変更10 行追加3 行削除
  1. 10 3
      pages/me/index.vue

+ 10 - 3
pages/me/index.vue

@@ -32,7 +32,7 @@
 				v-for="(item,index) in tool"
 				:key="index"
 				@click="navigateToFun(item)"
-				v-if="(userInfo.withdrawTotal == 1 && item.title=='余额提现')||item.title!='余额提现'"
+				v-if="(withdrawInfo.allowWithdraw == 1 && item.title=='余额提现')||item.title!='余额提现'"
 				>
 					<image 
 					class="me-tool-item-icon"
@@ -71,7 +71,8 @@
 					{ title: "我的推广码",icon: this.$commonConfig.staticUrl + 'me/yijian1.png', url: '' },
 					// { title: "提现记录",icon: this.$commonConfig.staticUrl + 'me/beifeng.png', url: '/pages/cashList/index' },
 				],
-				userInfo: {}
+				userInfo: {},
+				withdrawInfo: {},
 			}
 		},
 	
@@ -110,10 +111,16 @@
 						noSign: 1,
 						userid: this.distribution_user_info.userId
 					})
-					
+					let res1 = await this.$u.api.withdrawInfo({
+						noSign: 1,
+						userid: this.distribution_user_info.userId
+					})
 					if(res && res.code ===200) {
 						this.userInfo = res.data
 					} 
+					if(res1 && res1.code === 200){
+						this.withdrawInfo = res.data
+					}
 				}catch(e){
 					//TODO handle the exception
 					console.error("e===",e)