|
|
@@ -38,7 +38,7 @@
|
|
|
ibInfo.ibNo }}</span> <span
|
|
|
v-t="'Label.CommissionBalance'"></span>
|
|
|
<span>:</span><span class="text-danger">${{ balanceInt
|
|
|
- }}.{{ balanceDecimal }}</span>
|
|
|
+ }}.{{ balanceDecimal }}</span>
|
|
|
</h5>
|
|
|
</view>
|
|
|
|
|
|
@@ -81,7 +81,7 @@
|
|
|
<checkbox value="1" :checked="form.agree5" />
|
|
|
<text>{{
|
|
|
t('news_add_field1.activitiesNZTwo.itemDeposit1')
|
|
|
- }}</text>
|
|
|
+ }}</text>
|
|
|
|
|
|
<p
|
|
|
style="margin-top: 10px;line-height: 1.5; font-size: 14px">
|
|
|
@@ -90,7 +90,7 @@
|
|
|
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">{{
|
|
|
@@ -98,7 +98,7 @@
|
|
|
}}</text>
|
|
|
<text>{{
|
|
|
t('news_add_field1.activitiesNZTwo.itemDeposit4')
|
|
|
- }}</text>
|
|
|
+ }}</text>
|
|
|
</p>
|
|
|
|
|
|
</label>
|
|
|
@@ -121,7 +121,7 @@
|
|
|
style="margin-top: 10px; line-height: 1.5; font-size: 14px">
|
|
|
<text> {{
|
|
|
t('news_add_field1.activitiesNewList.item1')
|
|
|
- }}{{
|
|
|
+ }}{{
|
|
|
t('news_add_field1.activitiesNewList.item2')
|
|
|
}}</text>
|
|
|
</view>
|
|
|
@@ -135,9 +135,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <view type="submit" value="Submit"
|
|
|
+ <view @click="toTransfer"
|
|
|
class="btn btn-danger waves-effect waves-light"><i
|
|
|
- class="fi fi-rs-check"></i> {{t('Btn.Submit')}}
|
|
|
+ class="fi fi-rs-check"></i>
|
|
|
+ {{ t('Btn.Submit') }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-forms>
|
|
|
@@ -282,6 +283,7 @@ const rules = {
|
|
|
},
|
|
|
{
|
|
|
validateFunction: (rule, value, data, callback) => {
|
|
|
+ value = Number(value)
|
|
|
if (!value) {
|
|
|
callback(t('vaildate.amount.format'))
|
|
|
} else if (
|
|
|
@@ -296,6 +298,8 @@ const rules = {
|
|
|
amountLimits.maxAmount)
|
|
|
} else if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
|
|
|
callback(t('vaildate.amount.format'))
|
|
|
+ } else if (value > balance.value) {
|
|
|
+ callback(t('Label.LoginBalance') + ':$' + balance.value);
|
|
|
}
|
|
|
return true
|
|
|
}
|
|
|
@@ -347,7 +351,7 @@ const setAllAmount = () => {
|
|
|
validateAmount()
|
|
|
}
|
|
|
function validateAmount() {
|
|
|
- const amount = form.amount
|
|
|
+ const amount = Number(form.amount)
|
|
|
if (!amount) {
|
|
|
amountErrorMessage.value = t('vaildate.amount.format')
|
|
|
return false
|
|
|
@@ -369,6 +373,10 @@ function validateAmount() {
|
|
|
amountErrorMessage.value = t('vaildate.amount.format')
|
|
|
return false
|
|
|
}
|
|
|
+ if (amount > balance.value) {
|
|
|
+ amountErrorMessage.value = t('Label.LoginBalance') + ':$' + balance.value
|
|
|
+ return false
|
|
|
+ }
|
|
|
amountErrorMessage.value = ''
|
|
|
return true
|
|
|
}
|