cabinet.vue 24.6 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 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058
<template>
	<!-- 盒柜子 -->
	<view class="cabinet">
		<!-- 状态栏 -->
		<view class="status_bar"></view>
		<!-- 标头 -->
		<view class="cabinetTitle">
			<image class="cabinetLogo" :src="require('@/static/myBox.png')" mode=""></image>
			<view @click="jumpConversion" class="exchange">
				<image class="shopImg" :src="require('@/static/shop.png')" mode=""></image>
				<span>兑换订单</span>
			</view>
		</view>
		<!-- 选项卡 -->
		<u-tabs-swiper height="100" gutter="40" bar-width="75" bar-height="8" inactive-color="gray"
			class="cabinetTabControl" font-size="30" :bold="false" active-color="black" @change="tabsChange"
			:current="swiperCurrent" ref="tabs" :list="list" :is-scroll="false"></u-tabs-swiper>
		<!-- 滚动提示字体 -->
		<u-notice-bar bg-color="#FFFDEE" color="#97702D" class="scroll" type="warning" :list="listScroll">
		</u-notice-bar>
		<!-- 订单列表-->
		<view class="orderList">
			<!-- 全部订单 -->
			<view class="orderBoxAll">
				<!--待提货-->
				<view class="orderSingle" v-for="el in staySend" :key="el.id" v-show="swiperCurrent==0">
					<!-- 信息 -->
					<view class="orderDetail" v-if="el.useIntegration==null">
						<!-- 商品图片 -->
						<img class="orderPicture" :src="el.boxPic" alt="">
						<!-- 商品标题 -->
						<view class="orderTitle">
							<p>{{el.boxName}}</p>
							<span>{{$u.timeFormat(el.createTime, 'yyyy/mm/dd hh:MM:ss')}}</span>
						</view>
						<!-- 待提货 -->
						<view class="awaitBox">
							<view class="await">待提货</view>
						</view>
					</view>

					<!-- 订单货物 -->
					<view class="orderCommodity" v-if="el.useIntegration==null">
						<ul class="orderCommodityList">
							<li v-for="(item,index) in el.orderItemList" :key="index">
								<img :src="item.productPic" alt="">
							</li>
						</ul>
					</view>
					<!-- 商品兑换物品 -->
					<view class="orderCommodity" v-if="el.useIntegration!=null">
						<view class="orderShopList">
							<img  :src="el.orderItemList[0].productPic" alt="">
							<p>{{el.orderItemList[0].productName}}</p>
							<span>待提货</span>
						</view>
					</view>
					<!-- 发货 -->
					<view class="orderDeliver">
						<!-- 价格 -->
						<view class="orderPrice" >
							<span v-if="el.useIntegration==null" class="small">¥</span>{{el.boxPrice}}
							<span v-if="el.useIntegration!=null" class="reminder"><span>*</span> 该商品为兑换商品,不能兑换成幸运石</span>
						</view>
						<!-- 按钮发货 -->
						<view class="btnDeliver" @click="navSubmit(el.id)">
							立即发货
						</view>

						<!-- 回收 -->
						<view class="recycle" @click="recycle(el)" v-if="el.useIntegration==null">
							<image class="magic" :src="require('@/static/Bitmap.png')" mode=""></image>
							<span>回收成幸运石</span>
						</view>
					</view>
				</view>

				<!-- 待发货 -->
				<view class="orderSingle" v-for="el in stayPut" :key="el.id" v-show="swiperCurrent==1">
					<!-- 信息 -->
					<view class="orderDetail">
						<!-- 商品图片 -->
						<img class="orderPicture" :src="el.boxPic" alt="">
						<!-- 商品标题 -->
						<view class="orderTitle">
							<p>{{el.boxName}}</p>
							<span>{{$u.timeFormat(el.createTime, 'yyyy/mm/dd hh:MM:ss')}}</span>
						</view>
						<!-- 待提货 -->
						<view class="awaitBox">
							<view class="await">待发货</view>
						</view>
					</view>

					<!-- 订单货物 -->
					<view class="orderCommodity">
						<ul class="orderCommodityList">
							<li v-for="(item,index) in el.orderItemList" :key="index">
								<img :src="item.productPic" alt="">
							</li>
						</ul>
					</view>
					<!-- 发货 -->
					<view class="orderDeliver">
						<!-- 价格 -->
						<view class="orderPrice">
							<span class="small">¥</span>{{el.boxPrice}}
						</view>
						<!-- 按钮发货 -->
						<view class="btnDeliver1">
							等待收货
						</view>

						<!-- 回收 -->
						<!-- <view class="recycle" @click="recycle(el)">
							<image class="magic" :src="require('@/static/Bitmap.png')" mode=""></image>
							<span>回收成幸运石</span>
						</view> -->
					</view>
				</view>

				<!-- 已完成 -->
				<view class="orderSingle" v-for="el in accomplishOrder" :key="el.id" v-show="swiperCurrent==2">
					<!-- 信息 -->
					<view class="orderDetail">
						<!-- 商品图片 -->
						<img class="orderPicture" :src="el.boxPic" alt="">
						<!-- 商品标题 -->
						<view class="orderTitle">
							<p>{{el.boxName}}</p>
							<span>{{$u.timeFormat(el.createTime, 'yyyy/mm/dd hh:MM:ss')}}</span>
						</view>
						<!-- 待提货 -->
						<view class="awaitBox">
							<view class="await">已完成</view>
						</view>
					</view>

					<!-- 订单货物 -->
					<view class="orderCommodity">
						<ul class="orderCommodityList">
							<li v-for="(item,index) in el.orderItemList" :key="index">
								<img :src="item.productPic" alt="">
							</li>
						</ul>
					</view>
					<!-- 发货 -->
					<view class="orderDeliver">
						<!-- 价格 -->
						<view class="orderPrice">
							<span class="small">¥</span>{{el.boxPrice}}
						</view>
						<!-- 按钮发货 -->
						<view class="btnDeliver1" @click="navSubmit(el.id)">
							已收货
						</view>

						<!-- 回收 -->
						<!-- 	<view class="recycle" @click="recycle(el)">
							<image class="magic" :src="require('@/static/Bitmap.png')" mode=""></image>
							<span>回收成幸运石</span>
						</view> -->
					</view>
				</view>
			</view>
		</view>
		<!-- 内容为空 -->
		<view class="contentEmpty" v-if="!orderEmpty">
			<view class="iconEmpty">
				<image class="iconEmptyImg" :src="require('@/static/empty.png')" mode=""></image>
				<span>空空如也</span>
			</view>
		</view>

		<!-- 下拉列表回收 -->
		<view class="Details">
			<u-popup :mask-close-able="false" v-model="show" mode="bottom" :mask="true" width="750rpx"
				close-icon-color="#FFFFFF" :closeable="true" close-icon-size="60" close-icon="close-circle">

				<!-- 回收物品盒子 -->
				<view class="recycleBox">
					<!-- 滚动视图 -->
					<scroll-view class="scrollBox" :scroll-y="true" :show-scrollbar="true">
						<!-- 头部 -->
						<view class="recycleBoxHeader">
							回收一旦完成将不可逆,操作请留意
						</view>
						<!-- 标题 -->
						<view class="recycleBoxTitle">
							<view class="recycleBoxSize">
								<p v-if="accomplish">确认回收</p>
								<p v-if="!accomplish">回收完成</p>
								<span>幸运石只可用于在商城兑换商品,请确认后进行操作</span>
							</view>
						</view>
						<!-- 回收物品 -->
						<view class="recycleGoods" v-if="accomplish">
							<!-- 每个物品 -->
							<view class="Goods" v-for="el in recycleId.orderItemList" :key="el.id">
								<!-- 信息 -->
								<view class="orderDetail" v-if="recycleId.orderItemList">
									<!-- 商品图片 -->
									<img class="orderPicture" :src="el.productPic" alt="">
									<!-- 商品标题 -->
									<view class="orderTitle">
										<p>{{el.productName}}</p>
									</view>
									<!-- 待提货 -->
									<view class="awaitBox">
										x 1
									</view>
								</view>
							</view>


						</view>

						<!-- 回收已完成 -->
						<view class="accomplish" v-if="!accomplish">
							<image class="accomplishImg" :src="require('@/static/money.png')" mode=""></image>
							<view class="income">
								<image :src="require('@/static/Bitmap.png')" mode=""></image>
								<span>{{money}}</span>
								已入账
							</view>
							<view class="remind">
								您可使用幸运石在商城中 兑换您喜爱的商品,如需查询幸运石余额请移步至[我的]查看
							</view>
							<view class="btnAccomplish" @click="btnAccomplish">
								完成
							</view>
						</view>
					</scroll-view>
					<!-- 确认回收 -->
					<view class="affirm" v-if="accomplish">
						<view class="leftSize">
							<view class="quantity">
								<p>回收魔石数量:</p>
								<image :src="require('@/static/Bitmap.png')" mode=""></image>
								<span>{{money}}</span>
							</view>
							<p class="number">共5件商品</p>
						</view>
						<view class="btnRecycle" @click='btnRecycle'>
							确认回收
						</view>
					</view>
				</view>
			</u-popup>
		</view>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	export default {
		name: "Cabinet",
		data() {
			return {
				// 选项卡
				list: [{
						name: '待提货'
					}, {
						name: '待发货'
					}, {
						name: '已完成'
					},
					// {
					// 	name: '已回收'
					// },
				],
				// 选项卡下标
				swiperCurrent: 0,

				listScroll: [
					'滚动信息条',
					'产品送达时间请参考个人中心物流时间'
				],
				// 下拉物品
				show: false,
				//回收完成
				accomplish: true,
				// 数组
				orderArr: ["待提货", "待提货", "待提货", "待提货", "待提货", "待提货", "已回收"],
				recycleId: "",
				money: 0,
				// 全部订单
				// listOrder: [],
				// 待发货
				staySend: null,
				// 待收货
				stayPut: null,
				// 已完成
				accomplishOrder: null,
				//空空如也
				orderEmpty: false
			}
		},
		methods: {
			// tabs通知swiper切换
			async tabsChange(index) {
				this.swiperCurrent = index;
				switch (index) {

					case 0:
						await this.$store.dispatch("gainOrderAll", {
							status: 1,
							isToken: uni.getStorageSync("isToken")
						});
						// 获取待发货订单
						this.staySend = this.$store.state.order.orderStatus
						if (this.staySend == null) {
							this.orderEmpty = false
						} else {
							this.orderEmpty = true
						}
						break;
					case 1:
						await this.$store.dispatch("gainOrderAll", {
							status: 2,
							isToken: uni.getStorageSync("isToken")
						});
						// 获取待收货订单
						this.stayPut = this.$store.state.order.orderStatus
						if (this.stayPut == null) {
							this.orderEmpty = false
						} else {
							this.orderEmpty = true
						}
						break;
					case 2:
						await this.$store.dispatch("gainOrderAll", {
							status: 3,
							isToken: uni.getStorageSync("isToken")
						});
						// 获取已完成订单
						this.accomplishOrder = this.$store.state.order.orderStatus
						if (this.accomplishOrder == null) {
							this.orderEmpty = false
						} else {
							this.orderEmpty = true
						}
						break;
					default:
						// n不为1,也不为2 执行的代码块
				}

			},
			//跳转至兑换页面、
			jumpConversion() {
				// this.$Router.push({
				// 	name: "conversionorder"
				// })
				this.$refs.uToast.show({
					title: '敬请期待',
					type: 'info'
				})
			},
			//跳转提交订单页
			navSubmit(isId) {
				this.$Router.push({
					path: "/pages/cabinet/submit/submit",
					query: {
						isID: isId
					}
				})
			},
			// 回收物品下拉栏
			recycle(el) {
				console.log(el);
				this.accomplish = true
				this.show = !this.show
				this.recycleId = el
				this.money = 0
				el.orderItemList.forEach(ele => {
					this.money += 100 * parseInt(ele.productPrice)
				})
			},

			// 确认回收物品
			async btnRecycle() {
				this.accomplish = false
				try {
					await this.$store.dispatch("gainRecycle", {
						isToken: uni.getStorageSync("isToken"),
						isId: this.recycleId.id
					})
					this.$refs.uToast.show({
						title: '回收成功',
						type: 'success',
					})
					//更新
					this.$store.dispatch("gainInfo", uni.getStorageSync("isToken"))
					//获取订单a
					await this.$store.dispatch("gainOrderAll", {
						status: 1,
						isToken: uni.getStorageSync("isToken")
					});
					this.staySend = this.$store.state.order.orderStatus
					if (this.staySend == null) {
						this.orderEmpty = false
					} else {
						this.orderEmpty = true
					}
				} catch (e) {
					//TODO handle the exception
					console.log(e)
				}

			},

			// 回收完成按钮
			btnAccomplish() {
				this.accomplish = true
				this.show = !this.show
			},

		},
		async onShow() {
			// 获取待发货订单
			await this.$store.dispatch("gainOrderAll", {
				status: 1,
				isToken: uni.getStorageSync("isToken")
			});

			this.staySend = this.$store.state.order.orderStatus
			if (this.staySend == null) {
				this.orderEmpty = false
			} else {
				this.orderEmpty = true
			}
			// 获取待收货订单
			await this.$store.dispatch("gainOrderAll", {
				status: 2,
				isToken: uni.getStorageSync("isToken")
			});


			this.stayPut = this.$store.state.order.orderStatus
			

			// 获取已完成订单
			await this.$store.dispatch("gainOrderAll", {
				status: 3,
				isToken: uni.getStorageSync("isToken")
			});

			this.accomplishOrder = this.$store.state.order.orderStatus
			
		}

	}
