<template>
	<page-meta :page-style="themeColor"></page-meta>

	<view class="searchLog_wrapper">
		<z-paging ref="paging" v-model="dataList" @query="queryList" :auto="true" :auto-show-back-to-top="true"
			:hide-empty-view="true">
			<view class="list">

				<view class="item" v-for="(item,index) in dataList" :key="index">
					<view class="con">
						<view class="">
							搜索时间 : {{item.create_time}}
						</view>
						<view class="">
							搜索商品 : {{item.keywords}}
						</view>
					</view>
				</view>

			</view>

		</z-paging>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				dataList: [],
			};
		},
		onLoad(option) {
			this.member_id = option.member_id
		},
		methods: {
			queryList(pageNo, pageSize) {
				this.$api.sendRequest({
					url: '/api/salasman/searchLogStat',
					data: {
						member_id: this.member_id,
						page:pageNo,
						page_size: pageSize,
					},
					success: res => {
						this.$refs.paging.complete(res.data.list);
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.searchLog_wrapper {
		width: 100vw;
		height: 100%;

		.list {
			width: calc(100% - 60rpx);
			height: 100%;
			margin: 0 auto;

			.item {
				width: 100%;
				height: 150rpx;
				margin: 30rpx 0 0;
				background: #fff;
				border-radius: 10rpx;
				box-sizing: border-box;

				.con {
					padding: 30rpx;
				}
			}
		}
	}
</style>