lhl 4 years ago
parent
commit
9619de5ae2

+ 110 - 8
pages/purchase/upload.vue

@@ -1,13 +1,43 @@
 <template>
 	<view class="content">
-		<view class="">
-			{{chooseId}}
-		</view>
-		<view class="choose-wrap">
+		<view class="choose-wrap flex">
+			<view class="zftype">
+				支付方式:
+			</view>
 			<picker mode="selector" :range="chooseList" @change="bangTypeChange">
 				<view>{{type || '请选择支付方式'}}</view>
 			</picker>
 		</view>
+		<view class="base-info" v-if="type !== ''">
+			<view class="base-item flex" v-if="type == '微信'">
+				<view class="item-name">微信号</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.wx_no" />
+			</view>
+			<view class="base-item flex" v-if="type == '支付宝'">
+				<view class="item-name">支付宝姓名</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.alipay_name" />
+			</view>
+			<view class="base-item flex" v-if="type == '支付宝'">
+				<view class="item-name">支付宝账号</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.alipay_no" />
+			</view>
+			<view class="base-item flex" v-if="type=='银行卡'">
+				<view class="item-name">开户行</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.account_Bank" />
+			</view>
+			<view class="base-item flex" v-if="type=='银行卡'">
+				<view class="item-name">所属支行</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.bank_branch" />
+			</view>
+			<view class="base-item flex" v-if="type=='银行卡'">
+				<view class="item-name">开户行姓名</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.bank_name" />
+			</view>
+			<view class="base-item flex" v-if="type=='银行卡'">
+				<view class="item-name">银行卡账号</view>
+				<input type="text" value="" class="item-val" placeholder="" v-model="toUser.bank_card" />
+			</view>
+		</view>
 		<view class="tit">
 			上传支付凭证
 		</view>
@@ -33,12 +63,14 @@
 				chooseId: ''
 			}
 		},
-		onload(opt) {
+		onLoad(opt) {
+			console.log(opt)
 			if(opt.id) {
 				this.chooseId = opt.id
 				console.log(this.chooseId,'this.chooseId')
 			}
-			console.log(opt,'dd')
+			this.toUser = JSON.parse(opt.paytype)
+			console.log(this.toUser,'dd')
 		},
 		methods: {
 			bangTypeChange(e) {
@@ -56,10 +88,27 @@
 			},
 			//提交审核
 			evaluationUpload() {
-				evaluationUpload().then( res => {
+				let obj = this
+				evaluationUpload({
+					pay_evaluation: obj.upimg,
+					id: obj.chooseId
+				}).then( res => {
+					uni.showToast({
+						title:'提交成功',
+						duration:2000
+					});
+					setTimeout(() => {
+						uni.navigateBack({
+							
+						})
+					},2000)
+					// this.page = 1
+					// this.list = []
+					// this.loadingType = 'more'
+					// this.loadData()
 					console.log(res,'上传凭证+++++')
 				})
-			}
+			},
 		}
 	}
 </script>
@@ -99,4 +148,57 @@
 		color: #FFFFFF;
 		text-align: center;
 	}
+	.choose-wrap {
+		justify-content: flex-start;
+		padding-left: 30rpx;
+		line-height: 100rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #333333;
+	}
+	.base-info {
+		margin: auto;
+		width: 702rpx;
+		// height: 1106px;
+		background: #FFFFFF;
+		box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+		border-radius: 20rpx;
+	
+		.base-item {
+			border: 1px solid #eee;
+			line-height: 100rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+			color: #333333;
+			padding-left: 25rpx;
+			.avatar {
+				margin: auto;
+				width: 200rpx;
+				height: 200rpx;
+				border-radius: 50%;
+				// background-color: #aaa;
+				image {
+					width: 200rpx;
+					height: 200rpx;
+					border-radius: 50%;
+				}
+			}
+			.item-name {
+				font-weight: bold;
+			}
+			.item-val {
+				display: block;
+				line-height: 100rpx;
+				height: 100rpx;
+				width: 478rpx;
+				font-size: 28rpx;
+				font-family: PingFang SC;
+				font-weight: 400;
+				color: #000;
+			}
+		}
+	
+	}
 </style>

+ 9 - 7
pages/sellout/sellout.vue

@@ -34,7 +34,7 @@
 				<view class="img-wrap" v-if="item.pay_evaluation" @click="lookimg(item.pay_evaluation)">
 					<image :src="item.pay_evaluation" mode=""></image>
 				</view>
-				<view class="" style="color: #0F253A;font-weight: bold;font-size: 26rpx;">
+				<view class="" style="color: #0F253A;font-weight: bold;font-size: 26rpx;" v-else>
 					买家未上传支付凭证
 				</view>
 			</view>
@@ -69,7 +69,7 @@
 			<view class="pop-wrap" style="position: relative;" >
 				<movable-area class="popup-box">
 					<movable-view class="popup-item" :scale="true" direction="all">
-						<image src="chooseImg" mode=""></image>
+						<image :src="chooseImg" mode=""></image>
 					</movable-view>
 				</movable-area>
 				<image src="../../static/icon/close.png" mode="" class="close" style="width: 80rpx;height: 80rpx;" @click="closePup"></image>
@@ -158,8 +158,9 @@
 		},
 		methods: {
 			lookimg(src) {
+				console.log(src,'chooseImg++++++')
 				this.chooseImg = src
-				
+				this.$refs.lookimg.open()
 			},
 			loadData() {
 				let obj = this
@@ -433,12 +434,13 @@
 		overflow: hidden;
 		background-color: #fff;
 		.popup-item {
-			width: 522rpx;
-			height: 800rpx;
+			width: 100%;
+			height: 100%;
+			
 			
 			image {
-				min-height: 605rpx;
-				min-width: 522rpx;
+				width: 100%;
+				// height: 100%;
 			}
 		}
 		

+ 0 - 11
pages/set/userdata.vue

@@ -57,17 +57,6 @@
 				<view class="item-name">银行卡账号</view>
 				<input type="text" value="" class="item-val" placeholder="输入您的银行卡账号" v-model="bank_card" />
 			</view>
-			<!-- <view class="base-item flex">
-				<view class="item-name">出生日期</view>
-				<picker mode="date" @change="bindDateChange">
-					<view class="item-val" v-if="birthday">{{birthday}}</view>
-					<view class="item-val" v-else style="color: #999;">输入您的出生日期</view>
-				</picker>
-			</view> -->
-			<!-- <view class="base-item flex">
-				<view class="item-name">所在城市</view>
-				<input type="text" value="" class="item-val" placeholder="输入您的所在城市" />
-			</view> -->
 		</view>
 		<view class="btn" @click="subInfo">提交保存</view>
 		<view class="btn1" @click="toLogout">退出登录</view>

File diff suppressed because it is too large
+ 312 - 11
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 233 - 11
unpackage/dist/dev/app-plus/app-view.js


Some files were not shown because too many files changed in this diff