|
|
@@ -11,6 +11,15 @@
|
|
|
<view class="box box-step2">
|
|
|
<view class="b-card">
|
|
|
<view class="card-top">
|
|
|
+ <view class="tit">
|
|
|
+ <text v-t="'Label.AgentNumber'"></text>
|
|
|
+ <text>:{{ ibInfo.ibNo }}</text>
|
|
|
+ <text class="balance-kg"></text>
|
|
|
+ <text v-t="'Label.CommissionBalance'"></text>
|
|
|
+ <text>:$</text>
|
|
|
+ <text>{{ balanceInt }}</text>
|
|
|
+ <text>.{{ balanceDecimal }}</text>
|
|
|
+ </view>
|
|
|
<uni-forms ref="formRef" :model="form" :rules="rules" label-width="300" label-position="top"
|
|
|
validate-trigger="submit">
|
|
|
<view class="form-row">
|
|
|
@@ -43,18 +52,18 @@
|
|
|
<label class="checkbox">
|
|
|
<checkbox value="1" :checked="form.agree5" />
|
|
|
<text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit1')
|
|
|
- }}</text>
|
|
|
+ }}</text>
|
|
|
|
|
|
<view style="margin-top: 10px;line-height: 1.5; font-size: 14px">
|
|
|
<text class="crm-cursor" @click.stop="dialogCheckTip = true">{{
|
|
|
t('Custom.Withdraw.Des') }}</text>
|
|
|
<text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2')
|
|
|
- }}</text>
|
|
|
+ }}</text>
|
|
|
<text class="clause crm-cursor" style="text-decoration: underline;"
|
|
|
@click.stop="dialogClauseNZTwo = true">{{
|
|
|
t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
|
|
|
<text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4')
|
|
|
- }}</text>
|
|
|
+ }}</text>
|
|
|
</view>
|
|
|
|
|
|
</label>
|
|
|
@@ -124,12 +133,12 @@ import { activityApi } from '@/service/activity'
|
|
|
import Config from '@/config/index'
|
|
|
import useUserStore from '@/stores/use-user-store'
|
|
|
import BonusAgreementPopup from './components/BonusAgreementPopup.vue'
|
|
|
-
|
|
|
+import { useFilters } from '@/composables/useFilters'
|
|
|
+const { numberFormat } = useFilters()
|
|
|
const userStore = useUserStore()
|
|
|
const ibInfo = computed(() => {
|
|
|
return userStore?.userInfo?.ibInfo || {}
|
|
|
})
|
|
|
-
|
|
|
const { Code } = Config
|
|
|
const { t, locale } = useI18n()
|
|
|
const activeTab = ref(1)
|
|
|
@@ -266,20 +275,26 @@ const onAgree5Change = (e) => {
|
|
|
const onAgree6Change = (e) => {
|
|
|
form.agree6 = e.detail.value.length > 0
|
|
|
}
|
|
|
-const customAmount = ref(0)
|
|
|
+const balanceInt = computed(() => {
|
|
|
+ return numberFormat(balance.value || 0, true)[0]
|
|
|
+})
|
|
|
+const balanceDecimal = computed(() => {
|
|
|
+ return numberFormat(balance.value || 0, true)[1] || '00'
|
|
|
+})
|
|
|
+const balance = ref(0)
|
|
|
//获取基础信息
|
|
|
const getDateList = async () => {
|
|
|
let res = await ibApi.IbData({});
|
|
|
if (res.code == Code.StatusOK) {
|
|
|
if (res.data != null) {
|
|
|
- customAmount.value = res.data.customAmount
|
|
|
+ balance.value = res.data.balance
|
|
|
}
|
|
|
} else {
|
|
|
uni.showToast({ title: res.msg, icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
const setAllAmount = () => {
|
|
|
- form.amount = customAmount
|
|
|
+ form.amount = balance.value
|
|
|
validateAmount()
|
|
|
}
|
|
|
function validateAmount() {
|
|
|
@@ -474,6 +489,7 @@ async function transferConfig() {
|
|
|
flag.value = false
|
|
|
resetForm()
|
|
|
if (dialogCheckWait.value) dialogCheckWait.value = false
|
|
|
+ getDateList()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -684,16 +700,38 @@ onLoad((options) => {
|
|
|
|
|
|
.tit {
|
|
|
font-size: px2rpx(16);
|
|
|
- margin-bottom: px2rpx(12);
|
|
|
font-weight: 600;
|
|
|
+ margin-bottom: px2rpx(16);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: var(--color-navy-900);
|
|
|
+ position: relative;
|
|
|
+ padding-left: 20px;
|
|
|
+
|
|
|
+ &:after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border-top: 6px solid transparent;
|
|
|
+ border-bottom: 6px solid transparent;
|
|
|
+ border-left: 8px solid currentColor;
|
|
|
+ }
|
|
|
|
|
|
.iconfont {
|
|
|
- font-size: px2rpx(18);
|
|
|
margin-right: px2rpx(8);
|
|
|
- color: #409eff;
|
|
|
+ color: var(--color-primary);
|
|
|
+ font-size: px2rpx(18);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .balance-kg {
|
|
|
+ width: px2rpx(20);
|
|
|
+ }
|
|
|
+
|
|
|
.title-wrapper {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|