hwq 2 년 전
부모
커밋
7ae5c07591
5개의 변경된 파일569개의 추가작업 그리고 461개의 파일을 삭제
  1. 95 100
      pages.json
  2. 142 0
      pages/money/account.vue
  3. 332 361
      pages/money/withdrawal.vue
  4. BIN
      static/img/mybank.png
  5. BIN
      static/img/zfb.png

+ 95 - 100
pages.json

@@ -2,14 +2,13 @@
 	"easycom": {
 		"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
 	},
-	"pages": [
-		{
+	"pages": [{
 			"path": "pages/index/index",
 			"style": {
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"navigationBarTitleText": "艺绘",
-				"enablePullDownRefresh":true,
+				"enablePullDownRefresh": true,
 				"app-plus": {
 					// "titleNView": false
 				}
@@ -19,7 +18,7 @@
 			"path": "pages/index/guide",
 			"style": {
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"navigationBarTitleText": "NFT合成"
 			}
 		},
@@ -27,9 +26,9 @@
 			"path": "pages/index/myNftList",
 			"style": {
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"navigationBarTitleText": "NFT列表",
-				"enablePullDownRefresh":true
+				"enablePullDownRefresh": true
 			}
 		},
 		{
@@ -43,7 +42,7 @@
 			"style": {
 				"navigationBarTitleText": "关于我们",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -76,7 +75,7 @@
 			"style": {
 				"navigationBarTitleText": "注册",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"titleNView": {
 						"type": "transparent"
@@ -89,7 +88,7 @@
 			"style": {
 				"navigationBarTitleText": "登录",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"titleNView": {
 						"type": "transparent"
@@ -102,7 +101,7 @@
 			"style": {
 				"navigationBarTitleText": "微信登录",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"titleNView": {
 						"type": "transparent"
@@ -116,7 +115,7 @@
 				"navigationStyle": "custom",
 				"navigationBarTitleText": "我的推广",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -124,7 +123,7 @@
 			"style": {
 				"navigationBarTitleText": "详情",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"titleNView": {
 						"type": "transparent"
@@ -137,7 +136,7 @@
 			"style": {
 				"navigationBarTitleText": "盲盒详情",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"titleNView": {
 						"type": "transparent"
@@ -150,7 +149,7 @@
 			"style": {
 				"enablePullDownRefresh": true,
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				// #ifdef APP-PLUS
 				"navigationStyle": "custom",
 				// #endif
@@ -191,7 +190,7 @@
 			"style": {
 				"navigationBarTitleText": "绑定手机号",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -205,7 +204,7 @@
 			"style": {
 				"navigationBarTitleText": "会员协议",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -213,9 +212,9 @@
 			"style": {
 				"navigationBarTitleText": "修改资料",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
-		}, 
+		},
 		{
 			"path": "pages/user/user",
 			"style": {
@@ -224,7 +223,7 @@
 				// #endif
 				"navigationBarTitleText": "个人中心",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -232,7 +231,7 @@
 			"style": {
 				"navigationBarTitleText": "我的订单",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"bounce": "none"
 				}
@@ -243,7 +242,7 @@
 			"style": {
 				"navigationBarTitleText": "市场未付",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"bounce": "none"
 				}
@@ -254,7 +253,7 @@
 			"style": {
 				"navigationBarTitleText": "订单详情",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"bounce": "none"
 				}
@@ -265,7 +264,7 @@
 			"style": {
 				"navigationBarTitleText": "申请退款",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -273,14 +272,22 @@
 			"style": {
 				"navigationBarTitleText": "创建订单",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		}, {
 			"path": "pages/money/pay",
 			"style": {
 				"navigationBarTitleText": "支付",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/money/account",
+			"style": {
+				"navigationBarTitleText": "提现账号",
+				"navigationBarBackgroundColor": "#111111",
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -288,7 +295,7 @@
 			"style": {
 				"navigationBarTitleText": "支付成功",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -304,7 +311,7 @@
 			"style": {
 				"navigationBarTitleText": "提现",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -312,7 +319,7 @@
 			"style": {
 				"navigationBarTitleText": "充值",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -320,7 +327,7 @@
 			"style": {
 				"navigationBarTitleText": "微信登录跳转页面",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"app-plus": {
 					"titleNView": false
 				}
@@ -331,15 +338,15 @@
 			"style": {
 				"navigationBarTitleText": "邀请好友",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
-		 {
+		{
 			"path": "pages/index/cangp",
 			"style": {
 				"navigationBarTitleText": "藏品",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				"navigationStyle": "custom",
 				"enablePullDownRefresh": false
 			}
@@ -349,7 +356,7 @@
 			"style": {
 				"navigationBarTitleText": "市场",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
 				// #ifndef MP-WEIXIN
 				"navigationStyle": "custom",
 				// #endif
@@ -361,70 +368,60 @@
 			"style": {
 				"navigationBarTitleText": "修改密码",
 				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
+				"navigationBarTextStyle": "white",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/user/feedback",
+			"style": {
+				"navigationBarTitleText": "帮助",
+				"navigationBarBackgroundColor": "#111111",
+				"navigationBarTextStyle": "white",
 				"enablePullDownRefresh": false
 			}
 
+		}, {
+			"path": "pages/money/success",
+			"style": {
+				"navigationBarTitleText": "提交成功",
+				"navigationBarBackgroundColor": "#111111",
+				"navigationBarTextStyle": "white",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/set/gongao",
+			"style": {
+				"navigationBarTitleText": "公告",
+
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#111111",
+				"navigationBarTextStyle": "white"
+			}
+
+		}, {
+			"path": "pages/user/personal",
+			"style": {
+				"navigationBarTitleText": "个人资料",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#111111",
+				"navigationBarTextStyle": "white"
+			}
+
+		}, {
+			"path": "pages/user/realName",
+			"style": {
+				"navigationBarTitleText": "实名认证",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#111111",
+				"navigationBarTextStyle": "white"
+			}
 		}
-	    ,{
-            "path" : "pages/user/feedback",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "帮助",
-				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
-                "enablePullDownRefresh": false
-            }
-            
-        }
-        ,{
-            "path" : "pages/money/success",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "提交成功",
-				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle": "white", 
-                "enablePullDownRefresh": false
-            }
-            
-        }
-        ,{
-            "path" : "pages/set/gongao",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "公告",
-				
-                "enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
-            }
-            
-        }
-        ,{
-            "path" : "pages/user/personal",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "个人资料",
-                "enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
-            }
-            
-        }
-        ,{
-            "path" : "pages/user/realName",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "实名认证",
-                "enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#111111",
-				"navigationBarTextStyle":"white"
-            }
-        }
-    ],
+	],
 	"globalStyle": {
 		"navigationBarTitleText": "艺绘",
-		"navigationBarTextStyle": "white", 
+		"navigationBarTextStyle": "white",
 		"navigationBarBackgroundColor": "#111111",
 		"backgroundColor": "#f8f8f8"
 	},
@@ -460,14 +457,12 @@
 
 		]
 	},
-	"condition" : { //模式配置,仅开发期间生效
+	"condition": { //模式配置,仅开发期间生效
 		"current": 0, //当前激活的模式(list 的索引项)
-		"list": [
-			{
-				"name": "", //模式名称
-				"path": "", //启动页面,必选
-				"query": "" //启动参数,在页面的onLoad函数里面得到
-			}
-		]
+		"list": [{
+			"name": "", //模式名称
+			"path": "", //启动页面,必选
+			"query": "" //启动参数,在页面的onLoad函数里面得到
+		}]
 	}
 }

+ 142 - 0
pages/money/account.vue

@@ -0,0 +1,142 @@
+<template>
+	<view class="content">
+		<view class="box">
+			<view class="item top">
+				<text>真实姓名</text>
+				<input type="text" v-model="name" value="" placeholder="请输入真实姓名" />
+			</view>
+			<view class="item">
+				<text>支付宝账号</text>
+				<input type="text" v-model="id" value="" placeholder="请输入支付宝账号" />
+			</view>
+		</view>
+		<view class="button" @click="confirm()">确认</view>
+	</view>
+</template>
+
+<script>
+import { orderData, getUserInfo } from '@/api/user.js';
+import { mapState, mapMutations } from 'vuex';
+import { userEdit } from '@/api/set.js';
+export default {
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	data() {
+		return {
+			name: '',
+			id: ''
+		};
+	},
+	onLoad() {
+		if (this.userInfo.alipay_code != null) {
+			this.id = this.userInfo.alipay_code;
+		}
+		if (this.userInfo.alipay_name != null) {
+			this.name = this.userInfo.alipay_name;
+		}
+	},
+	methods: {
+		...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
+		confirm() {
+			let obj = this;
+			if (!obj.name) {
+				return this.$api.msg('请输入提款人姓名');
+			}
+			if (!obj.id) {
+				return this.$api.msg('请输入支付宝账号');
+			}
+			userEdit({
+				alipay_name: obj.name,
+				alipay_code: obj.id
+			})
+				.then(e => {
+					obj.$api.msg('修改成功');
+					obj.getUserInfo();
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+		// 更新用户信息
+		getUserInfo() {
+			getUserInfo({})
+				.then(({ data }) => {
+					console.log(data);
+					this.setUserInfo(data);
+					// 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
+					orderData({})
+						.then(({ data }) => {
+							this.setOrderInfo(data);
+							uni.navigateBack({
+								delta: 1
+							});
+						})
+						.catch(e => {
+							this.setOrderInfo({
+								complete_count: 0, //完成
+								received_count: 0, //待收货
+								unshipped_count: 0, //待发货
+								order_count: 0, //订单总数
+								unpaid_count: 0 //待付款
+							});
+						});
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page,
+.content {
+	height: 100%;
+	padding: 0;
+	margin: 0;
+}
+.top {
+	border-bottom: 1rpx solid #f3f3f3;
+}
+.box {
+	background: #26262e;
+	margin: 20rpx 0 70rpx 0;
+	.item {
+		display: flex;
+		align-items: center;
+		text {
+			margin: 0 40rpx 0 25rpx;
+			width: 150rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: 400;
+			color: #ffffff;
+			line-height: 100rpx;
+		}
+		input {
+			height: 100rpx;
+			display: inline-block;
+			font-size: 28rpx;
+			font-family: PingFang SC;
+			font-weight: 400;
+			color: #ffffff;
+			line-height: 100rpx;
+		}
+	}
+}
+.button {
+	background: $bgBaseBg;
+	color: #fff;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	width: 690rpx;
+	height: 80rpx;
+	margin: 0 auto;
+	margin-top: 30rpx;
+	font-size: $font-lg;
+	border-radius: 10rpx;
+}
+</style>

+ 332 - 361
pages/money/withdrawal.vue

@@ -5,7 +5,7 @@
 			<view class="flex " style="width: 750rpx;justify-content: space-around;margin-left: 0;">
 				<view class="buttom">
 					<view class="icon">{{ money | getMoneyStyle }}</view>
-					<text class="text">可提现{{showType}}</text>
+					<text class="text">可提现{{ showType }}</text>
 				</view>
 			</view>
 		</view>
@@ -14,8 +14,7 @@
 			<view class="title">提现金额</view>
 			<view class="row">
 				<text class="tit">¥</text>
-				<input class="input" type="number" v-model="withdrawal" placeholder="请输入提现金额"
-					placeholder-class="placeholder" />
+				<input class="input" type="number" v-model="withdrawal" placeholder="请输入提现金额" placeholder-class="placeholder" />
 				<view class="buttom butt" @click="withdrawal = money">全部提现</view>
 			</view>
 		</view>
@@ -43,9 +42,7 @@
 								<text v-if="aliData.fullname">真实姓名({{ aliData.fullname }})</text>
 							</view>
 						</view>
-						<view class="right">
-							<radio value="alipay" color="#A581FF" :checked="type == 'alipay'" />
-						</view>
+						<view class="right"><radio value="alipay" color="#A581FF" :checked="type == 'alipay'" /></view>
 					</view>
 				</label>
 				<!-- <label>
@@ -70,435 +67,409 @@
 			</radio-group>
 		</view>
 		<!-- #endif -->
-		<view class="row b-b" v-if="type == 'alipay'">
+		<!-- <view class="row b-b" v-if="type == 'alipay'">
 			<text class="tit">支付宝账号</text>
-			<input class="input" type="text" v-model="alipay_code" placeholder="请输入支付宝账号"
-				placeholder-class="placeholder" />
+			<input class="input" type="text" v-model="alipay_code" placeholder="请输入支付宝账号" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b" v-if="type == 'alipay'">
 			<text class="tit">支付宝姓名</text>
-			<input class="input" type="text" v-model="alipay_name" placeholder="请输入支付宝姓名"
-				placeholder-class="placeholder" />
+			<input class="input" type="text" v-model="alipay_name" placeholder="请输入支付宝姓名" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b" v-if="type == 'alipay'">
 			<text class="tit">手机号</text>
-			<input class="input" v-model="alipay_phone" type="number" placeholder="请输入手机号"
-				placeholder-class="placeholder" />
+			<input class="input" v-model="alipay_phone" type="number" placeholder="请输入手机号" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b" v-if="type == 'bank'">
 			<text class="tit">银行卡号</text>
-			<input class="input" type="text" v-model="bank_code" placeholder="请输入银行卡号"
-				placeholder-class="placeholder" />
+			<input class="input" type="text" v-model="bank_code" placeholder="请输入银行卡号" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b" v-if="type == 'bank'">
 			<text class="tit">姓名</text>
-			<input class="input" type="text" v-model="bank_people" placeholder="请输入银行卡姓名"
-				placeholder-class="placeholder" />
+			<input class="input" type="text" v-model="bank_people" placeholder="请输入银行卡姓名" placeholder-class="placeholder" />
 		</view>
 		<view class="row b-b" v-if="type == 'bank'">
 			<text class="tit">所属银行</text>
-			<input class="input" type="text" v-model="bank_name" placeholder="请输入所属银行"
-				placeholder-class="placeholder" />
-		</view>
-		<button class="add-btn up" @click="confirm" :class="{'loading': load}">提交申请</button>
-		<!-- <button class="add-btn " v-if="!weichatBsrowser" @click="navTo('/pages/money/account')">账号管理</button> -->
+			<input class="input" type="text" v-model="bank_name" placeholder="请输入所属银行" placeholder-class="placeholder" />
+		</view> -->
+		<button class="add-btn up" @click="confirm" :class="{ loading: load }">提交申请</button>
+		<button class="add-btn " @click="navTo('/pages/money/account')">账号管理</button>
 	</view>
 </template>
 
 <script>
-	import {
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { extractCash, extractBank, setAliInfo, aliInfo, bankInfo, getMoneyType } from '@/api/wallet.js';
+import { orderData, getUserInfo } from '@/api/user.js';
+import { mapState, mapMutations } from 'vuex';
+import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue';
+export default {
+	filters: {
 		getMoneyStyle
-	} from '@/utils/rocessor.js';
-	import {
-		extractCash,
-		extractBank,
-		setAliInfo,
-		aliInfo,
-		bankInfo,
-		getMoneyType
-	} from '@/api/wallet.js';
-	import {
-		orderData,
-		getUserInfo
-	} from '@/api/user.js';
-	import {
-		mapState,
-		mapMutations
-	} from 'vuex';
-	import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue';
-	export default {
-		filters: {
-			getMoneyStyle
-		},
-		components: {
-			uniNoticeBar
-		},
-		computed: {
-			...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
-		},
-		data() {
-			return {
-				load: true,
-				showType: '',
-				from: '',
-				type: 'alipay', //提现方式
-				money: '0.00', //可提现金额
-				freeze: '0.0', //冻结金额
-				withdrawal: '', //提现金额
-				minPrice: '', //最少提现金额
-				aliData: {},
-				bankData: {},
-				alipay_code: '',
-				alipay_name: '',
-				alipay_phone: '',
-				bank_code: '',
-				bank_people: '',
-				bank_name: '',
-				// #ifdef H5
-				weichatBsrowser: false
-				// #endif
-			};
-		},
-		onLoad(options) {
+	},
+	components: {
+		uniNoticeBar
+	},
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	data() {
+		return {
+			load: true,
+			showType: '',
+			from: '',
+			type: 'alipay', //提现方式
+			money: '0.00', //可提现金额
+			freeze: '0.0', //冻结金额
+			withdrawal: '', //提现金额
+			minPrice: '', //最少提现金额
+			aliData: { fullname: '', alino: '' },
+			bankData: {},
+			alipay_code: '',
+			alipay_name: '',
+			alipay_phone: '',
+			bank_code: '',
+			bank_people: '',
+			bank_name: '',
 			// #ifdef H5
-			this.weichatBsrowser = uni.getStorageSync('weichatBrowser');
+			weichatBsrowser: false
 			// #endif
-			if (options.type) {
-				this.from = options.type
-				if (this.from == 'purple') {
-					this.showType = '阳光积分'
-				}
-				if (this.from == 'shop') {
-					this.showType = '美好积分'
-				}
+		};
+	},
+	onLoad(options) {
+		// #ifdef H5
+		this.weichatBsrowser = uni.getStorageSync('weichatBrowser');
+		// #endif
+		if (options.type) {
+			this.from = options.type;
+			if (this.from == 'purple') {
+				this.showType = '阳光积分';
+			}
+			if (this.from == 'shop') {
+				this.showType = '美好积分';
 			}
-			//加载提现信息
-			this.loadData();
-			// // 加载提款账号信息
-			// this.loadAli();
-			// this.loadBank();
+		}
+		//加载提现信息
+		this.loadData();
+		// // 加载提款账号信息
+		// this.loadAli();
+		// this.loadBank();
+	},
+	methods: {
+		...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
+		// 加载余额信息
+		async loadData() {
+			let obj = this;
+			// aliInfo().then(e => {
+			// 	console.log(e, 'eeee');
+			// 	this.aliData = e.data;
+			// });
+			getUserInfo({})
+				.then(({ data }) => {
+					console.log(data, 'data');
+					this.setUserInfo(data);
+					obj.money = data.brokerage_price;
+					obj.aliData.fullname = obj.userInfo.alipay_name;
+					obj.aliData.alino = obj.userInfo.alipay_code;
+					obj.load = false;
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+		// 跳转
+		navTo(url) {
+			uni.navigateTo({
+				url: url
+			});
 		},
-		methods: {
-			...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
-			// 加载余额信息
-			async loadData() {
-				let obj = this
-				aliInfo().then(e => {
-					console.log(e, 'eeee');
-					obj.alipay_code = e.data.zfb.payment
-					obj.alipay_name = e.data.zfb.name
-					obj.alipay_phone = e.data.zfb.phone
+		// 切换选中对象
+		tabRadio(e) {
+			this.type = e.detail.value;
+		},
+		// 提交
+		confirm() {
+			if (this.load) {
+				return;
+			}
+			let zfbData = {
+				phone: this.alipay_phone,
+				type: 2,
+				payment: this.alipay_code,
+				name: this.alipay_name
+			};
+			let data = {
+				extract_type: this.type, //bank -银行卡 alipay-支付宝 weixin-微信
+				money: this.withdrawal, //金额
+				type: this.from == 'purple' ? 1 : 2 //0佣金1余额  1紫积分 2商家积分
+			};
+			// if (this.withdrawal % 100 != 0) {
+			// 	uni.showToast({
+			// 		title: '提现金额为100的倍数',
+			// 		duration: 2000,
+			// 		mask: false,
+			// 		icon: 'none'
+			// 	});
+			// 	return;
+			// }
+			if (this.withdrawal < this.minPrice) {
+				uni.showToast({
+					title: '提现金额不可少于' + this.minPrice,
+					duration: 2000,
+					mask: false,
+					icon: 'none'
 				});
-				getUserInfo({})
-					.then(({
-						data
-					}) => {
-						console.log(data, 'data')
-						this.setUserInfo(data);
-						obj.money = data.brokerage_price
-						obj.load = false
-					})
-					.catch(e => {
-						console.log(e);
-					});
-			},
-			// 跳转
-			navTo(url) {
-				uni.navigateTo({
-					url: url
+				return;
+			}
+			if (this.type == 'alipay') {
+				console.log('alipay');
+				data.name = this.alipay_name;
+				data.alipay_code = this.alipay_code;
+				zfbData.phone = this.alipay_phone;
+			}
+			if (this.type == 'bank') {
+				data.name = this.bank_people;
+				data.bankname = this.bank_name;
+				data.cardnum = this.bank_code;
+			}
+			this.load = true;
+			getMoneyType(zfbData)
+				.then(e => {
+					console.log(e, 'eeeeee');
+					// uni.showToast({
+					// 	title: '修改成功',
+					// 	duration: 2000,
+					// 	position: 'top'
+					// });
+					// setTimeout(() => {
+					// 	uni.navigateBack({
+					// 		url:'pages/user/shopJf'
+					// 	})
+					// },1500)
+					this.$api.prePage().dataUp();
+				})
+				.catch(e => {
+					console.log(e);
 				});
-			},
-			// 切换选中对象
-			tabRadio(e) {
-				this.type = e.detail.value;
-			},
-			// 提交
-			confirm() {
-				if (this.load) {
-					return
-				}
-				let zfbData = {
-					phone: this.alipay_phone,
-					type: 2,
-					payment: this.alipay_code,
-					name: this.alipay_name
-				}
-				let data = {
-					extract_type: this.type, //bank -银行卡 alipay-支付宝 weixin-微信
-					money: this.withdrawal, //金额
-					type: this.from == 'purple' ? 1 : 2 //0佣金1余额  1紫积分 2商家积分
-				};
-				// if (this.withdrawal % 100 != 0) {
-				// 	uni.showToast({
-				// 		title: '提现金额为100的倍数',
-				// 		duration: 2000,
-				// 		mask: false,
-				// 		icon: 'none'
-				// 	});
-				// 	return;
-				// }
-				if (this.withdrawal < this.minPrice) {
+			extractCash(data)
+				.then(e => {
+					console.log(e, 'eeeeee');
+					this.loadData();
 					uni.showToast({
-						title: '提现金额不可少于' + this.minPrice,
+						title: '提交成功',
 						duration: 2000,
-						mask: false,
-						icon: 'none'
-					});
-					return;
-				}
-				if (this.type == 'alipay') {
-					console.log('alipay');
-					data.name = this.alipay_name;
-					data.alipay_code = this.alipay_code;
-					zfbData.phone = this.alipay_phone;
-				}
-				if (this.type == 'bank') {
-					data.name = this.bank_people;
-					data.bankname = this.bank_name;
-					data.cardnum = this.bank_code;
-				}
-				this.load = true
-				getMoneyType(zfbData)
-					.then(e => {
-						console.log(e, "eeeeee");
-						// uni.showToast({
-						// 	title: '修改成功',
-						// 	duration: 2000,
-						// 	position: 'top'
-						// });
-						// setTimeout(() => {
-						// 	uni.navigateBack({
-						// 		url:'pages/user/shopJf'
-						// 	})
-						// },1500)
-						this.$api.prePage().dataUp()
-
-					})
-					.catch(e => {
-						console.log(e);
-					});
-				extractCash(data)
-					.then(e => {
-						console.log(e, 'eeeeee');
-						this.loadData()
-						uni.showToast({
-							title: '提交成功',
-							duration: 2000,
-							position: 'top'
-						});
-						this.withdrawal = ''
-					})
-					.catch(e => {
-						this.load = false
-						console.log();
+						position: 'top'
 					});
-			}
+					this.withdrawal = '';
+				})
+				.catch(e => {
+					this.load = false;
+					console.log();
+				});
 		}
-	};
+	}
+};
 </script>
 
 <style lang="scss">
-	page {
-		height: 100%;
-		background: #111111;
+page {
+	height: 100%;
+	background: #111111;
+}
+
+.content-money {
+	padding: 30rpx 0;
+	background: #111111;
+}
+
+.flex {
+	background-color: #111111;
+	text-align: center;
+	margin: 0 30rpx;
+	border-radius: $border-radius-sm;
+
+	.buttom {
+		font-size: $font-lg;
+		width: 50%;
 	}
 
-	.content-money {
-		padding: 30rpx 0;
-		background: #111111;
+	.butt {
+		font-size: 26rpx;
+		font-weight: normal;
+		color: #a581ff;
+		line-height: 42rpx;
 	}
 
-	.flex {
+	.interval {
+		width: 2px;
+		height: 60rpx;
 		background-color: #111111;
-		text-align: center;
-		margin: 0 30rpx;
-		border-radius: $border-radius-sm;
-
-		.buttom {
-			font-size: $font-lg;
-			width: 50%;
-		}
+	}
 
-		.butt {
-			font-size: 26rpx;
-			font-weight: normal;
-			color: #A581FF;
-			line-height: 42rpx;
-		}
+	.icon {
+		background-size: 100%;
+		font-size: 42rpx;
+		color: #fff;
+		font-weight: bold;
+		background-repeat: no-repeat;
+		background-position: center;
+	}
 
-		.interval {
-			width: 2px;
-			height: 60rpx;
-			background-color: #111111;
-		}
+	.text {
+		color: #fff;
+	}
+}
 
-		.icon {
-			background-size: 100%;
-			font-size: 42rpx;
-			color: #fff;
-			font-weight: bold;
-			background-repeat: no-repeat;
-			background-position: center;
-		}
+.row-box {
+	margin-top: 30rpx;
+	padding: 20rpx 30rpx;
+	background: #111111;
 
-		.text {
-			color: #fff;
-		}
+	.title {
+		font-size: $font-base + 2rpx;
+		color: #fff;
 	}
 
-	.row-box {
-		margin-top: 30rpx;
-		padding: 20rpx 30rpx;
+	.row {
+		display: flex;
+		align-items: center;
+		position: relative;
+		height: 80rpx;
 		background: #111111;
+		color: #fff;
 
-		.title {
-			font-size: $font-base + 2rpx;
+		.tit {
+			flex-shrink: 0;
+			width: 40rpx;
+			font-size: 30rpx;
 			color: #fff;
 		}
 
-		.row {
-			display: flex;
-			align-items: center;
-			position: relative;
-			height: 80rpx;
-			background: #111111;
+		.input {
+			flex: 1;
+			font-size: 30rpx;
 			color: #fff;
-
-			.tit {
-				flex-shrink: 0;
-				width: 40rpx;
-				font-size: 30rpx;
-				color: #fff;
-			}
-
-			.input {
-				flex: 1;
-				font-size: 30rpx;
-				color: #fff;
-			}
-
-
-			.iconlocation {
-				font-size: 36rpx;
-				color: #fff;
-			}
-
-			.buttom {
-
-				color: #A581FF;
-			}
 		}
-	}
 
-	.add-btn {
-		&.modified {
-			color: #ffffff;
+		.iconlocation {
+			font-size: 36rpx;
+			color: #fff;
 		}
 
-		&.up {
-			background: $bgBaseBg;
-			color: #fff;
+		.buttom {
+			color: #a581ff;
 		}
+	}
+}
+
+.add-btn {
+	&.modified {
+		color: #ffffff;
+	}
 
+	&.up {
+		background: $bgBaseBg;
+		color: #fff;
+	}
+	color: #ffd395;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	width: 690rpx;
+	height: 80rpx;
+	margin: 0 auto;
+	margin-top: 30rpx;
+	font-size: $font-lg;
+	border-radius: 10rpx;
+	// box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);
+}
+
+.list {
+	padding-left: 30rpx;
+	margin-top: 30rpx;
+	// background-color: #ffffff;
+	background: #111111;
+
+	.box {
 		display: flex;
 		align-items: center;
-		justify-content: center;
-		width: 690rpx;
-		height: 80rpx;
-		margin: 0 auto;
-		margin-top: 30rpx;
-		font-size: $font-lg;
-		border-radius: 10rpx;
-		// box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);
-	}
+		width: 100%;
+		height: 120rpx;
+		border-bottom: 1px solid $border-color-light;
 
-	.list {
-		padding-left: 30rpx;
-		margin-top: 30rpx;
-		// background-color: #ffffff;
-		background: #111111;
+		.icon {
+			font-size: 48rpx;
+			padding-right: 20rpx;
 
-		.box {
-			display: flex;
-			align-items: center;
-			width: 100%;
-			height: 120rpx;
-			border-bottom: 1px solid $border-color-light;
-
-			.icon {
-				font-size: 48rpx;
-				padding-right: 20rpx;
-
-				.icon-img {
-					height: 50rpx;
-					width: 50rpx;
-				}
+			.icon-img {
+				height: 50rpx;
+				width: 50rpx;
 			}
+		}
 
-			.iconweixin1 {
-				color: #18bf16;
-			}
+		.iconweixin1 {
+			color: #18bf16;
+		}
 
-			.iconzhifubao {
-				color: #08aaec;
-			}
+		.iconzhifubao {
+			color: #08aaec;
+		}
 
-			.title-box {
-				flex-grow: 1;
-				text-align: left;
+		.title-box {
+			flex-grow: 1;
+			text-align: left;
 
-				.title {
-					font-size: $font-base + 2rpx;
-					color: $font-color-base;
-				}
+			.title {
+				font-size: $font-base + 2rpx;
+				color: $font-color-base;
+			}
 
-				.node {
-					font-size: $font-sm;
-					color: $font-color-light;
-				}
+			.node {
+				font-size: $font-sm;
+				color: $font-color-light;
 			}
 		}
 	}
-
-	/deep/ .uni-radio-input {
-		width: 45rpx;
-		height: 45rpx;
+}
+
+/deep/ .uni-radio-input {
+	width: 45rpx;
+	height: 45rpx;
+}
+
+.row {
+	display: flex;
+	align-items: center;
+	position: relative;
+	padding: 0 30upx;
+	height: 110upx;
+
+	background: #111111;
+
+	.tit {
+		flex-shrink: 0;
+		width: 250upx;
+		font-size: 30upx;
+		color: #fff;
 	}
 
-	.row {
-		display: flex;
-		align-items: center;
-		position: relative;
-		padding: 0 30upx;
-		height: 110upx;
-
-		background: #111111;
-
-		.tit {
-			flex-shrink: 0;
-			width: 250upx;
-			font-size: 30upx;
-			color: #fff;
-		}
-
-		.input {
-			flex: 1;
-			font-size: 30upx;
-			color: #fff;
-		}
-
-		.iconlocation {
-			font-size: 36upx;
-			color: $font-color-light;
-		}
+	.input {
+		flex: 1;
+		font-size: 30upx;
+		color: #fff;
 	}
 
-	.tip {
-		padding: 20rpx;
-		color: #fd3b39;
+	.iconlocation {
+		font-size: 36upx;
+		color: $font-color-light;
 	}
+}
 
-	.loading {
-		background: #999;
-	}
+.tip {
+	padding: 20rpx;
+	color: #fd3b39;
+}
+
+.loading {
+	background: #999;
+}
 </style>

BIN
static/img/mybank.png


BIN
static/img/zfb.png