Merge branch 'fix-109' of https://git.nianxx.cn/zoujing/YGChatCS
# Conflicts: # src/pages/index/components/module/MoreService/index.vue
This commit is contained in:
@@ -273,19 +273,7 @@ const handleReplyText = (text) => {
|
||||
// 是发送指令消息
|
||||
const handleReplyInstruct = async (item) => {
|
||||
await checkToken();
|
||||
// 更多服务
|
||||
if (item.type === "Command.more") {
|
||||
uni.$emit("SHOW_MORE_POPUP");
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.type === "Command.myOrder") {
|
||||
// 订单
|
||||
uni.navigateTo({
|
||||
url: "/pages-order/order/list",
|
||||
});
|
||||
return;
|
||||
}
|
||||
commonType = item.type;
|
||||
// 重置消息状态,准备接收新的AI回复
|
||||
resetMessageState();
|
||||
|
||||
@@ -47,6 +47,11 @@ const itemList = ref([
|
||||
]);
|
||||
|
||||
const sendReply = (item) => {
|
||||
// 更多服务
|
||||
if (item.type === Command.more) {
|
||||
uni.$emit("SHOW_MORE_POPUP");
|
||||
return;
|
||||
}
|
||||
uni.$emit(SEND_MESSAGE_COMMAND_TYPE, item);
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user