Browse Source

[bug] fix、文案

wenliming 3 years ago
parent
commit
57fc49cd7b

BIN
src/assets/logo/128.png


BIN
src/assets/logo/16.png


BIN
src/assets/logo/32.png


BIN
src/assets/logo/48.png


+ 1 - 1
src/logic/twitter.js

@@ -406,7 +406,7 @@ function _createBtnDom(port) {
 
 
     const deBtn3 = document.createElement('img');
     const deBtn3 = document.createElement('img');
     deBtn3.id = 'de-btn3'
     deBtn3.id = 'de-btn3'
-    deBtn3.src = require("@/assets/img/icon-slider-de-net-btn.png");
+    deBtn3.src = require("@/assets/logo/128.png");
     deBtn3.style.cssText = 'width:52px;height: 52px;margin-top:20px;cursor: pointer;';
     deBtn3.style.cssText = 'width:52px;height: 52px;margin-top:20px;cursor: pointer;';
 
 
     deBtn.addEventListener('click', () => {
     deBtn.addEventListener('click', () => {

+ 6 - 2
src/view/components/currency-list.vue

@@ -19,7 +19,7 @@
                         <div class="item-title">
                         <div class="item-title">
                             <img class="icon"
                             <img class="icon"
                                 :src="item.type == 1 ? require('../../assets/svg/icon-currency-category-01.svg') : require('../../assets/svg/icon-currency-category-02.svg')" />
                                 :src="item.type == 1 ? require('../../assets/svg/icon-currency-category-01.svg') : require('../../assets/svg/icon-currency-category-02.svg')" />
-                            {{ item.type == 1 ? 'Legal Tender' : 'Token' }}
+                            {{ item.type == 1 ? 'Cash' : 'Crypto' }}
                         </div>
                         </div>
                         <div class="item-detail" v-for="(data, idx) in item.data" :key="idx"
                         <div class="item-detail" v-for="(data, idx) in item.data" :key="idx"
                             @click="selectCurrency(data)">
                             @click="selectCurrency(data)">
@@ -76,6 +76,10 @@ const props = defineProps({
     page: {
     page: {
         type: String,
         type: String,
         default: '',
         default: '',
+    },
+    filterEmptyBalance: {
+        type: Boolean,
+        default: false
     }
     }
 })
 })
 let keywords = ref('');
 let keywords = ref('');
@@ -164,7 +168,7 @@ const getCurrencyInfoList = () => {
             pageNum: listReqParams.params.pageNum,
             pageNum: listReqParams.params.pageNum,
             pageSize: listReqParams.params.pageSize,
             pageSize: listReqParams.params.pageSize,
             filterFiatCurrency: props.page == 'top-up',
             filterFiatCurrency: props.page == 'top-up',
-            filterEmptyBalance: props.page != 'top-up'
+            filterEmptyBalance: props.filterEmptyBalance
         }
         }
     };
     };
     getCurrencyInfo(params).then(res => {
     getCurrencyInfo(params).then(res => {

+ 10 - 1
src/view/components/follow-input.vue

@@ -14,7 +14,8 @@
                     @keydown="onKeydown(item, index)"
                     @keydown="onKeydown(item, index)"
                     @keyup="onKeyup(item, index)"
                     @keyup="onKeyup(item, index)"
                     @blur="onblur(item, index)"
                     @blur="onblur(item, index)"
-                    @focus="onfocus(item, index)"/>
+                    @focus="onfocus(item, index)"
+                    @mouseenter="iptMouseenter"/>
 
 
             <template v-if="currentIptIndex == index && userList.length">
             <template v-if="currentIptIndex == index && userList.length">
                 <div class="user-list-wrapper">
                 <div class="user-list-wrapper">
@@ -197,6 +198,14 @@ const handleMouseEn = () => {
 const handleMouseLe = () => {
 const handleMouseLe = () => {
     isActiveAddBtn.value = false;
     isActiveAddBtn.value = false;
 }
 }
+const iptMouseenter = (e) => {
+    rectClick(e);
+}
+
+function rectClick(event) {
+    //获取相对于当前所指向对象的位置坐标
+    console.log(event,'x:' + event.clientX + "  y:" +  event.clientY);
+}
 
 
 const getTwitterUsers = (query, cb) => {
 const getTwitterUsers = (query, cb) => {
     searchTwitterUser({
     searchTwitterUser({

+ 21 - 18
src/view/components/give-dialog.vue

@@ -35,7 +35,7 @@
                         <div class="option">
                         <div class="option">
                             <div class="item" @click="goTransactionsList()">
                             <div class="item" @click="goTransactionsList()">
                                 <img :src="require('@/assets/svg/icon-menu.svg')">
                                 <img :src="require('@/assets/svg/icon-menu.svg')">
-                                <span>Transactions</span>
+                                <span>Transaction History</span>
                             </div>
                             </div>
                         </div>
                         </div>
                     </div>
                     </div>
@@ -89,7 +89,7 @@
                                             :src="currentCurrencyInfo.iconPath"
                                             :src="currentCurrencyInfo.iconPath"
                                         />
                                         />
                                         <div class="text">
                                         <div class="text">
-                                            {{currentCurrencyInfo.currencyCode == 'USD' ? 'USD' : currentCurrencyInfo.tokenSymbol || 'Select a Reward'}}
+                                            {{currentCurrencyInfo.currencyCode == 'USD' ? 'USD' : currentCurrencyInfo.tokenSymbol || 'Select a reward'}}
                                         </div>
                                         </div>
                                         <img
                                         <img
                                             class="arrow"
                                             class="arrow"
@@ -218,13 +218,13 @@
                             <!-- 提示 -->
                             <!-- 提示 -->
                             <ul class="tips-wrapper">
                             <ul class="tips-wrapper">
                                 <li class="row">
                                 <li class="row">
-                                    Rewards can only be claimed after the target user completes all tasks you set.
+                                    Rewards can only be claimed after the target user completes all tasks you set. 
                                 </li>
                                 </li>
                                 <li class="row">
                                 <li class="row">
-                                    Each user can only receive a reward once per task
+                                    Each user can only receive a reward once per task.
                                 </li>
                                 </li>
                                 <li class="row">
                                 <li class="row">
-                                    The reward will expire in 7 days once issued. Please promote it as much as possible within this period. After experiment, remaining rewards will be returned to your DeNet Wallet.
+                                    The reward will expire in 7 days once issued. Please promote it as much as possible within this period. After the experiment, the remaining rewards will be returned to your DeNet Wallet.
                                 </li>
                                 </li>
                             </ul>
                             </ul>
 
 
@@ -315,7 +315,7 @@ let publishRes = reactive({});
 
 
 let currentComData = {
 let currentComData = {
     default: {
     default: {
-        title: "Giveaways",
+        title: "Giveaway",
     },
     },
     preview: {
     preview: {
         title: "Preview",
         title: "Preview",
@@ -407,7 +407,7 @@ let formList = reactive([
         checked: true,
         checked: true,
     },
     },
     {
     {
-        label: "Like tweet",
+        label: "Like Tweet",
         icon: require("../../assets/svg/icon-like.svg"),
         icon: require("../../assets/svg/icon-like.svg"),
         nodeType: "div",
         nodeType: "div",
         type: 2,
         type: 2,
@@ -426,12 +426,12 @@ watch(
     () => props.dialogVisible,
     () => props.dialogVisible,
     (newVal) => {
     (newVal) => {
         console.log("watch", newVal);
         console.log("watch", newVal);
+        visible.value = newVal;
         if (newVal) {
         if (newVal) {
             setTimeout(() => {
             setTimeout(() => {
                 setDialogHeight();
                 setDialogHeight();
             }, 300);
             }, 300);
         }
         }
-        visible.value = newVal;
     }
     }
 );
 );
 
 
@@ -450,14 +450,16 @@ const close = () => {
 /**
 /**
  * 设置弹窗高度
  * 设置弹窗高度
  */
  */
-const setDialogHeight = () => {
+const setDialogHeight = (resize = false) => {
     let clientHeight = window.innerHeight;
     let clientHeight = window.innerHeight;
     let gapSafe = 40;
     let gapSafe = 40;
 
 
     if (dialogHeight.value > clientHeight - gapSafe) {
     if (dialogHeight.value > clientHeight - gapSafe) {
         dialogHeight.value = clientHeight - gapSafe;
         dialogHeight.value = clientHeight - gapSafe;
     } else {
     } else {
-        dialogHeight.value = 680;
+        if(resize) {
+            dialogHeight.value = 680;
+        }
     }
     }
 };
 };
 
 
@@ -503,8 +505,8 @@ const selectCurrency = (params) => {
     if(params.currencyCode != "USD" && params.balance < params.minAmount) {
     if(params.currencyCode != "USD" && params.balance < params.minAmount) {
         let tokenSymbol = params.currencyCode == 'USD' ? 'USD' : params.tokenSymbol;
         let tokenSymbol = params.currencyCode == 'USD' ? 'USD' : params.tokenSymbol;
         messageBoxBlock({
         messageBoxBlock({
-            title: `Deposit ${tokenSymbol}`,
-            content: `${tokenSymbol} available balance is ${params.balance}`,
+            title: `Whether to deposit ${tokenSymbol}`,
+            content: `Insufficient ${tokenSymbol} balance`,
         });
         });
     } else {
     } else {
         currentCurrencyInfo.value = params;
         currentCurrencyInfo.value = params;
@@ -587,6 +589,7 @@ const topUpDone = () => {
     asyncIng.value = false;
     asyncIng.value = false;
     showCurrencyPop.value = false;
     showCurrencyPop.value = false;
     showComType.value = 'default';
     showComType.value = 'default';
+    calcDomZoom();
     asyncTokenRechRecord((res) => {
     asyncTokenRechRecord((res) => {
         if(res.code == 0 && res.data && res.data.length) {
         if(res.code == 0 && res.data && res.data.length) {
             let currencyInfo = res.data[0];
             let currencyInfo = res.data[0];
@@ -930,21 +933,21 @@ const setIsEmptyTxt = () => {
 const onIptSetErrorTxt = (params) => {
 const onIptSetErrorTxt = (params) => {
     depositGuide.value = false;
     depositGuide.value = false;
     if(!currentCurrencyInfo.value.currencyCode) {
     if(!currentCurrencyInfo.value.currencyCode) {
-        iptErrMsgTxt.value = "Please select a currency"
+        iptErrMsgTxt.value = "Select a reward"
     } else if (!baseFormData.amountValue || baseFormData.amountValue == '0') {
     } else if (!baseFormData.amountValue || baseFormData.amountValue == '0') {
-        iptErrMsgTxt.value = "Please enter the ‘reward’ amount";
+        iptErrMsgTxt.value = "Enter an amount";
     } else if (!baseFormData.totalCount || baseFormData.totalCount == '0') {
     } else if (!baseFormData.totalCount || baseFormData.totalCount == '0') {
-            iptErrMsgTxt.value = "Please enter the ‘winners’ amount";
+            iptErrMsgTxt.value = "Enter the number of winners";
     } else if(+baseFormData.amountValue < +currentCurrencyInfo.value.balance) {
     } else if(+baseFormData.amountValue < +currentCurrencyInfo.value.balance) {
         let res = calcIptValue();
         let res = calcIptValue();
         if (!res.flag) {
         if (!res.flag) {
-            iptErrMsgTxt.value = `Please enter at least ${baseFormData.amountValue} ${currentCurrencyInfo.value.tokenSymbol} for ${res.count} winners`;
+            iptErrMsgTxt.value = `${baseFormData.amountValue} ${currentCurrencyInfo.value.tokenSymbol} Can send up to ${res.count} winners`;
         } else {
         } else {
             iptErrMsgTxt.value = "";
             iptErrMsgTxt.value = "";
         }
         }
     } else if(currentCurrencyInfo.value.currencyCode != 'USD') {
     } else if(currentCurrencyInfo.value.currencyCode != 'USD') {
         depositGuide.value = true;
         depositGuide.value = true;
-        iptErrMsgTxt.value = `Insufficient ${currentCurrencyInfo.value.tokenSymbol} balance, please recharge`;
+        iptErrMsgTxt.value = `Insufficient ${currentCurrencyInfo.value.tokenSymbol} balance, please deposit`;
     } 
     } 
 }
 }
 
 
@@ -992,7 +995,7 @@ onMounted(() => {
         }
         }
     };
     };
     window.onresize = throttle(function () {
     window.onresize = throttle(function () {
-        setDialogHeight()
+        setDialogHeight(true)
     }, 300)
     }, 300)
 });
 });
 </script>
 </script>

+ 2 - 2
src/view/components/message-box.vue

@@ -4,8 +4,8 @@
             <div class="title">{{title}}</div>
             <div class="title">{{title}}</div>
             <div class="desc">{{content}}</div>
             <div class="desc">{{content}}</div>
             <div class="btn-wrapper">
             <div class="btn-wrapper">
-                <div class="btn cancel" @click="cancel">Cancel</div>
-                <div class="btn confirm" @click="confirm">Confirm</div>
+                <div class="btn cancel" @click="cancel">Not yet</div>
+                <div class="btn confirm" @click="confirm">Deposit</div>
             </div>
             </div>
         </div>
         </div>
     </div>
     </div>

+ 6 - 6
src/view/components/options-transactions.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-    <div class="com-wrapper">
+    <div class="com-wrapper" ref="listWrapper"  @scroll="listScroll">
         <!-- <div class="com-nav-bar">
         <!-- <div class="com-nav-bar">
             <img
             <img
                 :src="require('@/assets/svg/icon-bar-arrow-left.svg')"
                 :src="require('@/assets/svg/icon-bar-arrow-left.svg')"
@@ -8,11 +8,11 @@
             />
             />
             Transactions
             Transactions
         </div> -->
         </div> -->
-        <div class="list-wrapper" ref="listWrapper" @scroll="listScroll">
+        <div class="list-wrapper" ref="listContent">
             <template v-if="!dataList.length">
             <template v-if="!dataList.length">
                 <img class="icon-empty" :src="require('@/assets/svg/icon-empty-list.svg')" />
                 <img class="icon-empty" :src="require('@/assets/svg/icon-empty-list.svg')" />
             </template>
             </template>
-            <div ref="listContent">
+            <div>
                 <div class="cell" v-for="(item, index) in dataList" :key="index">
                 <div class="cell" v-for="(item, index) in dataList" :key="index">
                     <div class="img-wrapper">
                     <div class="img-wrapper">
                         <!-- 收入- 任务红包领取 -->
                         <!-- 收入- 任务红包领取 -->
@@ -198,7 +198,7 @@ const listScroll = (e) => {
     let scrollTop = e.target.scrollTop || 0;
     let scrollTop = e.target.scrollTop || 0;
     if (
     if (
         listReqParams.loadMore === false &&
         listReqParams.loadMore === false &&
-        wrapperHeight + scrollTop >= listContentHeight
+        wrapperHeight + scrollTop >= listContentHeight - 30
     ) {
     ) {
         listReqParams.loadMore = true;
         listReqParams.loadMore = true;
         listReqParams.params.pageNum++;
         listReqParams.params.pageNum++;
@@ -210,6 +210,7 @@ const listScroll = (e) => {
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .com-wrapper {
 .com-wrapper {
     height: 100%;
     height: 100%;
+    overflow-y: auto;
 
 
     .com-nav-bar {
     .com-nav-bar {
         padding: 14px;
         padding: 14px;
@@ -229,8 +230,7 @@ const listScroll = (e) => {
     .list-wrapper {
     .list-wrapper {
         width: 100%;
         width: 100%;
         // height: calc(100% - 51px);
         // height: calc(100% - 51px);
-        height: 100%;
-        overflow-y: auto;
+        // height: 100%;
         position: relative;
         position: relative;
 
 
         .icon-empty {
         .icon-empty {

+ 4 - 4
src/view/components/top-up.vue

@@ -5,7 +5,7 @@
             <div class="top">
             <div class="top">
                 <div class="item">
                 <div class="item">
                     <div class="label">
                     <div class="label">
-                        Token
+                        Crypto
                     </div>
                     </div>
                     <div class="content">
                     <div class="content">
                         <img
                         <img
@@ -16,14 +16,14 @@
                 </div>
                 </div>
                 <div class="item">
                 <div class="item">
                     <div class="label">
                     <div class="label">
-                        Network
+                        Deposit network
                     </div>
                     </div>
                     <div class="content">
                     <div class="content">
                         <img
                         <img
                             class="icon"
                             class="icon"
                             :src="require('@/assets/svg/icon-BNB.svg')"
                             :src="require('@/assets/svg/icon-BNB.svg')"
                         />
                         />
-                        BNB Chain
+                        BNB Smart Chain (BEP20)
                     </div>
                     </div>
                 </div>
                 </div>
             </div>
             </div>
@@ -34,7 +34,7 @@
             </div>
             </div>
             <div class="tips-box">
             <div class="tips-box">
                 <img :src="require('@/assets/svg/icon-top-up-tips-warning.svg')" >
                 <img :src="require('@/assets/svg/icon-top-up-tips-warning.svg')" >
-                Make sure you also selected BNB Smart Chain (BEP20) as the Network on the platform where you are withdrawing funds for this deposiit. Otherwise, you'll lose your assets.
+                Make sure you also selected BNB Smart Chain (BEP20) as the network on the platform where you are withdrawing funds for this deposit. Otherwise, you'll lose your assets.
             </div>
             </div>
         </div>
         </div>
         <div class="btn-done" @click="doneHandle">
         <div class="btn-done" @click="doneHandle">

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

@@ -2,7 +2,7 @@
     <!-- 公共组件 -->
     <!-- 公共组件 -->
     <div class="info">
     <div class="info">
         <v-head :title="'Withdraw'" :show_more="true" :back_url="'/'"></v-head>
         <v-head :title="'Withdraw'" :show_more="true" :back_url="'/'"></v-head>
-        <currency-list style="height: calc(100% - 48px);" @selectCurrency="selectCurrency" ></currency-list>
+        <currency-list style="height: calc(100% - 48px);" :filterEmptyBalance="true" @selectCurrency="selectCurrency" ></currency-list>
     </div>
     </div>
 
 
 </template>
 </template>