<template>
        <!-- 分割线 -->
        <view class="container">
            <view class="rnwdList">
                <view class="list" v-for="(item, index) in indexList1" :key="index" @click="toGovernmentList1">
                    <span class="listTitle">{{ item.titleName }}</span>
                    <view class="onePic" v-if="item.urls!=null&&item.urls.length > 0" v-for="(url, i) in item.urls">
                        <image :src="'http://localhost:88/dev-api'+url" :key="i"></image>
                    </view>
                    <view class="jlSj">
                        <span class="jf">
                            {{ item.createTime }}
                        </span>
                        <view class="ck">
                            <span>
                                <em class="iconfont icon-chakan"></em>
                                {{ item.watchNum }}
                            </span>
                            <span>
                                <em class="iconfont icon-shoucang"></em>
                                {{ item.likeNum }}
                            </span>
                        </view>
                    </view>
                </view>
            </view>
        </view>

</template>

<script>
	import {governmentListMore} from '@/api/information/information.js'
export default {
    data() {
        return {
            indexList1: []
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad(options) {
		this.governmentListMores()
    },
	mounted() {

	},
    methods: {
      toGovernmentList1(){
        uni.navigateTo({
          url: '/pages/toGovernmentList/toGovernmentListDetail'
        });
      },
		governmentListMores(){
			let params = {
			  pageSize: 10,
			  pageNum: 1,
			  type:10,
			  isGovernment:1
			  }
			governmentListMore(params).then(res =>{
				if (res.code==200) {
					this.indexList1=res.rows
				}
			})
		}
    }
};
</script>
<style scoped>
	@import url("./index.css");
</style>
