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