<template>
	<view class="page">
		
		<navbar
		title="考证咨询"
		/>
		
		
		
		<view class="list">
			<view class="item"
			v-for="(item, index) in list"
			:key="index">
			<!-- 	<view class="title">
					{{item.name}}
				</view> -->
				<view class="uni-color-btn"
							@click="$utils.navigateTo('/pages_order/work/postConsult')">
								{{item.name}}
							</view>
			</view>
		</view>
		
		
		
		
		
		
		<tabber select="2"/>
	</view>
</template>

<script>
	import tabber from '@/components/base/tabbar.vue'
	import { mapGetters } from 'vuex'
	export default {
		components : {
			tabber,
		},
		computed : {
			...mapGetters(['userShop']),
		},
		data() {
			return {
				list:[]
				
			}
		},
		onShow() {
			this.queryCert();
		},
		//滚动到屏幕底部
		onReachBottom() {
		},
		methods: {
			queryCert(){
				this.$api('queryCert',{}, res =>{
					if(res.code == 200){
						this.list = res.result.records;
					}
				})
			},
			// addMaterial(){
			// 	if(this.$utils.verificationAll(this.form,{
			// 		code:'请输入兑换码'
			// 	})) {
			// 		return
			// 	}
			// 	this.$api('addMaterial',this.form, res =>{
			// 		if(res.code == 200){
			// 			uni.showToast({
			// 				title:'兑换成功',
			// 				icon: 'none'
			// 			})	
			// 		}
			// 	})
			// },
			
		}
	}
</script>

<style scoped lang="scss">
	.page{
	}
	
</style>
