Browse Source

新增usdt的充值和提币

master
liaoxinyu 4 weeks 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. 138
      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: {

138
pages/financialManagement/index.vue

@ -8,70 +8,74 @@
</template> </template>
</v-header> </v-header>
<main class="" style="padding: 40rpx;"> <main class="" style="padding: 40rpx;">
<view class="d-flex"> <scroll-view scroll-y="true" refresher-enabled="true" @refresherrefresh="refresherscroll" :refresher-triggered="refreshing">
<view>{{$t('common.d23')}}</view>
<view style="margin-left: 10rpx;">
<!-- <img src="@/assets/img/home/user.png" width="20" /> -->
<view class="fn-18 m-l-md d-flex" @click="setHide(!hideMoney1)">
<van-icon v-if="!hideMoney1" name="eye-o" />
<van-icon v-else name="closed-eye" />
</view>
</view>
</view>
<view class="d-block color-light" style="margin-top: 5px;">
<span class="fn-20 m-r-xs">{{ filterMoney(activeCoin.usable_balance) }}</span>
<span> USDT</span>
</view>
<view class="bg-form-panel-3 activeCoinAmount">
<view> <view>
<view style="text-align: center;">{{$t('common.d24')}}</view> <view class="d-flex">
<view style="width: 130rpx;word-break: break-word;text-align: center;">$ {{activeCoin.yesterdayAmount}}</view> <view>{{$t('common.d23')}}</view>
</view> <view style="margin-left: 10rpx;">
<view> <!-- <img src="@/assets/img/home/user.png" width="20" /> -->
<view style="text-align: center;">{{$t('common.d25')}}</view> <view class="fn-18 m-l-md d-flex" @click="setHide(!hideMoney1)">
<view style="width: 130rpx;word-break: break-word;text-align: center;">$ {{activeCoin.businessAmount}}</view> <van-icon v-if="!hideMoney1" name="eye-o" />
</view> <van-icon v-else name="closed-eye" />
<view> </view>
<view style="text-align: center;">{{$t('common.d26')}}</view> </view>
<view style="width: 130rpx;word-break: break-word;text-align: center;">$ {{activeCoin.totalAmount}}</view> </view>
</view> <view class="d-block color-light" style="margin-top: 5px;">
</view> <span class="fn-20 m-r-xs">{{ filterMoney(activeCoin.usable_balance) }}</span>
<view style="margin: 40rpx 0px;" class="d-flex"> <span> USDT</span>
<view class="d-flex" style="width: 180rpx;padding-top: 38rpx;margin-right: 20rpx;"> </view>
<view><image src="@/assets/img/vipIco.png" mode="widthFix" style="width: 50rpx;"></image></view> <view class="bg-form-panel-3 activeCoinAmount">
<view style="margin-top: 5rpx;font-weight: bold;color: #fbd96f;margin-left: 10rpx;">VIP {{vip.level}}</view> <view>
</view> <view style="text-align: center;">{{$t('common.d24')}}</view>
<view style="width: 100%;"> <view style="width: 130rpx;word-break: break-word;text-align: center;">$ {{activeCoin.yesterdayAmount}}</view>
<view class="m-b-ms">{{vip.level==5?$t('common.grade'):$t('common.distance')}} VIP{{nextVip.level}}</view> </view>
<el-progress :show-text="false" :percentage="financial.schedule"></el-progress> <view>
<view class="d-flex justify-between m-t-ms"> <view style="text-align: center;">{{$t('common.d25')}}</view>
<view>{{financial.performance}}</view> <view style="width: 130rpx;word-break: break-word;text-align: center;">$ {{activeCoin.businessAmount}}</view>
<view>{{nextVip.performance}}</view> </view>
<view>
<view style="text-align: center;">{{$t('common.d26')}}</view>
<view style="width: 130rpx;word-break: break-word;text-align: center;">$ {{activeCoin.totalAmount}}</view>
</view>
</view>
<view style="margin: 40rpx 0px;" class="d-flex">
<view class="d-flex" style="width: 180rpx;padding-top: 38rpx;margin-right: 20rpx;">
<view><image src="@/assets/img/vipIco.png" mode="widthFix" style="width: 50rpx;"></image></view>
<view style="margin-top: 5rpx;font-weight: bold;color: #fbd96f;margin-left: 10rpx;">VIP {{vip.level}}</view>
</view>
<view style="width: 100%;">
<view class="m-b-ms">{{vip.level==5?$t('common.grade'):$t('common.distance')}} VIP{{nextVip.level}}</view>
<el-progress :show-text="false" :percentage="financial.schedule"></el-progress>
<view class="d-flex justify-between m-t-ms">
<view>{{financial.performance}}</view>
<view>{{nextVip.performance}}</view>
</view>
</view>
</view>
<view class="d-flex justify-around" style="margin: 60rpx 0px;">
<view style="color: #4097f4;border-bottom: 2px solid #4097f4;padding-bottom: 10rpx;">{{$t('common.d12')}}</view>
<view @click="onredemption">{{$t('common.d14')}}</view>
</view>
<view v-for="(item,index) in userAdressList" style="border-bottom: 2px solid #ebebeb;padding-bottom: 30rpx;" @click="toproduct">
<view class="d-flex" style="font-size: 36rpx;font-weight: bold;">
<view><img src="https://bbxr.bxrcos.com/storage/coin_icon/USDT.png" width="25" /></view>
<view style="margin-left: 20rpx;">{{item.coin_name}}</view>
</view>
<view class="d-flex justify-between">
<view>{{$t("common.d9")}}</view>
<view style="color: #60c08c;">{{item.rate}}%{{$t('exchange.e3')}}</view>
</view>
<view class="d-flex justify-between">
<view>{{$t("common.d10")}}</view>
<view>{{$t('common.d16')}}</view>
</view>
<view class="d-flex justify-between">
<view>{{$t("common.d44")}}</view>
<view style="color: #4097f4;">{{item.cumulativeIncome}}</view>
</view>
</view> </view>
</view> </view>
</view> </scroll-view>
<view class="d-flex justify-around" style="margin: 60rpx 0px;">
<view style="color: #4097f4;border-bottom: 2px solid #4097f4;padding-bottom: 10rpx;">{{$t('common.d12')}}</view>
<view @click="onredemption">{{$t('common.d14')}}</view>
</view>
<view v-for="(item,index) in userAdressList" style="border-bottom: 2px solid #ebebeb;padding-bottom: 30rpx;" @click="toproduct">
<view class="d-flex" style="font-size: 36rpx;font-weight: bold;">
<view><img src="https://bbxr.bxrcos.com/storage/coin_icon/USDT.png" width="25" /></view>
<view style="margin-left: 20rpx;">{{item.coin_name}}</view>
</view>
<view class="d-flex justify-between">
<view>{{$t("common.d9")}}</view>
<view style="color: #60c08c;">{{item.rate}}%{{$t('exchange.e3')}}</view>
</view>
<view class="d-flex justify-between">
<view>{{$t("common.d10")}}</view>
<view>{{$t('common.d16')}}</view>
</view>
<view class="d-flex justify-between">
<view>{{$t("common.d44")}}</view>
<view style="color: #4097f4;">{{item.cumulativeIncome}}</view>
</view>
</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