| 
					
					
						
							
						
					
					
				 | 
				@ -2,19 +2,19 @@ | 
			
		
		
	
		
			
				 | 
				 | 
					<view> | 
				 | 
				 | 
					<view> | 
			
		
		
	
		
			
				 | 
				 | 
						<lf-nav title="提现" :showIcon="true" bgColor="#fff"></lf-nav> | 
				 | 
				 | 
						<lf-nav title="提现" :showIcon="true" bgColor="#fff"></lf-nav> | 
			
		
		
	
		
			
				 | 
				 | 
						<view class="tabs"> | 
				 | 
				 | 
						<view class="tabs"> | 
			
		
		
	
		
			
				 | 
				 | 
							<view class="tab"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="name" :class="{'active-tab': current == 0}" @click="current = 0">支付宝</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
							<view class="tab"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="name" :class="{'active-tab': current == 1}" @click="current = 1">银行卡</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							<view class="tab" v-for="(item, index) in tab_list" :key="index"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								<view class="name"  | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									:class="{'active-tab': current == index}"  | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									@click="switchTab(index)">{{ item }} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								</view> | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
							</view> | 
			
		
		
	
		
			
				 | 
				 | 
						</view> | 
				 | 
				 | 
						</view> | 
			
		
		
	
		
			
				 | 
				 | 
						<view class="content"> | 
				 | 
				 | 
						<view class="content"> | 
			
		
		
	
		
			
				 | 
				 | 
							<!-- 店铺信息 --> | 
				 | 
				 | 
							<!-- 店铺信息 --> | 
			
		
		
	
		
			
				 | 
				 | 
							<view class="card"> | 
				 | 
				 | 
							<view class="card"> | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="lf-flex"> | 
				 | 
				 | 
								<view class="lf-flex"> | 
			
		
		
	
		
			
				 | 
				 | 
									<image class="shop-avatar" mode="aspectFill" src="https://picsum.photos/id/237/200/300"></image> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
									<view class="shop-name">雅诗兰黛专卖店</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									<image class="shop-avatar" mode="aspectFill" :src="brand.logo"></image> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									<view class="shop-name">{{ brand.name }}</view> | 
			
		
		
	
		
			
				 | 
				 | 
								</view> | 
				 | 
				 | 
								</view> | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
							</view> | 
			
		
		
	
		
			
				 | 
				 | 
							<!-- 收款信息 - 提现到支付宝 --> | 
				 | 
				 | 
							<!-- 收款信息 - 提现到支付宝 --> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -79,7 +79,10 @@ | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
							</view> | 
			
		
		
	
		
			
				 | 
				 | 
							<!-- 提现金额 --> | 
				 | 
				 | 
							<!-- 提现金额 --> | 
			
		
		
	
		
			
				 | 
				 | 
							<view class="card"> | 
				 | 
				 | 
							<view class="card"> | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="lf-font-28 lf-color-222">提现金额</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								<view class="lf-font-28 lf-color-222"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									<text class="lf-m-r-10">提现金额</text> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									<text class="lf-font-24">(当前可用余额{{ balance }}元)</text> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								</view> | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="list money-list"> | 
				 | 
				 | 
								<view class="list money-list"> | 
			
		
		
	
		
			
				 | 
				 | 
									<view class="lf-flex"> | 
				 | 
				 | 
									<view class="lf-flex"> | 
			
		
		
	
		
			
				 | 
				 | 
										<view class="symbol">¥</view> | 
				 | 
				 | 
										<view class="symbol">¥</view> | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -92,12 +95,10 @@ | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="lf-font-28 lf-m-t-30" style="color: #F63434;" v-if="isMoney">输入金额超过可用余额</view> | 
				 | 
				 | 
								<view class="lf-font-28 lf-m-t-30" style="color: #F63434;" v-if="isMoney">输入金额超过可用余额</view> | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
							</view> | 
			
		
		
	
		
			
				 | 
				 | 
							<!-- 提现说明 --> | 
				 | 
				 | 
							<!-- 提现说明 --> | 
			
		
		
	
		
			
				 | 
				 | 
							<view class="card"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							<view class="card" v-if="remark.length"> | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="lf-font-28 lf-color-555 lf-m-b-20">提现说明</view> | 
				 | 
				 | 
								<view class="lf-font-28 lf-color-555 lf-m-b-20">提现说明</view> | 
			
		
		
	
		
			
				 | 
				 | 
								<view class="lf-font-28 lf-color-222"> | 
				 | 
				 | 
								<view class="lf-font-28 lf-color-222"> | 
			
		
		
	
		
			
				 | 
				 | 
									<view>1、提现到账时间为T+1;</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
									<view>2、提现最高单笔为10000元;</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
									<view>3、提现手续单笔收费10%;</view> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									<view v-for="(item, index) in remark" :key="index">{{ item }}</view> | 
			
		
		
	
		
			
				 | 
				 | 
								</view> | 
				 | 
				 | 
								</view> | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
							</view> | 
			
		
		
	
		
			
				 | 
				 | 
							<button class="confirm" hover-class="lf-opacity" @click="confirm">确认提现</button> | 
				 | 
				 | 
							<button class="confirm" hover-class="lf-opacity" @click="confirm">确认提现</button> | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -109,6 +110,7 @@ | 
			
		
		
	
		
			
				 | 
				 | 
					export default { | 
				 | 
				 | 
					export default { | 
			
		
		
	
		
			
				 | 
				 | 
						data(){ | 
				 | 
				 | 
						data(){ | 
			
		
		
	
		
			
				 | 
				 | 
							return { | 
				 | 
				 | 
							return { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								tab_list: ['支付宝', '银行卡'], | 
			
		
		
	
		
			
				 | 
				 | 
								current: 0, // 支付宝0、银行卡1 | 
				 | 
				 | 
								current: 0, // 支付宝0、银行卡1 | 
			
		
		
	
		
			
				 | 
				 | 
								alipay_name: '', // 支付宝姓名 | 
				 | 
				 | 
								alipay_name: '', // 支付宝姓名 | 
			
		
		
	
		
			
				 | 
				 | 
								alipay_account: '', // 支付宝账号 | 
				 | 
				 | 
								alipay_account: '', // 支付宝账号 | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -116,19 +118,41 @@ | 
			
		
		
	
		
			
				 | 
				 | 
								bank_sub_branch: '', // 银行卡所属支行 | 
				 | 
				 | 
								bank_sub_branch: '', // 银行卡所属支行 | 
			
		
		
	
		
			
				 | 
				 | 
								bank_number: '', // 银行卡号 | 
				 | 
				 | 
								bank_number: '', // 银行卡号 | 
			
		
		
	
		
			
				 | 
				 | 
								bank_account_name: '', // 银行卡开户名 | 
				 | 
				 | 
								bank_account_name: '', // 银行卡开户名 | 
			
		
		
	
		
			
				 | 
				 | 
								money: '' // 提现金额 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								money: '', // 提现金额 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								token: '', | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								remark: [], // 提现说明 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								brand: {}, // 商家信息 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								balance: 0 // 当前可用余额 | 
			
		
		
	
		
			
				 | 
				 | 
							} | 
				 | 
				 | 
							} | 
			
		
		
	
		
			
				 | 
				 | 
						}, | 
				 | 
				 | 
						}, | 
			
		
		
	
		
			
				 | 
				 | 
						computed: { | 
				 | 
				 | 
						computed: { | 
			
		
		
	
		
			
				 | 
				 | 
							isMoney(){ | 
				 | 
				 | 
							isMoney(){ | 
			
		
		
	
		
			
				 | 
				 | 
								// TODO 假设我现在的余额为10块钱 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								return Number(this.money) > 10; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								return Number(this.money) > this.balance; | 
			
		
		
	
		
			
				 | 
				 | 
							} | 
				 | 
				 | 
							} | 
			
		
		
	
		
			
				 | 
				 | 
						}, | 
				 | 
				 | 
						}, | 
			
		
		
	
		
			
				 | 
				 | 
						onLoad(){ | 
				 | 
				 | 
						onLoad(){ | 
			
		
		
	
		
			
				 | 
				 | 
							 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							let token = this.$cookieStorage.get('store_token'); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							this.token = token; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							this.getApplyInfo(); | 
			
		
		
	
		
			
				 | 
				 | 
						}, | 
				 | 
				 | 
						}, | 
			
		
		
	
		
			
				 | 
				 | 
						methods: { | 
				 | 
				 | 
						methods: { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							// 提现申请信息获取 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							getApplyInfo(){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								this.$http.get({ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									api: 'api/supplier/apply_info', | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									header: { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										token: this.token | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}).then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									this.balance = res.data.data.balance; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									this.brand = res.data.data.brand; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									this.remark = res.data.data.remark; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							}, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							// 切换tab | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							switchTab(index){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								this.current = index; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							}, | 
			
		
		
	
		
			
				 | 
				 | 
							confirm(){ | 
				 | 
				 | 
							confirm(){ | 
			
		
		
	
		
			
				 | 
				 | 
								if(this.current == 0){ | 
				 | 
				 | 
								if(this.current == 0){ | 
			
		
		
	
		
			
				 | 
				 | 
									// 提现到支付宝 | 
				 | 
				 | 
									// 提现到支付宝 | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -137,7 +161,7 @@ | 
			
		
		
	
		
			
				 | 
				 | 
									if(!this.money) return this.$msg('请输入提现金额'); | 
				 | 
				 | 
									if(!this.money) return this.$msg('请输入提现金额'); | 
			
		
		
	
		
			
				 | 
				 | 
									if(this.isMoney) return this.$msg('提现金额超出当前余额'); | 
				 | 
				 | 
									if(this.isMoney) return this.$msg('提现金额超出当前余额'); | 
			
		
		
	
		
			
				 | 
				 | 
									if(this.money <= 0) return this.$msg('提现金额需大于0'); | 
				 | 
				 | 
									if(this.money <= 0) return this.$msg('提现金额需大于0'); | 
			
		
		
	
		
			
				 | 
				 | 
									this.launch(); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									this.launch('alipay'); | 
			
		
		
	
		
			
				 | 
				 | 
								}else if(this.current == 1){ | 
				 | 
				 | 
								}else if(this.current == 1){ | 
			
		
		
	
		
			
				 | 
				 | 
									// 提现到银行卡 | 
				 | 
				 | 
									// 提现到银行卡 | 
			
		
		
	
		
			
				 | 
				 | 
									if(!this.bank_name) return this.$msg('请输入银行名称'); | 
				 | 
				 | 
									if(!this.bank_name) return this.$msg('请输入银行名称'); | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -147,12 +171,50 @@ | 
			
		
		
	
		
			
				 | 
				 | 
									if(!this.money) return this.$msg('请输入提现金额'); | 
				 | 
				 | 
									if(!this.money) return this.$msg('请输入提现金额'); | 
			
		
		
	
		
			
				 | 
				 | 
									if(this.isMoney) return this.$msg('提现金额超出当前余额'); | 
				 | 
				 | 
									if(this.isMoney) return this.$msg('提现金额超出当前余额'); | 
			
		
		
	
		
			
				 | 
				 | 
									if(this.money <= 0) return this.$msg('提现金额需大于0'); | 
				 | 
				 | 
									if(this.money <= 0) return this.$msg('提现金额需大于0'); | 
			
		
		
	
		
			
				 | 
				 | 
									this.launch(); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									this.launch('bankcard'); | 
			
		
		
	
		
			
				 | 
				 | 
								} | 
				 | 
				 | 
								} | 
			
		
		
	
		
			
				 | 
				 | 
							}, | 
				 | 
				 | 
							}, | 
			
		
		
	
		
			
				 | 
				 | 
							launch(){ | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								// TODO 在此发起网络请求 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								console.log("发起提现"); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							launch(type_name){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								uni.showLoading({ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									title: '正在提现中' | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								let par = { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									type: type_name, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									value: this.money | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								if(type_name == 'bankcard'){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									par.bank_name = this.bank_name; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									par.bank_branch = this.bank_sub_branch; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									par.bank_number = this.bank_number; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									par.bank_username = this.bank_account_name; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}else if(type_name == 'alipay'){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									par.alipay_name = this.alipay_name; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									par.alipay_account = this.alipay_account; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								this.$http.post({ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									api: 'api/supplier/cash_apply', | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									data: par, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									header: { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										token: this.token | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}).then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									if(res.data.code == 200){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										if(type_name == 'bankcard'){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
											this.bank_name = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
											this.bank_sub_branch = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
											this.bank_number = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
											this.bank_account_name = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										}else if(type_name == 'alipay'){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
											this.alipay_name = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
											this.alipay_account = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										this.money = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										this.$msg('提现成功', {icon: 'success'}); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										this.getApplyInfo(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									uni.hideLoading(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}).catch(err => uni.hideLoading()); | 
			
		
		
	
		
			
				 | 
				 | 
							} | 
				 | 
				 | 
							} | 
			
		
		
	
		
			
				 | 
				 | 
						} | 
				 | 
				 | 
						} | 
			
		
		
	
		
			
				 | 
				 | 
					} | 
				 | 
				 | 
					} | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |