Browse Source

user-serve

lhl 1 year ago
parent
commit
fdcc36ea48
1 changed files with 10 additions and 1 deletions
  1. 10 1
      pages/users/user_payment/index.vue

+ 10 - 1
pages/users/user_payment/index.vue

@@ -57,9 +57,12 @@
 						</view>
 					</view>
 					<view class="tip" v-else>
-						<view class='input'><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng"
+						<view class='input' v-if="is_gq != 1"><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng"
 								placeholder="0.00" type='digit' placeholder-class='placeholder' :value="number"
 								name="number"></input></view>
+						<view class='input' v-else><text>¥</text><input @input='inputNum' :maxlength="moneyMaxLeng"
+								placeholder="0" type='number' placeholder-class='placeholder' :value="number"
+								name="number"></input></view>
 						<view class="tips-title" v-if="is_gq != 1">
 							<view style="font-weight: bold; font-size: 26rpx;">提示:</view>
 							<view style="margin-top: 10rpx;">当前可转入佣金为 <text
@@ -500,6 +503,11 @@
 							title: '请输入金额'
 						});
 					}
+					if(parseFloat(value)%1 !== 0) {
+						return that.$util.Tips({
+							title: '请输入整数'
+						});
+					}
 					if(parseFloat(value) >parseFloat(that.staffInfo.shareholding)) {
 						return that.$util.Tips({
 							title: '您当前的股权不足'
@@ -523,6 +531,7 @@
 								title: '请输入金额'
 							});
 						}
+						
 						uni.showModal({
 							title: '转入余额',
 							content: '转入余额后无法再次转出,确认是否转入余额',