Kaynağa Gözat

二级市场实人认证

mym 1 yıl önce
ebeveyn
işleme
2ee3533457

+ 12 - 0
pages.json

@@ -402,6 +402,18 @@
 				"enablePullDownRefresh": false
 			}
 
+		}, {
+			"path": "pages/authentication/purchaser/index",
+			"style": {
+				"navigationBarTitleText": "实人认证",
+				"enablePullDownRefresh": false
+			}
+		}, {
+			"path": "pages/authentication/purchaser/info",
+			"style": {
+				"navigationBarTitleText": "填写认证信息",
+				"enablePullDownRefresh": false
+			}
 		}
     ],
 	"tabBar": {

+ 93 - 0
pages/authentication/purchaser/index.vue

@@ -0,0 +1,93 @@
+<template>
+	<view class="cmain">
+		<view v-if="item">
+			<view v-if="item.judgeStatus == 0">
+				<view class="icon">&#xe64d;</view>
+				<view class="title">您的资料已经提交审核</view>
+				<view class="desc">请耐心等待。</view>
+				<button class="btn" @click="go()">重新编辑</button>
+			</view>
+			<view v-if="item.judgeStatus == 1">
+				<view class="icon">&#xe631;</view>
+				<view class="title">审核通过</view>
+				<button class="btn" @click="go()">我的认证信息</button>
+			</view>
+			<view v-if="item.judgeStatus == 2">
+				<view class="icon" style="color: #f44336">&#xe61a;</view>
+				<view class="title">审核不通过</view>
+				<view class="message _error">{{ item.judgeContent }}</view>
+				<button class="btn" @click="go()">重新认证</button>
+			</view>
+		</view>
+		<view v-else>
+			<view class="icon">&#xe64e;</view>
+			<view class="title">你还未实名认证</view>
+			<button class="btn" @click="go()">去认证</button>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			item: {}
+		};
+	},
+	onLoad() {
+		this.getData();
+		uni.$on('purchaserAuth', res => {
+			this.$forceUpdate();
+			this.getData();
+		});
+	},
+	methods: {
+		getData() {
+			let param = {
+				appUserId: this.getUser().id
+			}
+			this.http.request({
+				url: '/level-two-server/app/TbPurchaser/auditStatus',
+				data: param,
+				success: res => {
+					console.log(res.data.data)
+					if (res.data.data) {
+						this.item = res.data.data;
+					}
+				}
+			});
+		},
+		go() {
+			uni.navigateTo({
+				url: '/pages/authentication/purchaser/info'
+			});
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+.cmain {
+	text-align: center;
+	padding: 40px;
+	color: $font-c;
+	.icon {
+		font-size: 150px;
+		color: $main-color;
+	}
+	.title {
+		margin-top: 10px;
+		margin-bottom: 7px;
+	}
+	.message {
+		margin-top: 15px;
+		text-align: left;
+	}
+	.desc {
+		margin-top: -5px;
+	}
+	.btn {
+		margin-top: 30px;
+	}
+}
+</style>

+ 107 - 0
pages/authentication/purchaser/info.vue

@@ -0,0 +1,107 @@
+<template>
+	<view class="cmain">
+		<view class="form_group">
+			<view class="lable re">企业名称</view>
+			<input type="text" placeholder="请输入" v-model="item.name" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">税号</view>
+			<input type="text" placeholder="请输入" v-model="item.dutyParagraph" :disabled="item.judgeStatus==1?true:false"/>
+		</view>
+		<view class="form_group">
+			<view class="lable re">法人姓名</view>
+			<input type="text" placeholder="请输入" v-model="item.corporateName" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">法人身份证号</view>
+			<input type="text" maxlength="18" placeholder="请输入" v-model="item.corporateIdCard" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">联系号码</view>
+			<input type="text" maxlength="11" placeholder="请输入" v-model="item.linkPhone" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">银行编号</view>
+			<input type="text" placeholder="请输入" v-model="item.bankNo" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">开户行</view>
+			<input type="text" placeholder="请输入" v-model="item.bankName" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">银行账号</view>
+			<input type="text" maxlength="16" placeholder="请输入" v-model="item.bankAccount" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">企业地址</view>
+			<input type="text" placeholder="请输入" v-model="item.address" :disabled="item.judgeStatus==1?true:false" />
+		</view>
+		<view class="form_group">
+			<view class="lable re">法人身份证</view>
+			<card v-model="item.pic" pic="../../../static/images/yyzz.png"></card>
+		</view>
+		<view class="form_group">
+			<view class="lable re">营业执照</view>
+			<card v-model="item.pic" pic="../../../static/images/yyzz.png"></card>
+		</view>
+		<button class="btn" @click="save()" v-if="item.judgeStatus != 1">提交审核</button>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			item: {},
+			param: {},
+		};
+	},
+	onLoad(e) {
+		this.param.appUserId = this.getUser().id
+		this.http.request({
+			url: '/level-two-server/app/TbPurchaser/auditStatus',
+			data: this.param,
+			success: res => {
+				if (res.data.data) {
+					this.item = res.data.data;
+					uni.setNavigationBarTitle({ title: '我的认证资料' });
+				} else {
+					uni.setNavigationBarTitle({ title: '填写认证资料' });
+				}
+			}
+		});
+	},
+	methods: {
+		save() {
+			let rule = [
+				{ name: 'name', checkType: 'notnull', errorMsg: '请输入企业名称' },
+				{ name: 'dutyParagraph', checkType: 'notnull', errorMsg: '请输入税号' },
+				{ name: 'corporateName', checkType: 'notnull', errorMsg: '请法人姓名' }
+			];
+			if (!this.verify.check(this.item, rule)) {
+				uni.showModal({ content: this.verify.error, showCancel: false });
+				return false;
+			}
+			this.item.loginUserId = this.getUser().id
+			this.item.businessLicense = "1111"
+			this.http.request({
+				url: '/level-two-server/app/TbPurchaser/identification',
+				method: 'POST',
+				data: this.item,
+				contentType: 'application/json;charset=UTF-8',
+				success: res => {
+					uni.showToast({ title: '提交成功' });
+					uni.$emit('purchaserAuth');
+					uni.navigateBack();
+				}
+			});
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+.btn {
+	margin-top: 25px;
+}
+</style>

+ 0 - 96
pages/market/one/merchant/address/address.vue

@@ -1,96 +0,0 @@
-<template>
-	<view class="list">
-		<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item)">
-			<view class="address">
-				<view class="con">
-					<view class="title omit">{{ item.address }} </view>
-					<view class="desc">
-						<text>{{item.name}}</text>
-						<text>{{item.phone}}</text>
-					</view>
-				</view>
-				<view class="icon">&#xe8f2;</view>
-				<view class="clear"></view>
-			</view>
-		</view>
-		<view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
-		<u-empty v-if="!loadMore && list.length == 0"></u-empty>
-	</view>
-</template>
-
-<script>
-export default {
-	data() {
-		return {
-			select: false,
-			list: [],
-			param: { pageNo: 1, pageSize: 10 },
-			loadMore: true
-		};
-	},
-	onLoad(e) {
-		this.select = e.select || false;
-		this.getData();
-		uni.$on('address', res => {
-			this.refresh();
-		});
-	},
-	methods: {
-		getData() {
-			this.http.request({
-				url: '/transport-server/app/TbFavoriteContacts/getAppList',
-				data: this.param,
-				loading: 'false',
-				success: res => {
-					this.loadMore = parseInt(res.data.pageCount) > this.param.pageNo;
-					this.list.push(...res.data.data);
-				}
-			});
-		},
-		detail(item) {
-			uni.$emit('one-address', item);
-			uni.navigateBack();
-		},
-		//刷新数据
-		refresh() {
-			this.loadMore = true;
-			this.param.pageNo = 1;
-			this.list = [];
-			this.getData();
-		}
-	},
-	//下拉刷新
-	onPullDownRefresh() {
-		setTimeout(() => {
-			this.refresh();
-			uni.stopPullDownRefresh();
-		}, 1000);
-	},
-	//上拉加载
-	onReachBottom() {
-		if (this.loadMore) {
-			this.param.pageNo++;
-			this.getData();
-		}
-	},
-	onNavigationBarButtonTap() {
-		uni.navigateTo({ url: 'add' });
-	}
-};
-</script>
-
-<style lang="scss">
-page {
-	background-color: $pg;
-}
-.list {
-	padding: 12px;
-	.item {
-		padding: 5px;
-		color: $font-c;
-		background-color: white;
-		border-radius: 10px;
-		margin-bottom: 10px;
-	}
-}
-</style>

+ 20 - 3
pages/personal/personal.vue

@@ -7,7 +7,12 @@
 		</view>
 		<view class="list animated fadeInDown">
 			<!--只有外籍商户和收购商才需要手动认证-->
-			<view class="message _error" @click="go('/pages/authentication/index')" v-if="(user.userType == 3 || user.userType == 5) && user.auth == 0">
+			<view class="message _error" @click="go('/pages/authentication/index')" v-if="user.userType == 5 && user.auth == 0">
+				<text class="icon">&#xe64e;</text>
+				<text>你还未认证,请先认证</text>
+				<text class="icon" style="float: right">&#xe8f2;</text>
+			</view>
+			<view class="message _error" @click="go('/pages/authentication/purchaser/index')" v-if="user.userType == 3 && user.auth == 0">
 				<text class="icon">&#xe64e;</text>
 				<text>你还未认证,请先认证</text>
 				<text class="icon" style="float: right">&#xe8f2;</text>
@@ -90,6 +95,14 @@
 						</view>
 					</view>
 				</view>
+				<view class="msn" @click="go('/pages/authentication/purchaser/info')">
+					<view class="out">
+						<view class="int">
+							<view class="icon ioc" style="background-color: #E0FFFF; color: #00BFFF">&#xe660;</view>
+							<view class="tit">我的认证</view>
+						</view>
+					</view>
+				</view>
 			</view>
 			<!--外籍商户-->
 			<view class="menu" v-if="user.userType == 5">
@@ -112,7 +125,7 @@
 				<view class="msn" @click="go('/pages/authentication/index')">
 					<view class="out">
 						<view class="int">
-							<view class="icon ioc" style="background-color: #f0dcfc; color: #b064d8">&#xe628;</view>
+							<view class="icon ioc" style="background-color: #E0FFFF; color: #00BFFF">&#xe660;</view>
 							<view class="tit">我的认证</view>
 						</view>
 					</view>
@@ -175,10 +188,14 @@ export default {
 			}
 		},
 		go(url) {
-			if (!this.hasAuth()) {
+			if (!this.hasAuth() && this.user.userType == 5) {
 				uni.navigateTo({ url: '/pages/authentication/index' });
 				return;
 			}
+			if(!this.hasAuth() &&  this.user.userType == 3) {
+				uni.navigateTo({ url: '/pages/authentication/purchaser/index' });
+				return;
+			}
 			uni.navigateTo({ url: url });
 		},
 		exitLogin() {