wenliming il y a 2 ans
Parent
commit
f5643513e2

+ 2 - 1
src/view/iframe/treasure-hunt/components/invite-friends.vue

@@ -268,7 +268,7 @@ const clickCopy = () => {
       box-sizing: border-box;
 
       .invite-friends-content-head {
-        margin-bottom: 20px;
+        margin-bottom: 18px;
         padding: 0 6px;
         box-sizing: border-box;
 
@@ -281,6 +281,7 @@ const clickCopy = () => {
           font-weight: 400;
           font-size: 12px;
           color: #7A7A7A;
+          line-height: 15px;
         }
 
       }

+ 6 - 6
src/view/iframe/treasure-hunt/components/invite-list.vue

@@ -14,15 +14,14 @@
     </div>
 
     <div class="invited-user-info" @mouseenter="invitedItemMouseenter()" @mouseleave="invitedListMouseleave($event)"
-    @click="clickItem(hoverInvitedUserInfo)"
       v-if="hoverInvitedUserInfo.userInfo">
       <div class="left">
-        <img class="avatar" :src="hoverInvitedUserInfo.userInfo.avatarUrl" />
+        <img class="avatar" @click="clickItem(hoverInvitedUserInfo)" :src="hoverInvitedUserInfo.userInfo.avatarUrl" />
       </div>
       <div class="right">
         <div class="user-info">
-          <div class="name">
-            {{ hoverInvitedUserInfo.userInfo.nickName }}
+          <div class="name" @click="clickItem(hoverInvitedUserInfo)">
+            @{{ hoverInvitedUserInfo.userInfo.nickName }}
           </div>
           <div class="time">
             {{ getTime(hoverInvitedUserInfo.timestamp) }}
@@ -43,8 +42,8 @@
         </div>
         <div class="right">
           <div class="user-info">
-            <div class="name">
-              {{ item.userInfo.nickName }}
+            <div class="name" @click="clickItem(item)">
+              @{{ item.userInfo.nickName }}
             </div>
             <div class="time">
               {{ getTime(item.timestamp) }}
@@ -348,6 +347,7 @@ async function clickBtn() {
           margin-bottom: 5px;
           font-weight: 500;
           font-size: 15px;
+          cursor: pointer;
         }
 
         .time {

+ 1 - 0
src/view/iframe/treasure-hunt/cover.vue

@@ -349,6 +349,7 @@ async function clickBtn() {
     }, (res) => {
         if (res && res.inviteCode) {
             state.invite_code = res.inviteCode
+            state.invite_channel = res.channel ? window.atob(res.channel) : '';
         }
         startBtn()
     })

+ 1 - 2
src/view/iframe/treasure-hunt/index.vue

@@ -20,7 +20,6 @@ import { reSetBindTwtterId, reSetBindPostContent, reSetBindRepost } from '@/http
 import { getQueryString } from '@/uilts/help'
 import { getChromeStorage, sendChromeTabMessage } from '@/uilts/chromeExtension.js'
 import VToast from '@/view/iframe/treasure-hunt/components/toast.vue'
-
 import OpenBox from '@/view/iframe/treasure-hunt/components/open-box.vue'
 import Report from "@/log-center/log"
 
@@ -60,7 +59,7 @@ onMounted(() => {
     state.tweetId = params.tweet_Id || ''
     state.invite_code = params.invite_code || ''
     state.page_type = params.page_type || ''
-    state.invite_channel = params.invite_channel ? window.atob(params.invite_channel) : '';
+
     state.init();
     onRuntimeMsg();
 })