wenliming преди 2 години
родител
ревизия
ca75ce6641
променени са 2 файла, в които са добавени 10 реда и са изтрити 11 реда
  1. 5 7
      src/view/iframe/publish/components/follow-input.vue
  2. 5 4
      src/view/iframe/tab-group/tab-group.vue

+ 5 - 7
src/view/iframe/publish/components/follow-input.vue

@@ -167,11 +167,11 @@ const onblur = (params, index) => {
     console.log(params, index)
 }
 
-const onInput = debounce(function(params, index) {
+const onInput = (params, index) => {
     currentIptIndex.value = index;
     emits("setUser", {index: index, name: params.name})
     getTwitterUsers(params.name)
-}, 500) 
+}
 
 const onKeydown = (params, index) => {
     // setIptWidth(index);
@@ -219,10 +219,8 @@ const rectClick = (event) => {
     }
 }
 
-const getTwitterUsers = (query, cb) => {
-    if(query.indexOf('@') > -1) {
-        return;
-    }
+const getTwitterUsers =  debounce(function(query, cb) {
+    query = query.replace("@", "");
     searchTwitterUser({
         params: {
             name : query
@@ -234,7 +232,7 @@ const getTwitterUsers = (query, cb) => {
         cb && cb(res);
         console.log('searchTwitterUser',res)
     })
-}
+}, 500)
 
 const selectedUser = (params, index) => {
     emits("setUser", {index: currentIptIndex.value, name: params.screenName});

+ 5 - 4
src/view/iframe/tab-group/tab-group.vue

@@ -15,13 +15,14 @@
                             <div class="icon-nft-wrapper">
                                 <el-popover
                                     :width="340"
-                                    placement="right"
+                                    placement="right-start"
                                     trigger="hover"
                                     popper-style="background: #FFFFFF;
                                         box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
                                         border-radius: 20px;
                                         padding: 20px;
-                                        box-sizing: border-box;">
+                                        box-sizing: border-box;
+                                        margin-top: -1px">
                                     <template #reference>
                                         <img v-if="item.nftItem" :src="item.nftItem.imagePath" class="icon-nft" @click.stop="">
                                     </template>
@@ -44,7 +45,7 @@
                                 {{item.nickName}}
                             </div>
                             <div class="screen-name">
-                                {{item.screenName}}
+                                @{{item.screenName}}
                             </div>
                         </div>
                         <div class="post-content" v-html="item.textContent"></div>
@@ -377,11 +378,11 @@ html, body, #app {
                     }
 
                     .nick-name, .screen-name {
-                        font-weight: 600;
                         font-size: 15px;
                     }
 
                     .nick-name {
+                        font-weight: 600;
                         color: #000;
                         margin-right: 8px;
                     }