|
|
@@ -3,48 +3,17 @@
|
|
|
<cwg-header :title="t('Documentary.console.item1')" :showBack="false" />
|
|
|
<uni-loading v-if="loading" />
|
|
|
<uni-row v-else class="demo-uni-row uni-row1" :gutter="20">
|
|
|
+ <uni-col :xs="24" :sm="12" :md="24" :lg="24" :xl="24" class="mb-3">
|
|
|
+ <cwg-combox :clearable="false" :filterable="true" v-model:value="login"
|
|
|
+ :options="loginOptions.map(item => ({
|
|
|
+ text: item.platform + ' - ' + item.login + ' - ' + groupTypeName(item.type) + ' - ' + t('Custom.Deposit.AvailableBalance') + groupCurrency(item.currency) + item.balance,
|
|
|
+ value: item
|
|
|
+ }))" :placeholder="locale === 'es'?'Selecciona':t('placeholder.choose')" @change="handleCommand"/>
|
|
|
+
|
|
|
+ </uni-col>
|
|
|
<uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="uni-col-left">
|
|
|
<uni-row :gutter="10">
|
|
|
- <uni-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
|
|
|
- <view class="custom-number">
|
|
|
- <view class="title">
|
|
|
- <view class="tit">
|
|
|
- <text>{{ t('Documentary.console.item4') }}</text>
|
|
|
- </view>
|
|
|
- <view class="select">
|
|
|
- <cwg-dropdown :menu-list="loginOptions.map(item => ({
|
|
|
- label: item.platform + ' - ' + item.login + ' - ' + groupTypeName(item.type) + ' - ' + t('Custom.Deposit.AvailableBalance') + groupCurrency(item.currency) + item.balance,
|
|
|
- value: item
|
|
|
- }))" @menuClick="handleCommand">
|
|
|
- <view class="el-dropdown-link crm-cursor">
|
|
|
- <text v-if="locale === 'es'">Selecciona</text>
|
|
|
- <text v-else>{{ t('placeholder.choose') }}</text>
|
|
|
- <cwg-icon name="crm-chevron-down" :size="14" color="#6c8595" />
|
|
|
- </view>
|
|
|
- </cwg-dropdown>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="content" style="
|
|
|
- height: 40px;
|
|
|
- display: inline-block;
|
|
|
- font-size: 15px;
|
|
|
- color: #eb3f57;
|
|
|
- font-weight: bold;
|
|
|
- ">
|
|
|
- <view style="margin-bottom: 5px">
|
|
|
- {{ ChartSet.platform || '--' }} - {{ ChartSet.login || '--' }} -
|
|
|
- {{ groupTypeName(ChartSet.type) || '--' }}
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>{{ t('Custom.Deposit.AvailableBalance') }}</text>
|
|
|
- :
|
|
|
- {{ groupCurrency1(ChartSet.currency) }}
|
|
|
- {{ numberFormat(ChartSet.balance || '0.00') }}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-col>
|
|
|
- <uni-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
|
|
|
+ <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
|
|
|
<view class="custom-money">
|
|
|
<view class="left">
|
|
|
<view class="tit">
|
|
|
@@ -56,7 +25,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-col>
|
|
|
- <uni-col :xs="24" :sm="12" :md="isDealLogin ? 8 : 12" :lg="isDealLogin ? 4 : 6" :xl="isDealLogin ? 4 : 6">
|
|
|
+<!-- <uni-col :xs="24" :sm="12" :md="isDealLogin ? 8 : 12" :lg="isDealLogin ? 4 : 6" :xl="isDealLogin ? 4 : 6">-->
|
|
|
+ <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
|
|
|
<view class="custom-money">
|
|
|
<view class="left">
|
|
|
<view class="tit">
|
|
|
@@ -76,7 +46,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-col>
|
|
|
- <uni-col :xs="24" :sm="12" :md="isDealLogin ? 8 : 12" :lg="isDealLogin ? 4 : 6" :xl="isDealLogin ? 4 : 6">
|
|
|
+<!-- <uni-col :xs="24" :sm="12" :md="isDealLogin ? 8 : 12" :lg="isDealLogin ? 4 : 6" :xl="isDealLogin ? 4 : 6">-->
|
|
|
+ <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
|
|
|
<view class="custom-money">
|
|
|
<view class="left">
|
|
|
<view class="tit">
|
|
|
@@ -96,26 +67,26 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-col>
|
|
|
- <uni-col :xs="24" :sm="12" :md="8" :lg="4" :xl="4" v-if="isDealLogin">
|
|
|
- <view class="custom-money">
|
|
|
- <view class="left">
|
|
|
- <view class="tit">
|
|
|
- <text>{{ t('Documentary.console.item8') }}</text>
|
|
|
- </view>
|
|
|
- <view class="num">
|
|
|
- <text>{{ numberFormat(ChartSetDate.profit || '0.00') }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <view class="tit">
|
|
|
- <text>{{ t('Documentary.console.item9') }}</text>
|
|
|
- </view>
|
|
|
- <view class="num">
|
|
|
- <text>{{ numberFormat(ChartSetDate.profitIncrement || '0.00') }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-col>
|
|
|
+<!-- <uni-col :xs="24" :sm="12" :md="8" :lg="4" :xl="4" v-if="isDealLogin">-->
|
|
|
+<!-- <view class="custom-money">-->
|
|
|
+<!-- <view class="left">-->
|
|
|
+<!-- <view class="tit">-->
|
|
|
+<!-- <text>{{ t('Documentary.console.item8') }}</text>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- <view class="num">-->
|
|
|
+<!-- <text>{{ numberFormat(ChartSetDate.profit || '0.00') }}</text>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- <view class="right">-->
|
|
|
+<!-- <view class="tit">-->
|
|
|
+<!-- <text>{{ t('Documentary.console.item9') }}</text>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- <view class="num">-->
|
|
|
+<!-- <text>{{ numberFormat(ChartSetDate.profitIncrement || '0.00') }}</text>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </uni-col>-->
|
|
|
</uni-row>
|
|
|
</uni-col>
|
|
|
<uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="uni-col-right">
|
|
|
@@ -276,6 +247,7 @@ const getCustomLoginDown = async () => {
|
|
|
if (res.code === Code.StatusOK) {
|
|
|
if (res.data?.length > 0) {
|
|
|
const options = res.data[0]
|
|
|
+ login.value = res.data[0]
|
|
|
loginOptions.value = res.data
|
|
|
isDealLogin.value = options.isDealLogin
|
|
|
ChartSet.value = {
|
|
|
@@ -299,6 +271,7 @@ const ChartSetDate = ref({})
|
|
|
const isDealLogin = ref(false)
|
|
|
const dealDate = ref({})
|
|
|
const SubscribeProfitDate = ref([])
|
|
|
+const login = ref('')
|
|
|
|
|
|
const groupTypeName = (type) => {
|
|
|
if (!type) return '--'
|
|
|
@@ -326,23 +299,9 @@ const groupCurrency = (type) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const groupCurrency1 = (type) => {
|
|
|
- if (type == "GBP") {
|
|
|
- return "£";
|
|
|
- } else if (type == "USD") {
|
|
|
- return "$";
|
|
|
- } else if (type == "EUR") {
|
|
|
- return "€";
|
|
|
- } else if (type == "USC") {
|
|
|
- return "¢";
|
|
|
- } else {
|
|
|
- return "$";
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
-const handleCommand = ({ value }) => {
|
|
|
- const data = { ...value.value }
|
|
|
- console.log(123, data)
|
|
|
+const handleCommand = (value) => {
|
|
|
+ const data = { ...value }
|
|
|
|
|
|
isDealLogin.value = data.isDealLogin
|
|
|
ChartSet.value = {
|