<template>
  <view class="opening_remarks">
    <view class="opening_remarks_body">
      <view class="opening_remarks_server_img">
        <image
          src="https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KN5XRPWKSMDDHRJTY4F2TG1G.png"
          mode="heightFix"
        />
      </view>
      <view class="opening_remarks_server_info">
        <view class="label">
          {{
            useModel?.quickQuestionsData?.value?.greeting_text ||
            '我是管家-邻邻，有什么可以帮助您的吗？'
          }}
        </view>
        <view class="group_btn">
          <view
            v-for="(i, index) in useModel?.quickQuestionsData?.value?.questions"
            :key="`item_${index}`"
            class="group_btn_item"
            @click="handleSendFast(i)"
          >
            {{ i }}
          </view>
        </view>
      </view>
    </view>
  </view>
</template>
<script setup lang="ts">
import useModel from '../model'
const emit = defineEmits(['handleQuickFast'])
const handleSendFast = (name: string) => {
  emit('handleQuickFast', name)
}
</script>
