<template>
    <view class="container">
        <!-- 供销社列表 -->
        <view class="rnwdList" v-for="(item, index) in list" :key="index">
            <view @tap="goDetails(item.id, item.type)" class="cooperativeImgBox">
                <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
            </view>
            <view @tap="goDetails(item.id, item.type)" class="cooperativeBox">
                <view class="list">
                    <span class="listTitle">{{ item.titleName }}</span>
                </view>
            </view>
            <em class="iconfont icon-xiangyoujiantou"></em>
        </view>
    </view>
</template>

<script>
import { listServer, getServer, delServer, addServer, updateServer } from '@/api/highFrequencyService/highFrequencyService';
export default {
    data() {
        return {
            list: [
                {
                    titleName:"-",
                    imgUrlList:"-"
                }
            ],
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad(options) {
        this.getList(9);
    },
    methods: {
        /** 查询列表 */
        getList(type) {
            this.loading = true;
            listServer({type: type}).then(response => {
                this.list = response.rows;
            });
        },
        /** 查询详情 */
        goDetails(id, type) {
            uni.navigateTo({
                url: '/pages/specialService/financialInfrastructure/details?id='+id+'&type='+type
            });
        }
    }
};
</script>
<style>
@import './financialInfrastructure.css';
</style>
