Browse Source

新增usdt的充值和提币

master
liaoxinyu 4 months ago
parent
commit
945ab21cf0
  1. 8
      i18n/lang/en.json
  2. 8
      i18n/lang/zh-TW.json
  3. 6
      pages/assets/draw.vue
  4. 19
      pages/assets/recharge.vue
  5. 34
      pages/financialManagement/finances-product.vue
  6. 16
      pages/financialManagement/index.vue

8
i18n/lang/en.json

@ -124,10 +124,14 @@
"d40": "The annualized rate does not represent actual or expected returns calculated in fiat currency. Please refer to the product rules for the relevant return mechanism.", "d40": "The annualized rate does not represent actual or expected returns calculated in fiat currency. Please refer to the product rules for the relevant return mechanism.",
"d41": "Returns", "d41": "Returns",
"d42": "Returns will be calculated starting from the day after subscription, and interest income will be distributed daily.", "d42": "Returns will be calculated starting from the day after subscription, and interest income will be distributed daily.",
"d43": "After a successful redemption application, the current assets will be immediately returned to your wealth management wallet.", "d43": "After a successful redemption request, the current account assets will be returned to your investment wallet 24 hours later.",
"d44": "Accumulated interest", "d44": "Accumulated interest",
"d45": "Regular", "d45": "Regular",
"d46": "The selected assets will be redeemed immediately and in full to your financial account." "d46": "The selected assets will be redeemed immediately and in full to your financial account.",
"d47": "v1-v5 (total 0.025)",
"d48": "Level",
"d49": "Performance",
"d50": "Reward Percentage"
}, },
"base": { "base": {
"a0": "Title", "a0": "Title",

8
i18n/lang/zh-TW.json

@ -123,10 +123,14 @@
"d40": "年化率井不代表以法幣計算的實際或預期收益,相關收益機制請參考產品規則。", "d40": "年化率井不代表以法幣計算的實際或預期收益,相關收益機制請參考產品規則。",
"d41": "收益", "d41": "收益",
"d42": "申購後第二天開始計算收益,每天分配一次利息收益。", "d42": "申購後第二天開始計算收益,每天分配一次利息收益。",
"d43": "赎回申请成功后,活期的资产立即退回你的理财钱包。", "d43": "贖回申請成功後,活期的資產將在 24小時後退回你的理財錢包。",
"d44": "累計利息", "d44": "累計利息",
"d45": "定期", "d45": "定期",
"d46": "所選的資產立即全額贖回至您的理財帳戶。" "d46": "所選的資產立即全額贖回至您的理財帳戶。",
"d47": "v1-v5(总的0.025)",
"d48": "级别",
"d49": "业绩",
"d50": "奖励比例"
}, },
"base": { "base": {
"a0": "標題", "a0": "標題",

6
pages/assets/draw.vue

@ -46,6 +46,12 @@
:class="rechargeType==3?'bor-active':'bg-panel-3 border'" :class="rechargeType==3?'bor-active':'bg-panel-3 border'"
>TRC20 >TRC20
</view> </view>
<view class="rounded-xs p-x-lg p-y-ms m-r-md"
size="mini"
@click="changeRechargeType(4)"
:class="rechargeType==4?'bor-active':'bg-panel-3 border'"
>BEP20
</view>
</view> </view>

19
pages/assets/recharge.vue

@ -32,16 +32,15 @@
@click="changeRechargeType(1)" @click="changeRechargeType(1)"
>OMNI</view> --> >OMNI</view> -->
<view class="rounded-xs p-x-lg p-y-ms m-r-md" <view class="rounded-xs p-x-lg p-y-ms m-r-md" size="mini" @click="changeRechargeType(2)" :class="rechargeType==2?'bor-active':'bg-panel-3 border'">
size="mini" ERC20
@click="changeRechargeType(2)" </view>
:class="rechargeType==2?'bor-active':'bg-panel-3 border'" <view class="rounded-xs p-x-lg p-y-ms m-r-md" size="mini" @click="changeRechargeType(3)" :class="rechargeType==3?'bor-active':'bg-panel-3 border'">
>ERC20</view> TRC20
<view class="rounded-xs p-x-lg p-y-ms" </view>
size="mini" <view class="rounded-xs p-x-lg p-y-ms" size="mini" @click="changeRechargeType(4)" :class="rechargeType==4?'bor-active':'bg-panel-3 border'">
@click="changeRechargeType(3)" BEP20
:class="rechargeType==3?'bor-active':'bg-panel-3 border'" </view>
>TRC20</view>
</view> </view>
</view> </view>

34
pages/financialManagement/finances-product.vue

@ -144,14 +144,35 @@
<view>{{$t('common.d40')}}</view> <view>{{$t('common.d40')}}</view>
</view> </view>
<view v-if="bool1==2"> <view v-if="bool1==2">
<view> <view style="margin-top: 20rpx;">
<view>1{{$t('common.d41')}}</view> <view>1{{$t('common.d41')}}</view>
<view>{{$t('common.d42')}}</view> <view>{{$t('common.d42')}}</view>
</view> </view>
<view> <view style="margin-top: 20rpx;">
<view>2{{$t('common.d14')}}</view> <view>2{{$t('common.d14')}}</view>
<view>{{$t('common.d43')}}</view> <view>{{$t('common.d43')}}</view>
</view> </view>
<view style="margin-top: 20rpx;">
<view>2{{$t('common.d47')}}</view>
<view>
<table style="width: 100%;margin-top: 20rpx;" border="1" cellspacing="0" cellpadding="5">
<thead>
<tr style="background-color: #dfdfdf;color: #868686;">
<th style="width: 33%;">{{$t('common.d48')}}</th>
<th style="width: 33%;">{{$t('common.d49')}}</th>
<th style="width: 33%;">{{$t('common.d50')}}</th>
</tr>
</thead>
<tbody>
<tr v-for="(items,indexs) in tablelist" :key="indexs" style="color: #868686;">
<td style="width: 33%;text-align: center;">{{items.vip}}</td>
<td style="width: 33%;text-align: center;">{{items.money}}</td>
<td style="width: 33%;text-align: center;">{{items.proportion}}</td>
</tr>
</tbody>
</table>
</view>
</view>
</view> </view>
</view> </view>
<view style="background-color: #fff;height: 150rpx;position: fixed;bottom: 0rpx;display: flex;align-items: center;"> <view style="background-color: #fff;height: 150rpx;position: fixed;bottom: 0rpx;display: flex;align-items: center;">
@ -196,7 +217,14 @@ export default {
bool1:1, bool1:1,
stopsubscription:false, stopsubscription:false,
Subscriptionindex:null, Subscriptionindex:null,
userinfo:uni.getStorageSync("user") userinfo:uni.getStorageSync("user"),
tablelist:[
{"vip":"v1","money":"10000","proportion":"20%"},
{"vip":"v2","money":"100000","proportion":"40%"},
{"vip":"v3","money":"300000","proportion":"60%"},
{"vip":"v4","money":"1000000","proportion":"80%"},
{"vip":"v5","money":"10000000","proportion":"100%"}
]
}; };
}, },
methods: { methods: {

16
pages/financialManagement/index.vue

@ -8,6 +8,8 @@
</template> </template>
</v-header> </v-header>
<main class="" style="padding: 40rpx;"> <main class="" style="padding: 40rpx;">
<scroll-view scroll-y="true" refresher-enabled="true" @refresherrefresh="refresherscroll" :refresher-triggered="refreshing">
<view>
<view class="d-flex"> <view class="d-flex">
<view>{{$t('common.d23')}}</view> <view>{{$t('common.d23')}}</view>
<view style="margin-left: 10rpx;"> <view style="margin-left: 10rpx;">
@ -72,6 +74,8 @@
<view style="color: #4097f4;">{{item.cumulativeIncome}}</view> <view style="color: #4097f4;">{{item.cumulativeIncome}}</view>
</view> </view>
</view> </view>
</view>
</scroll-view>
</main> </main>
</v-page> </v-page>
</template> </template>
@ -108,7 +112,8 @@
coin_name1:"USDT", coin_name1:"USDT",
financial:{}, financial:{},
vip:{}, vip:{},
nextVip:{} nextVip:{},
refreshing: false,
}; };
}, },
watch:{ watch:{
@ -131,6 +136,15 @@
if (this.hideMoney1) return "******"; if (this.hideMoney1) return "******";
return val; return val;
}, },
refresherscroll(){
this.getBalance()
this.init()
if (this.refreshing) return;
this.refreshing = true;
setTimeout(() => {
this.refreshing = false;
}, 1000)
},
getBalance(){ getBalance(){
let data = { let data = {
account: 4, account: 4,

Loading…
Cancel
Save