auditPage.vue 14.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
<template>
	<view class="">
		<!-- 农作物 -->
		<view class="" v-if="type==1">
			<view class="">
				<u-navbar title="卖家信息详情" @rightClick="rightClick" :autoBack="true">
				</u-navbar>
			</view>
			<!-- 顶部轮播图 -->
			<view class="swiper">
				<u-swiper :list="list6" @change="e => currentNum = e.current" :autoplay="true"				indicatorStyle="right: 20px" height="375" radius="0rpx">
					<view slot="indicator" class="indicator-num">
						<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list6.length }}</text>
					</view>
				</u-swiper>
			</view>
			<!-- 页面内容 -->
			<view class="main">
				<view class="content">
					<view class="name">玉米</view>
					<view class="numCard flexA">
						<view class="yieldCard flexC">
							<view class="yieldCardtitle">预计作物产量</view>
							<view class="yieldCardnum">100公斤/亩</view>
						</view>
						<view class="yieldCardB flexC">
							<view class="yieldCardtitle">种植面积</view>
							<view class="yieldCardnum">100亩</view>
						</view>
					</view>
					<view class="flexJ">
						<view class="flexA">
							<view class="ftitle">秸秆是否出售:</view>
							<view class="btitle">是</view>
						</view>
						<view class="flexA" style="margin-right: 32rpx;">
							<view class="ftitle">秸秆状态:</view>
							<view class="btitle">已打包</view>
						</view>
					</view>
					<view class="flexA time">
						<view class="ftitle">收获时间:</view>
						<view class="btitle">2022-09-21</view>
					</view>
					<view class="flexA">
						<view class="fimg">
							<img src="/static/ic_10@2x.png" alt="">
						</view>
						<view class="ftitle">手机:</view>
						<view class="btitle">156****0180</view>
					</view>
					<view class="flexA address">
						<view class="fimg">
							<img src="/static/ic_12@2x.png" alt="">
						</view>
						<view class="ftitle">地址:</view>
						<view class="btitle">天津市西青区花苑鑫茂科技园C1座</view>
					</view>
				</view>
			</view>
			<!-- 按钮  1审核中 2 审核通过 3申请查看手机号 4申请未通过 -->
			<view class="but flexC" @click="changeMask" v-if="status==3">
				<view class="buttitle">
					申请查看卖家手机号
				</view>
			</view>
			<view class="but flexC" v-if="status==1">
				<view class="butImg">
					<img src="/static/312312@2x.png" alt="">
				</view>
				<view class="buttitle">
					审核中
				</view>
			</view>
			<view class="but flexC" v-if="status==2">
				<view class="butImg">
					<img src="/static/312312@2x.png" alt="">
				</view>
				<view class="buttitle">
					审核通过
				</view>
			</view>
			<view class="flexA Submit" v-if="status==4">
				<view class="suBut flexC">
					重新提交
				</view>
				<view class="suButt flexC">
					<view class="suButtimg">
						<img src="/static/ic-close@2x.png" alt="">
					</view>
					<view class="">
						审核未通过
					</view>
				</view>
			</view>
			<!-- 遮罩 -->
