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

View File

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