SyuanYu 7 kuukautta sitten
vanhempi
commit
e9c6368f06

BIN
src/assets/img/icon/素材-11.png


+ 17 - 11
src/components/Chat.vue

@@ -245,10 +245,13 @@ async function sendMessage(type = "") {
         });
 
         console.log("response", response);
-        if (audioFile.value && type !== "text") {
-          messageSaveMp3(message, response.data.response, response.data.data);
-        } else {
-          messageSave(message, response.data.response, response.data.data);
+
+        if (!isVideoCache) {
+          if (audioFile.value && type !== "text") {
+            messageSaveMp3(message, response.data.response, response.data.data);
+          } else {
+            messageSave(message, response.data.response, response.data.data);
+          }
         }
 
         messageNotInCache(message, response.data.response); // 回傳未收錄問題
@@ -1517,7 +1520,9 @@ async function selectCategory(value, index) {
   //   menuList[0][0].text = "customer_show";
   //   menuList[0][0].value = "叫出真人客服";
   // }
-  else if (value === "秘境花園觀景台") {
+  else if (value === "附近有什麼") {
+    window.open("https://cmm.ai/101-aiv1/#/brand-search", "_blank"); // 另開頁面
+  } else if (value === "秘境花園觀景台") {
     messages.value.push({
       label: "text",
       author: "ai",
@@ -1721,11 +1726,12 @@ let showAnchor = ref(false); // AI 主播影片
 
 const menuList = reactive([
   [
-    {
-      imgSrc: "素材-05.png",
-      text: "customer_show",
-      value: "叫出真人客服",
-    },
+    // {
+    //   imgSrc: "素材-05.png",
+    //   text: "customer_show",
+    //   value: "叫出真人客服",
+    // },
+    { imgSrc: "素材-11.png", text: "what_around", value: "附近有什麼" },
     { imgSrc: "素材-06.png", text: "service_information", value: "服務資訊" },
     { imgSrc: "素材-07.png", text: "shopping_discounts", value: "購物及優惠" },
   ],
@@ -3512,7 +3518,7 @@ async function messageNotInCache(question, answer) {
               <input
                 v-model="userMessage"
                 type="text"
-                placeholder="Type a message..."
+                :placeholder="t('type_message')"
               />
               <button type="submit" class="submit">
                 <img

+ 2 - 0
src/language/en.json

@@ -11,6 +11,8 @@
   "food_souvenirs": "Food & Souvenirs",
   "shopping_discounts": "Shopping and Discounts",
   "service_information": "Service Information",
+  "what_around": "What is around?",
+  "type_message": "Type a message ...",
   "ar_tour": "AR navigation",
   "select_location": "Please select you location for AR navigation",
   "question": "Click me to ask a question",

+ 2 - 0
src/language/ja.json

@@ -11,6 +11,8 @@
   "food_souvenirs": "グルメ/お土産",
   "shopping_discounts": "ショッピングと特典",
   "service_information": "サービス情報",
+  "what_around": "附近有什麼?",
+  "type_message": "請輸入訊息 ...",
   "ar_tour": "ARナビを利用",
   "select_location": "あなたの現在地を選んで、ARナビを利用します。",
   "question": "質問するにはここをクリック",

+ 2 - 0
src/language/ko.json

@@ -11,6 +11,8 @@
   "food_souvenirs": "맛집/기념품",
   "shopping_discounts": "쇼핑 및 혜택",
   "service_information": "서비스 정보",
+  "what_around": "附近有什麼?",
+  "type_message": "請輸入訊息 ...",
   "ar_tour": "進行 AR 導覽",
   "select_location": "請選擇您的位置進行 AR 導覽",
   "question": "질문하려면 클릭하세요",

+ 2 - 0
src/language/zh.json

@@ -11,6 +11,8 @@
   "food_souvenirs": "美食/伴手禮",
   "shopping_discounts": "購物及優惠",
   "service_information": "服務資訊",
+  "what_around": "附近有什麼?",
+  "type_message": "請輸入訊息 ...",
   "ar_tour": "進行 AR 導覽",
   "select_location": "請選擇您的位置進行 AR 導覽",
   "question": "點我問問題",