<template>
	<view>
		<template name="list">
			<view class="pdlr30 mt20">
				<view class="list-title ddflex">{{contentObj.name}}<view class="list-more ddflex" @tap="jumpUrl('topic/contentList/contentList?title='+contentObj.name+'&code='+contentObj.code)">全部<image src="../../static/pages/images/more.png"></image></view></view>
				<view class="rec">
					<navigator :url="'/topic/content/content?id=' + item.id+'&code='+contentObj.code" hover-class="none" class="li ddflex" v-for="(item,index) in pageList" :key="index">
						<view class="fflex">
							<view class="rec-tit tovers">{{item.title}}</view>
							<view class="ddflex">
								<!-- <view class="author ddflex"><image src="../../static/pages/images/zbgw.png" mode="aspectFill"></image>欧衡</view> -->
								<view class="rec-time">{{item.createDate}}</view>
							</view>
						</view>
						<image :src="item.pic" mode="aspectFill" class="rec-img"></image>
					</navigator>
				</view>
			</view>
		</template>
	</view>
</template>

<script>
	const app = getApp();
	const req = require("../../utils/request.js");

	export default {
		data() {
			return {
				picUrlss: req.public.picUrls
			};
		},

		components: {},
		props: {
			pageList: Array,//文章列表
			contentObj: Object,
			config: Object
		},
		watch: {},
		mounted() {
		},
		methods: {
			jumpUrl(url){
				app.globalData.openPage(url)
			}

		}
	};
</script>
<style>
	@import "./index.css";
</style>