jinx 2 år sedan
förälder
incheckning
bf7d23b8ad

+ 4 - 4
public/smart-kankan.html

@@ -34,11 +34,11 @@
             </div>
             </div>
             <div xui_tags></div>
             <div xui_tags></div>
         </div>
         </div>
-        <script src="<%= BASE_URL %><%= VUE_APP_SDK_DIR %>kankan-sdk-deps.js?v=<%= VUE_APP_VERSION %>"></script>
-        <script src="<%= BASE_URL %><%= VUE_APP_SDK_DIR %>kankan-sdk.js?v=<%= VUE_APP_VERSION %>"></script>
+        <!-- <script src="<%= BASE_URL %><%= VUE_APP_SDK_DIR %>kankan-sdk-deps.js?v=<%= VUE_APP_VERSION %>"></script>
+        <script src="<%= BASE_URL %><%= VUE_APP_SDK_DIR %>kankan-sdk.js?v=<%= VUE_APP_VERSION %>"></script> -->
 
 
-        <!-- <script src="http://127.0.0.1:3099/dist/sdk/kankan-sdk-deps.js"></script>
-        <script src="http://127.0.0.1:3099/dist/sdk/kankan-sdk.js"></script> -->
+        <script src="http://127.0.0.1:3099/dist/sdk/kankan-sdk-deps.js"></script>
+        <script src="http://127.0.0.1:3099/dist/sdk/kankan-sdk.js"></script>
         <script>
         <script>
             window.onload = function () {
             window.onload = function () {
                 document.querySelector('.widgets-design-option').style.display = 'block'
                 document.querySelector('.widgets-design-option').style.display = 'block'

+ 14 - 2
src/components/files/TagView.vue

@@ -16,7 +16,7 @@
     </div>
     </div>
 </template>
 </template>
 <script setup>
 <script setup>
-import { ref, onMounted, onBeforeUnmount, computed, inject } from 'vue'
+import { ref, onMounted, onBeforeUnmount, computed, inject, watch } from 'vue'
 
 
 import TagMsg from './content/TagMsg.vue'
 import TagMsg from './content/TagMsg.vue'
 import Comment from './content/Comment.vue'
 import Comment from './content/Comment.vue'
@@ -47,7 +47,16 @@ const setShow = data => {
         slideHeigt.value = document.querySelector('.left-item').offsetHeight
         slideHeigt.value = document.querySelector('.left-item').offsetHeight
     })
     })
 }
 }
