Explorar o código

编辑器-热点-根据热点类型显示相应的热点效果设置区域标题

任一存 %!s(int64=2) %!d(string=hai) anos
pai
achega
31e0e3623e

+ 13 - 13
packages/qjkankan-editor/src/lang/_en.json

@@ -543,8 +543,6 @@
       "work_preview": "View Project",
       "new_blank": "Open in a new window",
       "cancel": "Cancel",
-
-
       "no_link": "Link not generated, please edit your project to include material",
       "had_created": "You have created your project with success!",
       "goto_preview": "View",
@@ -552,7 +550,6 @@
       "had_created_but_no_link": "New project has been created successfully, but refreshing the project list failed; please try again later.",
       "delete_work": "Delete project",
       "comfirm_delete": "Confirm to delete the project?"
-
     },
     "components":{
       "prev":"Previous",
@@ -697,10 +694,6 @@
     "coverVideoOrder":"出现顺序",
     "coverVideoOrderTit1":"开场图片前",
     "coverVideoOrderTit2":"开场图片后",
-
-
-
-
     "auto_pano": "Rotation",
     "enter_auto": "Enter the rotation mode (takes 3 mins to complete per rotation)",
     "set_bgm": "Set the BGM",
@@ -880,12 +873,19 @@
     "article": "文章",
     "pdf": "PDF",
     "phone": "电话",
-    "scene_errortxt": "Please select a scene",
-    "audio_errortxt": "Please select audio",
-    "video_errortxt": "Please choose a video",
-    "image_errortxt": "Please select pictures",
-    "link_errortxt": "Please enter the hyperlink",
-    "textarea_errortxt": "Please enter the text",
+    "hotspot_type_specific_settings_title": {
+      "scene": "热点场景",
+      "image": "热点图片",
+      "video": "热点视频",
+      "audio": "热点音频",
+      "link": "热点链接",
+      "textarea": "热点文本",
+      "tag": "",
+      "imgText": "热点图文",
+      "article": "热点文章",
+      "pdf": "热点PDF",
+      "phone": "热点电话"
+    },
     "icon_size": "Icon Size",
     "unit": "times",
     "add_audio": "Add audio",

+ 13 - 14
packages/qjkankan-editor/src/lang/_zh.json

@@ -543,7 +543,6 @@
       "work_preview": "查看作品",
       "new_blank": "新窗口打开",
       "cancel": "取消",
-
       "no_link": "链接未生成,请编辑作品添加素材",
       "had_created": "您已成功创建作品!",
       "goto_preview": "查看",
@@ -551,11 +550,7 @@
       "had_created_but_no_link": "已成功新建作品,但刷新作品列表失败,请稍后手动刷新。",
       "delete_work": "删除作品",
       "comfirm_delete": "确定要删除作品吗?"
-
-      
-      
     },
-    
     "components":{
       "prev":"上一张",
       "next":"下一张",
@@ -701,9 +696,6 @@
     "coverVideoOrder":"出现顺序",
     "coverVideoOrderTit1":"开场图片前",
     "coverVideoOrderTit2":"开场图片后",
-
-    
-
     "auto_pano": "自动巡游",
     "enter_auto": "进入全景图自动巡游(3分钟完整巡游一次)",
     "set_bgm": "设置背景音乐",
@@ -885,12 +877,19 @@
     "article": "文章",
     "pdf": "PDF",
     "phone": "电话",
-    "scene_errortxt": "请选择场景",
-    "audio_errortxt": "请选择音频",
-    "video_errortxt": "请选择视频",
-    "image_errortxt": "请选择图片",
-    "link_errortxt": "请输入超链接",
-    "textarea_errortxt": "请输入文本",
+    "hotspot_type_specific_settings_title": {
+      "scene": "热点场景",
+      "image": "热点图片",
+      "video": "热点视频",
+      "audio": "热点音频",
+      "link": "热点链接",
+      "textarea": "热点文本",
+      "tag": "",
+      "imgText": "热点图文",
+      "article": "热点文章",
+      "pdf": "热点PDF",
+      "phone": "热点电话"
+    },
     "icon_size": "图标大小",
     "unit": "倍",
     "add_audio": "添加音频",

+ 8 - 1
packages/qjkankan-editor/src/views/hotspot/EditPanel.vue

@@ -105,6 +105,12 @@
         </div>
         
         <div class="effect-setting">
+          <div
+            class="remark-highlight"
+            v-if="$i18n.t(`hotspot.hotspot_type_specific_settings_title.${hotspot.hotspotType}`)"
+          >
+            {{ $i18n.t(`hotspot.hotspot_type_specific_settings_title.${hotspot.hotspotType}`) }}
+          </div>
           <component
             class="effect-setting-component"
             @sceneSelect="handleSceneSelect"
@@ -516,7 +522,8 @@ export default {
     }
     .effect-setting {
       margin-top: 16px;
-      .effect-setting-title {
+      .remark-highlight {
+        margin-top: 16px;
         font-size: 18px;
         color: #FFFFFF;
       }