You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							159 lines
						
					
					
						
							3.2 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							159 lines
						
					
					
						
							3.2 KiB
						
					
					
				| <template> | |
| 	<view class="bg"> | |
| 		<!-- <view class="search-box flex-center"> | |
| 			<image src="https://static.ticket.sz-trip.com/tourGuide/images/order/search.png" mode=""></image> | |
| 			<input  type="text" placeholder="输入订单号搜索" v-model="keywords" /> | |
| 			<view class="search-btn" @click="getList"> | |
| 				搜索 | |
| 			</view> | |
| 		</view> --> | |
| 		 | |
| 		<calendarVue :isShowLunar="false" :isShowBeforeDate="false" @changeDate="getList"></calendarVue> | |
| 		 | |
| 		<navigator :url="'/subPackages/order/orderDetail?id=' + item.child_id" class="box" v-for="(item, index) in list" :key="index"> | |
| 			<view class="box-title">订单详情</view> | |
| 			<view class="item"> | |
| 				<view class="title">下单日期:</view> | |
| 				<view class="subtitle">{{item.create_time}}</view> | |
| 			</view> | |
| 			<view class="item"> | |
| 				<view class="title">订单号:</view> | |
| 				<view class="subtitle">{{item.order_id}}</view> | |
| 			</view> | |
| 			<view class="item"> | |
| 				<view class="title">状态:</view> | |
| 				<view class="subtitle"><span>{{item.status_text}}</span></view> | |
| 			</view> | |
| 			<view class="item"> | |
| 				<view class="title">产品类型:</view> | |
| 				<view class="subtitle">{{item.type_id == 1 ? '线路' : '导游'}}</view> | |
| 			</view> | |
| 			<view class="item"> | |
| 				<view class="title">产品名称:</view> | |
| 				<view class="subtitle">{{item.goods_title}}</view> | |
| 			</view> | |
| 			<view class="item"> | |
| 				<view class="title">预定人手机号:</view> | |
| 				<view class="subtitle">{{item.contact_tel}}</view> | |
| 			</view> | |
| 		</navigator> | |
| 		 | |
| 		<view class="empty-text" v-if="list.length == 0"> | |
| 			暂无订单数据 | |
| 		</view> | |
| 	</view> | |
| </template> | |
| 
 | |
| <script> | |
| 	import calendarVue from '../../components/calendar.vue'; | |
| 	export default { | |
| 		components: {calendarVue}, | |
| 		data() { | |
| 			return { | |
| 				list: [], | |
| 				keywords: '', | |
| 				use_date: '', | |
| 			} | |
| 		}, | |
| 		onShow() { | |
| 			if (this.use_date) { | |
| 				this.getList(this.use_date) | |
| 			} | |
| 		}, | |
| 		methods: { | |
| 			getList(date) { | |
| 				this.Post({ | |
| 					use_date: date | |
| 				},'/api/Merchants/search').then(res => { | |
| 					this.list = res.data | |
| 					 | |
| 					this.use_date = date | |
| 					 | |
| 				}) | |
| 			} | |
| 		} | |
| 	} | |
| </script> | |
| 
 | |
| <style lang="scss" scoped> | |
| 	.bg { | |
| 		background: #F5F5F5; | |
| 		min-height: 100vh; | |
| 		padding: 0rpx 26rpx 50rpx; | |
| 	} | |
| 	 | |
| 	.search-box { | |
| 		width: 697rpx; | |
| 		height: 93rpx; | |
| 		background: #FFFFFF; | |
| 		border-radius: 47rpx; | |
| 		padding: 0 40rpx 0 26rpx; | |
| 		 | |
| 		image { | |
| 			width: 42.67rpx; | |
| 			height: 42.67rpx; | |
| 			margin-right: 23rpx; | |
| 		} | |
| 		 | |
| 		input { | |
| 			font-weight: 400; | |
| 			font-size: 27rpx; | |
| 			color: #717171; | |
| 			flex: 1; | |
| 		} | |
| 		 | |
| 		.search-btn { | |
| 			padding-left: 40rpx; | |
| 			line-height: 64rpx; | |
| 			border-left: 1rpx solid #717171; | |
| 			font-weight: 400; | |
| 			font-size: 27rpx; | |
| 			color: #0B898E; | |
| 			margin-left: 23rpx; | |
| 		} | |
| 	} | |
| 	 | |
| 	.box { | |
| 		padding: 50rpx 26rpx; | |
| 		background: #FFFFFF; | |
| 		border-radius: 13rpx; | |
| 		margin-top: 30rpx; | |
| 		 | |
| 		.box-title { | |
| 			text-align: center; | |
| 			font-weight: 500; | |
| 			font-size: 32rpx; | |
| 			color: #000000; | |
| 		} | |
| 		 | |
| 		.item { | |
| 			margin-top: 20rpx; | |
| 			display: flex; | |
| 			 | |
| 			.title { | |
| 				min-width: 200rpx; | |
| 				font-weight: 500; | |
| 				font-size: 28rpx; | |
| 				color: #000000; | |
| 			} | |
| 			 | |
| 			.subtitle { | |
| 				font-weight: 500; | |
| 				font-size: 28rpx; | |
| 				color: #646464; | |
| 				 | |
| 				span { | |
| 					color: #96684F; | |
| 				} | |
| 			} | |
| 		} | |
| 	} | |
| 	 | |
| 	.empty-text { | |
| 		font-weight: 500; | |
| 		font-size: 25rpx; | |
| 		color: #646464; | |
| 		text-align: center; | |
| 		margin: 50rpx 0; | |
| 	} | |
| </style> |