<!-- 			<view class="Mask" v-if="isMask==true">
			<view class="card">
				<view class="cardName">申请查看卖家手机号</view>
				<view class="flexJ cardItem">
					<view class="cardtitle">您的姓名</view>
					<view class="inp">
						<input type="text" placeholder="请输入2-6位汉字" maxlength="6">
					</view>
				</view>
				<view class="flexJ cardItem">
					<view class="cardtitle">您的年龄</view>
					<view class="inp">
						<input type="number" placeholder="请输入您的年龄">
					</view>
				</view>
				<view class="flexJ cardItem">
					<view class="cardtitle">身份证号</view>
					<view class="inp">
						<input type="number" placeholder="请输入您的18位身份证号码" maxlength="18">
					</view>
				</view>
				<view class="agreement flexA">
					<view class="agreementImgt" v-if="agShow==true" @click="changeAgShow">
						<img src="/static/ic-error@2x.png" alt="">
					</view>
					<view class="agreementImg" v-else @click="changeAgShow">
						<img src="/static/ic-error@2x.png" alt="">
					</view>
					<view class="agreementTitle">
						同意<text>《用户协议》</text>和<text>《隐私协议》</text>
					</view>
				</view>
			<view class="butSubmit flexC" @click="changeMask">
				提交
			</view>
		</view>
	</view> -->
	</view>
	
	<!-- 土地 -->
	<view class="" v-else>
		<view class="">
			<u-navbar title="卖家信息详情" @rightClick="rightClick" :autoBack="true">
			</u-navbar>
		</view>
		<!-- 顶部轮播图 -->
		<view class="swiper">
			<u-swiper :list="list6" @change="e => currentNum = e.current" :autoplay="true" indicatorStyle="right: 20px"
				height="375" radius="0rpx">
				<view slot="indicator" class="indicator-num">
					<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list6.length }}</text>
				</view>
			</u-swiper>
		</view>
		<!-- 页面内容 -->
		<view class="main">
			<view class="content">
				<view class="cm">
					<view class="name">土地详情</view>
					<view class="numCard">
						<view class="yieldCardnum">100亩</view>
						<view class="yieldCardtitle">种植面积</view>
					</view>
				</view>

				<view class="flexA">
					<view class="fimg">
						<img src="/static/ic_10@2x.png" alt="">
					</view>
					<view class="ftitles">手机:</view>
					<view class="btitle">156****0180</view>
				</view>

				<view class="flexA addresss">
					<view class="fimg">
						<img src="/static/ic_12@2x.png" alt="">
					</view>
					<view class="ftitle">地址:</view>
					<view class="btitle">天津市西青区花苑鑫茂科技园C1座</view>
				</view>
			</view>
			<view class="detailed">
				详细地址详细地址详细地址详细地址详细地址详细地址
			</view>
		</view>

		<view class="miaoshu ">
			<view class="bottom flexA">
				<view class="line"></view>
				<view class="tudi">土地描述</view>
			</view>
			<view class="detaileda">
				请填写您的土地信息,土地附近是否有水源,土地目前的状态(在用
				未用),交通是否便利,地上物信息(是否有房屋、大棚、其他作物等)请填写您的土地信息,土地附近是否有水源,土地目前的状态(在用、未用),交通是否便利,地上物信息(是否有房屋、大棚其他作物等)请填写您的土地信息,土地附近是否有水源,土地目前的状态(在用、未用),交通是否便利,地上物信息(是否有房屋、大棚、其他作物等)请填写您的土地信息,土地附近是否有水源,土地目前的状态(在用
				未用),交通是否便利,地上物信息(是否有房屋、大棚、其他作物等)请填写您的土地信息,土地附近是否有水源,土地目前的状态(在用、未用),交通是否便利,地上物信息(是否有房屋、大棚其他作物等)请填写您的土地信息,土地附近是否有水源,土地目前的状态(在用、未用),交通是否便利,地上物信息(是否有房屋、大棚、其他作物等)
			</view>
		</view>

		<!-- 按钮  1审核中 2 审核通过 3申请查看手机号 4申请未通过 -->
		<view class="but flexC" @click="changeMask" v-if="status==3">
			<view class="buttitle">
				申请查看卖家手机号
			</view>
		</view>
		<view class="but flexC" v-if="status==1">
			<view class="butImg">
				<img src="/static/312312@2x.png" alt="">
			</view>
			<view class="buttitle">
				审核中
			</view>
		</view>
		<view class="but flexC" v-if="status==2">
			<view class="butImg">
				<img src="/static/312312@2x.png" alt="">
			</view>
			<view class="buttitle">
				审核通过
			</view>
		</view>
		<view class="flexA Submit" v-if="status==4">
			<view class="suBut flexC">
				重新提交
			</view>
			<view class="suButt flexC">
				<view class="suButtimg">
					<img src="/static/ic-close@2x.png" alt="">
				</view>
				<view class="">
					审核未通过
				</view>
			</view>
		</view>
		<!-- 遮罩 -->
