Kaynağa Gözat

[del] 删除publish注释代码

wenliming 3 yıl önce
ebeveyn
işleme
91594e4064

+ 0 - 33
src/logic/content/twitter.js

@@ -259,39 +259,6 @@ function _addIframe() {
     }
 }
 
-/**
- * 获取发布推文id
- * @returns {string}
- * @private
- */
-
-/** function _getTwitterArtId(contentStr, cb) {
-    let id = '';
-
-    let timer = setInterval(() => {
-        let arr = document.querySelectorAll('a') || [];
-        for (let i = 0; i < arr.length; i++) {
-            let item = arr[i];
-            if (item.innerText == '#DeNet') {
-                if (item.parentNode && item.parentNode.parentNode && item.parentNode.parentNode.innerText.length > 5) {
-                    let _postId = item.parentNode.parentNode.innerText || ''
-                    let _dom = item.parentNode.parentNode.parentNode.parentNode.parentNode
-                    let regex = new RegExp(contentStr);
-                    if (regex.test(_postId)) {
-                        id = _dom.children[0].querySelector('a[dir="auto"]').getAttribute('href').split('/status/')[1];
-                        clearInterval(timer);
-                        if (id) {
-                            cb && cb(id);
-                        }
-                        break;
-                    }
-                }
-            }
-        }
-    }, 1000);
-}
-*/
-
 /**
  * 点击deNet按钮处理
  * @private

+ 1 - 1
src/view/components/popup-withdraw.vue

@@ -63,7 +63,7 @@
                             </span>
                         </template>
                         <template v-else>
-                            计算中
+                            calculating
                         </template>
                     </div>
                     <div>{{ walletWithdrawConfig.withdrawFeeDesc }}</div>

+ 4 - 32
src/view/iframe/publish/give-dialog.vue

@@ -922,25 +922,6 @@ const calcIptValue = (cb) => {
         };
     }
 
-    // let num = amountValue, scale = 1;
-    // if(amountValue.indexOf('.') > -1) {
-    //     num = amountValue.toString();
-    //     let obj = scaleNumber(num);
-    //     num = obj.val;
-    //     scale = obj.scale;
-    // }
-    // let minAmount = currentCurrencyInfo.value.minAmount;
-    // // 输入的token数量或者法币金额,平均分到每个红包,是否小于最小单位
-    // if (num / totalCount  < minAmount * scale) {
-    //     flag = false;
-    // }
-
-    // return {
-    //     flag,
-    //     count: Math.floor((num / minAmount * scale)/ (scale * scale))
-    // };
-    // console.log('baseFormData',`${baseFormData.amountValue} / ${baseFormData.totalCount}`)
-
     if (math.format(math.evaluate(`${baseFormData.amountValue} / ${baseFormData.totalCount}`)) < +currentCurrencyInfo.value.minAmount) {
         flag = false;
     }
@@ -953,24 +934,14 @@ const calcIptValue = (cb) => {
 /**
  * 设置输入提示语
  */
-const setInputErrorMsg = (params) => {
-
-    // let amountValue = baseFormData.amountValue;
-    // let num = amountValue, scale = 1;
-    // if(amountValue.indexOf('.') > -1) {
-    //     num = amountValue.toString();
-    //     let obj = scaleNumber(num);
-    //     num = obj.val;
-    //     scale = obj.scale;
-    // }
-
-    onIptSetErrorTxt(params);
+const setInputErrorMsg = () => {
+    onIptSetErrorTxt();
 };
 
 /**
  * 输入时 检测设置错误信息
  */
-const onIptSetErrorTxt = (params) => {
+const onIptSetErrorTxt = () => {
     depositGuide.value = false;
     if(!currentCurrencyInfo.value.currencyCode) {
         iptErrMsgTxt.value = "Select a reward"
@@ -1086,6 +1057,7 @@ onMounted(() => {
         top: 50%;
         transform: translate(-50%, -50%);
         box-sizing: border-box;
+        z-index: 2000;
 
         .pop-mask {
             width: 100%;