<template>
	<view class="page">
		<navBar title="产品指南" :back="true" color="black" background="white" />

		<view class="con">
			<view class="item" v-for="(item,index) in list" @click="goDetail(item)">
				<image :src="picBase+item.image" mode=""></image>
				<view class="bottom">
					<view class="txt">
						{{item.title}}
					</view>
				</view>
			</view>
		</view>
		<u-loadmore style="" loadmoreText="已经到底啦" color="#CCCCCC" lineColor="#CCCCCC" line />
	</view>
</template>

<script>
	import {
		getGuideDataReq,
	} from '@/api/index/index.js'
	export default {
		components: {

		},
		data() {
			return {
				picUrl: this.$picUrl,
				picBase: this.$picBase,
				list: []
			}
		},
		async onLoad(o) {
			let res = await getGuideDataReq()
			if (res.code == 0) {
				this.list = res.data
			} else {
				uni.showToast({
					title: res.message,
					icon: 'none'
				})
			}
		},
		methods: {
			goDetail(item) {
				uni.navigateTo({
					url: '/pages/index/productLeadDetail/index?item=' + JSON.stringify(item)
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "./index.scss";
</style>