feat: 欢迎提示的交互调整

This commit is contained in:
2025-10-21 19:40:00 +08:00
parent bb7b6d5c35
commit 91b2f4094c
2 changed files with 6 additions and 15 deletions

View File

@@ -18,27 +18,18 @@
</template>
<script setup>
import { SEND_MESSAGE_CONTENT_TEXT } from "@/constant/constant";
import { defineProps } from "vue";
const emits = defineEmits(["replySent"]);
defineProps({
guideWords: {
type: Array,
default: [
"定温泉票",
"定酒店",
"优惠套餐",
"亲子玩法",
"了解交通",
"看看酒店",
"看看美食",
],
default: [],
},
});
const sendReply = (text) => {
emits("replySent", text);
const sendReply = (item) => {
uni.$emit(SEND_MESSAGE_CONTENT_TEXT, item);
};
</script>

View File

@@ -6,7 +6,7 @@
>
<image
class="ip relative"
:src="initPageImages.logoImageUrl"
:src="initPageImages?.logoImageUrl"
mode="aspectFit"
/>
<view
@@ -16,7 +16,7 @@
</view>
</view>
<ChatMoreTips :guideWords="guideWords" @replySent="handleReply" />
<ChatMoreTips :guideWords="guideWords" />
</view>
</view>
</template>