<template>
	<view class="content">
		<u-cell-group>
			<u-cell size="large" :title="item.title" v-for="(item,index) in list" :key="index" @click="toinfo(item)">
				<view slot="value" class="img">
					<image src="./static/right.png" mode="aspectFill"></image>
				</view>
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	import $api from '@/static/js/api.js'
	export default {
		data() {
			return{
				list: []
			}
		},
		onLoad() {
			this.getlist()
		},
		methods: {
			toinfo(item) {
				uni.navigateTo({
					url: '/pageC/changjian-detail?data=' + encodeURIComponent(JSON.stringify(item))
				})
			},
			getlist() {
				var _this = this
				$api.req({
					url: 'question',
					method: 'GET',
				}, function(res) {
					if(res.code == 10000) {
						_this.list = res.data
					} 
				})
			},
		}
	}
</script>

<style lang="scss">
	.content {
		background: #FFFFFF;
		.img {
			image {
				width: 44rpx;
				height: 44rpx;
			}
		}
	}
</style>