</script>
<style>
	page {
		background-color: #F7F7F7;
	}
</style>

<style lang="scss" scoped>
	* {
		margin: 0;
		padding: 0;
	}

	.cabinet {
		width: 750rpx;
		display: flex;
		align-items: center;
		flex-direction: column;
		background-color: #F7F7F7;

		// 状态栏
		.status_bar {
			background-color: #ffffff;
			height: var(--status-bar-height);
			width: 100%;
		}

		// 标头
		.cabinetTitle {
			width: 750rpx;
			height: 300rpx;
			display: flex;
			justify-content: space-between;
			padding: 150rpx 50rpx 0;
			background-color: white;
			border-bottom: 1px solid rgba(211, 211, 211, 0.2);

			.cabinetLogo {
				width: 300rpx;
				height: 110rpx;
			}

			.exchange {
				width: 150rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				.shopImg {
					width: 60rpx;
					height: 64rpx;
					margin-bottom: 10rpx;

				}
			}


		}

		// 选项卡
		.cabinetTabControl {

			// background-color: sandybrown!important;
			// 选项条设置
			::v-deep.u-tabs-scroll-box {
				justify-content: flex-start !important;

				// 部落
				.UEl_0 {
					width: 140rpx !important;
					flex: 0 !important;
					margin-left: 20rpx !important;
				}

				//待提现
				.UEl_1 {
					width: 140rpx !important;
					flex: 0 !important;
					margin-left: 10rpx !important;
				}

				//已完成
				.UEl_2 {
					width: 140rpx !important;
					flex: 0 !important;
					margin-left: 10rpx !important;
				}

				//已回收
				.UEl_3 {
					width: 140rpx !important;
					flex: 0 !important;
					margin-left: 10rpx !important;
				}

				.u-scroll-bar {
					margin-left: 18rpx !important;
				}
			}

		}

		.scroll {
			width: 750rpx !important;
		}

		//订单
		.orderList {
			width: 750rpx;
			display: flex;
			justify-content: center;

			//全部订单
			.orderBoxAll {
				display: flex;
				flex-direction: column;
				margin-top: 30rpx;
				background-color: white;
				width: 680rpx;
				background-color: #F7F7F7;

				// 每一个订单
				.orderSingle {
					background-color: white;
					border-radius: 15rpx;
					width: 680rpx;
					display: flex;
					margin-bottom: 25rpx;

					align-items: center;
					flex-direction: column;

					// 信息
					.orderDetail {
						width: 640rpx;
						height: 240rpx;
						display: flex;
						// background-color: red;
						justify-content: space-between;
						align-items: center;

						//商品图片
						.orderPicture {
							width: 200rpx;
							height: 200rpx;
						}

						// 商品标题
						.orderTitle {
							width: 300rpx;
							height: 200rpx;
							display: flex;
							flex-direction: column;
							justify-content: space-between;

							p {
								font-size: 14px;
								overflow: hidden;
								/* 设置元素为弹性伸缩盒 */
								display: -webkit-box;
								/* 设置弹性盒纵向排列 */
								-webkit-box-orient: vertical;
								/* 你要显示多少行 而且设置这个属性后,不需要单独设置ellipsis就可以显示为省略号*/
								-webkit-line-clamp: 2;
							}

							span {
								font-size: 13px;
								color: darkgray;
							}
						}

						//待提货
						.awaitBox {
							width: 110rpx;
							height: 200rpx;
							display: flex;
							align-items: flex-start;

							.await {
								text-align: center;
								font-size: 15px;
								color: #D34431;
							}
						}

					}

					// 订单货物
					.orderCommodity {
						width: 680rpx;
						height: 150rpx;
						display: flex;
						align-items: center;
						justify-content: center;

						.orderCommodityList {
							width: 640rpx;
							display: flex;
							justify-content: space-between;
							align-items: center;

							li {
								width: 120rpx;
								height: 120rpx;
								list-style: none;

								img {
									width: 120rpx;
									height: 120rpx;
								}
							}
						}
						//幸运石
						.orderShopList {
							width: 640rpx;
							display: flex;
							justify-content: space-between;
							align-items: center;
							img{
								width: 120rpx;
								height: 120rpx;
							}
							p{
								width: 300rpx;
								height: 120rpx;
							}
							span{
								width: 110rpx;
								height: 120rpx;
								text-align: center;
								font-size: 15px;
								color: #D34431;
							}
						}
					}

					// 发货
					.orderDeliver {
						width: 640rpx;
						height: 130rpx;
						display: flex;
						justify-content: space-between;
						align-items: center;

						// 价格
						.orderPrice {
							font-size: 24px;
							font-weight: 700;

							.small {
								font-weight: 200;
								font-size: 13px;
							}
							.reminder{
								span{
									color: red;
								}
								color: darkgray;
								font-size: 12px;
							}
						}

						// 发货按钮
						.btnDeliver {
							width: 170rpx;
							height: 75rpx;
							line-height: 75rpx;
							font-size: 15px;
							color: white;
							text-align: center;
							border-radius: 5px;
							background-image: linear-gradient(to bottom right, #FFCB93, #F72934);
						}

						// 已发货
						.btnDeliver1 {
							width: 170rpx;
							height: 75rpx;
							line-height: 75rpx;
							font-size: 20px;
							color: gray;
							text-align: center;
							border-radius: 5px;
						}


						// 回收
						.recycle {
							width: 250rpx;
							height: 78rpx;
							border: 1px solid gainsboro;
							display: flex;
							align-items: center;
							justify-content: space-around;
							font-size: 15px;
							border-radius: 5px;
							padding-left: 12rpx;

							.magic {
								width: 20rpx;
								height: 40rpx;
							}
						}
					}


				}
			}


		}

		//内容为空
		.contentEmpty {
			width: 750rpx;
			height: 600rpx;
			background-color: #F7F7F7;
			display: flex;
			justify-content: center;
			align-items: center;

			.iconEmpty {
				width: 250rpx;
				height: 350rpx;
				display: flex;
				align-items: center;
				flex-direction: column;

				// background-color: green;	
				.iconEmptyImg {
					width: 250rpx;
					height: 250rpx;
				}

				span {
					display: block;
					width: 250rpx;
					height: 100rpx;
					text-align: center;
					line-height: 100rpx;
					font-size: 16px;
					color: gray;
				}
			}
		}


		// 下拉商品内容
		// 下拉商品
		.Details {

			// 关闭按钮
			::v-deep .u-drawer-content {
				// background-color: red!important;

				.u-close {
					top: -85rpx !important;
					right: 35rpx !important;
				}

			}

			// 上边框颜色
			::v-deep .u-drawer-content-visible {
				// overflow: hidden;
				// border-radius: 20rpx !important;

				.u-drawer__scroll-view {
					// border-top: 25rpx solid #CA81F7 !important;
					// border-radius: 20rpx !important;
					// border-image: linear-gradient(#CA81F7, #79ECFF, #FFE7BE) 250 50 20 20 !important;

				}
			}


			// 回收盒子
			.recycleBox {
				width: 750rpx;
				height: 950rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				// 滚动视图
				.scrollBox {
					position: relative;
					width: 750rpx;
					height: 1000rpx;
					display: flex;
					align-items: center;
					flex-direction: column;

					// 头部
					.recycleBoxHeader {
						width: 750rpx;
						height: 80rpx;
						background: #FFFDEE;
						border-radius: 20px 20rpx 0 0;
						text-align: center;
						line-height: 80rpx;
						color: #97702D;
						font-size: 17px;
					}

					//标题
					.recycleBoxTitle {
						width: 750rpx;
						height: 160rpx;
						display: flex;
						justify-content: center;
						align-items: center;

						// background-color: green;
						.recycleBoxSize {
							width: 700rpx;
							height: 100rpx;

							// background-color: red;
							p {
								font-size: 20px;
								margin-bottom: 20rpx;
							}

							span {
								font-size: 13x;
								color: darkgray;
							}
						}

					}

					// 回收盒子
					.recycleGoods {
						width: 750rpx;
						display: flex;
						flex-direction: column;
						align-items: center;
						background-color: white;
						margin-bottom: 170rpx;

						.Goods {
							background-color: #F7F7F7;
							width: 700rpx;
							display: flex;
							margin-bottom: 25rpx;
							align-items: center;
							flex-direction: column;

							// 信息
							.orderDetail {
								width: 640rpx;
								height: 240rpx;
								display: flex;
								// background-color: red;
								justify-content: space-between;
								align-items: center;

								//商品图片
								.orderPicture {
									width: 200rpx;
									height: 200rpx;
									border: 1px solid yellow;
								}

								// 商品标题
								.orderTitle {
									width: 300rpx;
									height: 200rpx;
									display: flex;
									flex-direction: column;
									justify-content: space-between;

									p {
										font-size: 14px;
										overflow: hidden;
										/* 设置元素为弹性伸缩盒 */
										display: -webkit-box;
										/* 设置弹性盒纵向排列 */
										-webkit-box-orient: vertical;
										/* 你要显示多少行 而且设置这个属性后,不需要单独设置ellipsis就可以显示为省略号*/
										-webkit-line-clamp: 2;
									}

									span {
										font-size: 13px;
										color: darkgray;
									}
								}

								//商品数量
								.awaitBox {}

							}



						}
					}

					// 完成
					.accomplish {
						width: 750rpx;
						height: 800rpx;
						display: flex;
						flex-direction: column;
						align-items: center;

						.accomplishImg {
							width: 270rpx;
							height: 270rpx;
							margin-top: 80rpx;
						}

						.income {
							margin-top: 50rpx;
							display: flex;
							align-items: center;
							font-size: 20px;

							image {
								width: 20rpx;
								height: 40rpx;
								margin-right: 10rpx;
							}
						}

						.remind {
							width: 600rpx;
							text-align: center;
							color: darkgray;
							font-size: 14px;
						}

						.btnAccomplish {
							width: 270rpx;
							height: 100rpx;
							margin-top: 20rpx;
							background: linear-gradient(140deg, #FFCB93 0%, #F72934 100%);
							text-align: center;
							line-height: 100rpx;
							box-shadow: 0px 4px 0px 0px rgba(146, 45, 45, 0.5000);
							font-size: 16px;
							color: white;
							border-radius: 10rpx;
						}
					}

				}

				// 确认回收
				.affirm {
					width: 750rpx;
					padding: 0 15rpx;
					height: 150rpx;
					position: fixed;
					bottom: 0;
					background-color: white;
					display: flex;
					align-items: center;
					justify-content: space-between;

					.leftSize {
						display: flex;
						flex-direction: column;
						justify-content: space-around;
						font-size: 16px;

						.quantity {
							display: flex;
							align-items: center;

							span {
								font-size: 22px;
							}

							image {
								width: 20rpx;
								height: 40rpx;
								margin: 0 15rpx;
							}
						}

						.number {
							color: darkgray;
						}
					}

					// 确认回收
					.btnRecycle {
						width: 170rpx;
						height: 75rpx;
						line-height: 75rpx;
						font-size: 15px;
						color: white;
						text-align: center;
						border-radius: 5px;
						background-image: linear-gradient(to bottom right, #FFCB93, #F72934);
					}
				}
			}
		}

	}
</style>