Quellcode durchsuchen

Merge branch 'dev_1.1.1' of https://git.yishihui.com/DeNet/de-net into dev_1.1.1

zhangwei vor 2 Jahren
Ursprung
Commit
4c454a3095

+ 4 - 1
src/logic/content/nft.js

@@ -1,7 +1,7 @@
 import { getOffsetRect, nextTick } from '@/uilts/help'
 import { listJoinNftGroup } from '@/http/nft';
 import { getChromeStorage } from '@/uilts/chromeExtension.js'
-import { _setPublishContent, publishNFTTweetPost } from './twitter';
+import { _setPublishContent, publishNFTTweetPost, bindTwitterArt, bindTwitterArtMethod } from './twitter';
 import { jumpTwitterDetailByAlert } from '@/logic/content/help/twitter.js'
 
 var ifShowNftGroup = false;
@@ -206,6 +206,9 @@ function _addTweetButtonListen() {
 function _postTweetContent() {
     if (tempNftGroupPost && tempNftGroupPost.groupId) {
         publishNFTTweetPost(tempNftGroupPost)
+        bindTwitterArt.needBind = true;
+        bindTwitterArt.postId = tempNftGroupPost.postId;
+        bindTwitterArtMethod();
         // 非首页处理
         let homeTag = document.querySelectorAll('div[data-testid="toolBar"]');
         if (homeTag.length === 1) {

+ 2 - 2
src/logic/content/twitter.js

@@ -193,7 +193,7 @@ function getUserInfo(cb) {
 }
 
 // 绑定推文id所需参数
-let bindTwitterArt = {
+export let bindTwitterArt = {
     needBind: false,
     postId: '',
     isBindIng: false
@@ -636,7 +636,7 @@ function checkHasDeBtn() {
 /**
  * 点击发推,后端绑定推特id
  */
-function bindTwitterArtMethod() {
+export function bindTwitterArtMethod() {
     if (!bindTwitterArt.postId) {
         return
     }

+ 0 - 2
src/view/iframe/tab-group/tab-group.vue

@@ -123,7 +123,6 @@ const nextPage = (params) => {
 };
 
 const pageScroll = (e) => {
-    console.log('pageScroll',e.target.scrollTop)
     sendMessageToContent({
         actionType: "IFREME_TAB_GROUP_CONTENT_GET_NAV_TOP",
         data: {
@@ -149,7 +148,6 @@ const innerPageNext = (data) => {
     let wrapperHeight = pageWrapperDom.value.offsetHeight;
     let listContentHeight = listWrapperDom.value.offsetHeight;
     let scrollTop = data.scrollTop || 0;
-    console.log(wrapperHeight,scrollTop,  '---', listContentHeight - 100)
     if (
         listReqParams.loadMore === false &&
         wrapperHeight + scrollTop >= (listContentHeight - 100)