<template>
	<view class="p-home-index g_flex_column_center">
		<view>
			<view class="g_mb_24">
				<g-button btnText='脚本Demo' @clickBtn='goChat("demo")' />
			</view>
			<view class="g_mb_24">
				<g-button btnText='大模型Demo' @clickBtn='goChat("ai")' />
			</view>
			<view class="g_mb_24">
				<g-button btnText='纯文本大模型Demo' @clickBtn='goChat("ai-text")' />
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		methods:{
			goChat($type){
				uni.navigateTo({
					url:'/pages/message/child/chat?type=' + $type
				})
			}
		}
	}
</script>

<style lang="less">
	.p-home-index{
		min-height: 100vh;
		background-color: #f5f5f5;
	}
</style>
