<template>
	<view>
		<view class="mlr-36 mt-30 img" @click="goHelp">
			<image src="../../../static/help-banner.png" mode=""></image>
		</view>
		<view class="mlr-36 mt-40 mb-20 size-32 bold">
			常见问题
		</view>
		<u-cell-item :title="item.title" v-for="(item,i) in list" :key="i" @click="goDetails(item.id)"></u-cell-item>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad() {
			this.init()
		},
		methods: {
			init(){//帮助中心
				this.$http('/addons/ddrive/message/notice',{
					category_id: 4
				},"POST").then(data=>{
					console.log(data);
					this.list = data.list_array
				})
			},
			goHelp(){
				uni.navigateTo({
					url:'/pages/my/help/help'
				})
			},
			goDetails(id){
				uni.navigateTo({
					url:'/pages/my/help/details?id=' + id
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	/deep/.u-cell_title{
		font-weight: 400 !important;
	}
	.img{
		image{
			width: 100%;
			height: 300rpx;
		}
	}
</style>
