<template>
	<view class="fireBashWrapper">
		
		<block>
			<view class="" style="margin-top:0">
				<view class="cu-list menu-avatar ">
					<view class="cu-item" v-for="(item,index) in this.getData" :key="index"  @tap="goDetail(item)">
						
						<view class="cu-avatar">
							<image class="image-bg" src="/static/fire-base1.png" />
						</view>
						
						<view class="content">
							<view class="pro-title">
								<view class="cut">{{item.title}}</view>
							</view>
							<view class="pro-des  ">
								<view class="text-cut">
									{{item.author}}
								</view>
							</view>
							<view class="pro-date">{{item.release_time}}</view>
						</view>
						
					</view>
				</view>
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				getData:[]
			};
		},
		onLoad:function(option){
			this.getFireBaseList({'company_code':uni.getStorageSync('selectedCode')})
		
		},
		methods: {
			
			
			// 列表数据请求
			async getFireBaseList(params = {}) {
				const res = await this.$myRequest({
					url: 'KnowledgeBase/getKnowledgeBaseList',
					data:params,
					showLoading: true
				})
				this.getData=res.data.data;
				console.log(this.getData)
			},

			
			// 页面跳转
			
			goDetail(item){
				uni.navigateTo({
					url: '/pages/info/fireBashDetail/fireBashDetail?id='+item.id+'&title='+item.title,
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
				
			}
		}
	}
</script>

<style lang="scss">

	.processList{
		position:static;
	}
	
</style>