<!-- 		<view class="Mask" v-if="isMask==true">
			<view class="card">
				<view class="cardName">申请查看卖家手机号</view>
				<view class="flexJ cardItem">
					<view class="cardtitle">您的姓名</view>
					<view class="inp">
						<input type="text" placeholder="请输入2-6位汉字" maxlength="6">
					</view>
				</view>
				<view class="flexJ cardItem">
					<view class="cardtitle">您的年龄</view>
					<view class="inp">
						<input type="number" placeholder="请输入您的年龄">
					</view>
				</view>
				<view class="flexJ cardItem">
					<view class="cardtitle">身份证号</view>
					<view class="inp">
						<input type="number" placeholder="请输入您的18位身份证号码" maxlength="18">
					</view>
				</view>
				<view class="agreement flexA">
					<view class="agreementImgt" v-if="agShow==true" @click="changeAgShow">
						<img src="/static/ic-error@2x.png" alt="">
					</view>
					<view class="agreementImg" v-else @click="changeAgShow">
						<img src="/static/ic-error@2x.png" alt="">
					</view>
					<view class="agreementTitle">
						同意<text>《用户协议》</text>和<text>《隐私协议》</text>
					</view>
				</view>
				<view class="butSubmit flexC" @click="changeMask">
					提交
				</view>
			</view>
		</view> -->
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status: 1,
				isMask: false, // 遮罩判断
				agShow: false, //是否同意协议
				// current:1,
				currentNum: '', //轮播图
				list6: [
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
				],
				type: 0
			}
		},
		onLoad(e) {
			this.status = e.status
			this.type = e.type
			console.log(this.status);
		},
		methods: {
			// 返回上一页
			rightClick() {
				uni.navigateBack({})
			},
			// 控制遮罩
			changeMask() {
				this.isMask = !this.isMask
			},
			// 控制同意协议显示
			changeAgShow() {
				this.agShow = !this.agShow
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F3F7;
	}

	// 修改顶部nav背景颜色
	.u-navbar__content.data-v-75dad532 {
		background-color: transparent !important;
	}

	.u-status-bar {
		background-color: transparent !important;
	}

	.u-navbar__content__title {
		color: #fff !important;
	}

	.u-icon__icon {
		color: #fff !important;
	}

	// 轮播图
	.indicator-num {
		padding: 2px 0;
		background-color: rgba(0, 0, 0, 0.35);
		border-radius: 100px;
		width: 35px;
		@include flex;
		justify-content: center;

		&__text {
			color: #FFFFFF;
			font-size: 12px;
		}
	}

	.swiper {
		// z-index: 999;
	}

	.main {
		width: 686rpx;
		margin: 32rpx auto;
	}

	.mainTwo {
		width: 686rpx;
		margin: 32rpx auto;
		background-color: #FFFFFF;
		border-radius: 16rpx;
	}

	.name {
		color: rgba(0, 0, 0, 0.9);
		font-size: 44rpx;
		font-weight: 700;
	}

	// .numCard {
	// 	margin: 32rpx 0rpx;
	// }
	.yieldCard {
		width: 336rpx;
		// height: 192rpx;
		padding: 56rpx 0;
		border-radius: 16rpx;
		opacity: 1;
		background: rgba(247, 255, 255, 1);
		margin-right: 14rpx;
		flex-direction: column;
	}

	.yieldCardB {
		width: 336rpx;
		height: 192rpx;
		border-radius: 16rpx;
		opacity: 1;
		background: rgba(254, 248, 245, 1);
		flex-direction: column;
	}

	.yieldCardtitle {
		color: rgba(0, 0, 0, 0.4);
		font-size: 24rpx;
	}

	.yieldCardnum {
		color: rgba(230, 61, 39, 1);
		font-size: 32rpx;
		font-weight: 700;
		margin-top: 4rpx;
	}

	.ftitle {
		color: rgba(0, 0, 0, 0.4);
		font-size: 28rpx;
	}

	// .ftitles {
	// 	 color: rgba(0,0,0,0.4);
	// 	 font-size: 28rpx;
	// 	 margin-bottom: 24rpx;
	// }
	.btitle {
		color: rgba(0, 0, 0, 0.9);
		font-size: 28rpx;
	}

	.time {
		margin: 32rpx 0rpx;
	}

	.fimg>img {
		width: 21.35rpx;
		height: 21.35rpx;
		opacity: 1;
	}

	.address {
		margin-top: 32rpx;
	}

	.addresss {
		margin-top: 24rpx;
	}

	.but {
		position: fixed;
		bottom: 68rpx;
		left: 32rpx;
		width: 686rpx;
		height: 88rpx;
		border-radius: 28rpx;
		opacity: 1;
		background: linear-gradient(90deg, rgba(25, 204, 205, 1) 0%, rgba(99, 217, 218, 1) 100%);
	}

	.butImg>img {
		width: 22.67rpx;
		height: 26.67rpx;
		opacity: 1;
	}

	.buttitle {
		color: rgba(255, 255, 255, 1);
		font-size: 32rpx;
		font-weight: 700;
		margin-left: 4rpx;
	}

	.Mask {
		position: fixed;
		top: 0;
		left: 0;
		width: 750rpx;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		z-index: 10;
	}

	.card {
		margin: 432rpx auto;
		width: 622rpx;
		height: 544rpx;
		border-radius: 32rpx;
		opacity: 1;
		background: rgba(255, 255, 255, 1);
		// padding: 48rpx 0 36rpx;
	}

	.cardName {
		padding-top: 48rpx;
		margin: 0rpx auto;
		width: 294rpx;
		// height: 44rpx;
		color: rgba(0, 0, 0, 0.9);
		font-size: 32rpx;
		font-weight: 700;
	}

	.cardItem {
		margin: 12rpx 48rpx;
		padding-top: 24rpx;
	}

	.cardtitle {
		color: rgba(0, 0, 0, 0.9);
		font-size: 28rpx;
	}

	.inp>input {
		text-align: right;
	}

	.agreement {
		padding: 38rpx 48rpx;
	}

	.agreementImg {
		width: 32rpx;
		height: 32rpx;
	}

	.agreementImgt {
		width: 32rpx;
		height: 32rpx;
	}

	.agreementImgt>img {
		width: 32rpx;
		height: 32rpx;
		opacity: 1;
		background-color: #62CDCE;
		border-radius: 50%;
	}

	.agreementImg>img {
		width: 32rpx;
		height: 32rpx;
		opacity: 1;
	}

	.agreementTitle {
		color: rgba(0, 0, 0, 0.6);
		font-size: 24rpx;
		margin-left: 12rpx;
	}

	.agreementTitle>text {
		color: rgba(33, 83, 213, 1);
	}

	.butSubmit {
		width: 514rpx;
		height: 76rpx;
		border-radius: 90rpx;
		opacity: 1;
		background: rgba(98, 205, 206, 1);
		margin: 0rpx auto;
		color: rgba(255, 255, 255, 1);
		font-size: 28rpx;
		font-weight: 700;
	}

	.Submit {
		position: fixed;
		bottom: 68rpx;
		left: 32rpx;
		width: 686rpx;
		height: 88rpx;
	}

	.suBut {
		width: 328rpx;
		height: 88rpx;
		border-radius: 28rpx;
		opacity: 1;
		background: linear-gradient(90deg, rgba(25, 204, 205, 1) 0%, rgba(99, 217, 218, 1) 100%);
		color: rgba(255, 255, 255, 1);
		font-size: 32rpx;
		font-weight: 700;
	}

	.suButt {
		width: 328rpx;
		height: 88rpx;
		border-radius: 28rpx;
		opacity: 1;
		border: 2rpx solid #62CDCE;
		color: rgba(98, 205, 206, 1);
		font-size: 32rpx;
		font-weight: 700;
		margin-left: 30rpx;
	}

	.suButtimg {
		height: 32rpx;
	}

	.suButtimg>img {
		width: 32rpx;
		height: 32rpx;
		opacity: 1;
		background: rgba(255, 255, 255, 0.01);
	}

	.cm {
		display: flex;
		justify-content: space-between;
		margin-bottom: 24rpx;
	}

	.detailed {
		width: 556rpx;
		height: 80rpx;
		color: rgba(0, 0, 0, 0.4);
		font-size: 28rpx;
		overflow: hidden;
		margin-left: 100rpx;
	}

	.miaoshu {
		// width: 750rpx;
		height: 238rpx;
		padding: 32rpx 28rpx 20rpx 36rpx;
		box-sizing: border-box;

		.bottom {
			margin-bottom: 24rpx;
		}

		.line {
			width: 4rpx;
			height: 24rpx;
			border-radius: 4rpx;
			background: rgba(98, 205, 206, 1);
			// margin-left: -4rpx;
		}

		.tudi {
			color: rgba(0, 0, 0, 0.9);
			font-size: 32rpx;
			font-weight: 700;
			margin-left: 16rpx;
		}
	}

	.detaileda {
		height: 238rpx;
		color: rgba(0, 0, 0, 0.4);
		font-size: 28rpx;
		overflow: hidden;
	}
</style>