-onMounted(() => {
+
+watch(
+    () => notify.value,
+    (val, old) => {
+        if (val) {
+            goFocusTag()
+        }
+    }
+)
+const goFocusTag = () => {
     if (window.kankan) {
     if (window.kankan) {
         window.kankan.TagManager.focusTag(notify.value.sid, {
         window.kankan.TagManager.focusTag(notify.value.sid, {
             direction: 'left',
             direction: 'left',
@@ -62,6 +71,9 @@ onMounted(() => {
             sdk.scene.comeToTag(new THREE.Vector3(pos.x, pos.y, pos.z))
             sdk.scene.comeToTag(new THREE.Vector3(pos.x, pos.y, pos.z))
         })
         })
     }
     }
+}
+onMounted(() => {
+  goFocusTag()
     onResize()
     onResize()
     window.addEventListener('resize', onResize)
     window.addEventListener('resize', onResize)
 })
 })

+ 14 - 14
src/components/files/content/Comment.vue

@@ -219,20 +219,20 @@ const delComment = data => {
 }
 }
 onMounted(() => {
 onMounted(() => {
     getAllComments()
     getAllComments()
-    if (window.kankan) {
-        window.kankan.TagManager.focusTag(notify.value.sid, {
-            direction: 'left',
-            attrs: {
-                width: 0,
-                // height: 400,
-            },
-        })
-    } else if (window.laser) {
-        window.laser.then(sdk => {
-            let pos = notify.value.position
-            sdk.scene.comeToTag(new THREE.Vector3(pos.x, pos.y, pos.z))
-        })
-    }
+    // if (window.kankan) {
+    //     window.kankan.TagManager.focusTag(notify.value.sid, {
+    //         direction: 'left',
+    //         attrs: {
+    //             width: 0,
+    //             // height: 400,
+    //         },
+    //     })
+    // } else if (window.laser) {
+    //     window.laser.then(sdk => {
+    //         let pos = notify.value.position
+    //         sdk.scene.comeToTag(new THREE.Vector3(pos.x, pos.y, pos.z))
+    //     })
+    // }
     nextTick(() => {
     nextTick(() => {
         input$.value.addEventListener('keydown', function (e) {
         input$.value.addEventListener('keydown', function (e) {
             if (e.keyCode == 8) {
             if (e.keyCode == 8) {

+ 14 - 14
src/components/files/content/TagMsg.vue

@@ -156,20 +156,20 @@ onMounted(() => {
         }
         }
     })
     })
 
 
-    if (window.kankan) {
-        window.kankan.TagManager.focusTag(notify.value.sid, {
-            direction: 'left',
-            attrs: {
-                width: 0,
-                // height: 400,
-            },
-        })
-    } else if (window.laser) {
-        window.laser.then(sdk => {
-            let pos = notify.value.position
-            sdk.scene.comeToTag(new THREE.Vector3(pos.x, pos.y, pos.z))
-        })
-    }
+    // if (window.kankan) {
+    //     window.kankan.TagManager.focusTag(notify.value.sid, {
+    //         direction: 'left',
+    //         attrs: {
+    //             width: 0,
+    //             // height: 400,
+    //         },
+    //     })
+    // } else if (window.laser) {
+    //     window.laser.then(sdk => {
+    //         let pos = notify.value.position
+    //         sdk.scene.comeToTag(new THREE.Vector3(pos.x, pos.y, pos.z))
+    //     })
+    // }
 })
 })
 
 
 onBeforeUnmount(() => {})
 onBeforeUnmount(() => {})

+ 7 - 5
src/components/form/SelectList.vue

@@ -114,11 +114,12 @@ li {
             left: -1px;
             left: -1px;
             right: -1px;
             right: -1px;
             top: calc(100% + 4px);
             top: calc(100% + 4px);
-            background: rgba(27, 27, 28, 0.8);
+            background: rgba(27, 27, 28, 0.9);
+            // background: rgb(57, 57, 60, 0.9);
             box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
             box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
             border-radius: 4px 4px 4px 4px;
             border-radius: 4px 4px 4px 4px;
             border: 1px solid #000000;
             border: 1px solid #000000;
-            max-height: 200px;
+            max-height: 250px;
             overflow: hidden;
             overflow: hidden;
             overflow-y: auto;
             overflow-y: auto;
             z-index: 1000;
             z-index: 1000;
@@ -133,6 +134,7 @@ li {
                 > div {
                 > div {
                     display: flex;
                     display: flex;
                     align-items: center;
                     align-items: center;
+                    color:rgba(255, 255, 255, 0.6)
                 }
                 }
             }
             }
         }
         }
@@ -160,8 +162,8 @@ li {
         content: '';
         content: '';
         border: 1px solid #666;
         border: 1px solid #666;
         border-radius: 2px;
         border-radius: 2px;
-        width: 16px;
-        height: 16px;
+        width: 14px;
+        height: 14px;
         position: absolute;
         position: absolute;
         left: 0px;
         left: 0px;
         top: 0;
         top: 0;
@@ -173,7 +175,7 @@ li {
             background-color: #0076f6;
             background-color: #0076f6;
         }
         }
         &::after {
         &::after {
-            left: 4px;
+            left: 3px;
             top: 7px;
             top: 7px;
             position: absolute;
             position: absolute;
             display: table;
             display: table;

+ 2 - 2
src/components/header/Login.vue

@@ -9,14 +9,14 @@
                         <span class="icon">
                         <span class="icon">
                             <i class="iconfont icon-user"></i>
                             <i class="iconfont icon-user"></i>
                         </span>
                         </span>
-                        <input type="text" v-model.trim="username" />
+                        <input type="text" v-model.trim="username" :placeholder="$t('header.inputPhoneNum')" />
                         <div class="tips" v-show="errors.username">{{ errors.username }}</div>
                         <div class="tips" v-show="errors.username">{{ errors.username }}</div>
                     </div>
                     </div>
                     <div class="input">
                     <div class="input">
                         <span class="icon">
                         <span class="icon">
                             <i class="iconfont icon-password"></i>
                             <i class="iconfont icon-password"></i>
                         </span>
                         </span>
-                        <input :type="showpass ? 'text' : 'password'" v-model.trim="password" />
+                        <input :type="showpass ? 'text' : 'password'" v-model.trim="password" :placeholder="$t('header.inputPassword')" />
                         <div class="tips" v-show="errors.password">{{ errors.password }}</div>
                         <div class="tips" v-show="errors.password">{{ errors.password }}</div>
                         <span class="showpass" @click="showpass = !showpass">
                         <span class="showpass" @click="showpass = !showpass">
                             <i class="iconfont" :class="[showpass ? 'icon-log_eye_selected' : 'icon-log_eye_normal']"></i>
                             <i class="iconfont" :class="[showpass ? 'icon-log_eye_selected' : 'icon-log_eye_normal']"></i>

+ 2 - 0
src/locales/zh.json

@@ -12,6 +12,8 @@
   },
   },
   "home.name": "首页",
   "home.name": "首页",
   "header": {
   "header": {
+    "inputPhoneNum": "请输入手机号码",
+    "inputPassword": "请输入密码",
     "passwordText1": "密码不能为空",
     "passwordText1": "密码不能为空",
     "phoneText1": "手机号码不能为空",
     "phoneText1": "手机号码不能为空",
     "phoneText2": "请输入正确手机号",
     "phoneText2": "请输入正确手机号",