feat: 欢迎提示的交互调整
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user