MONSTER-ygh 1 年間 前
コミット
0a2b25aadc
2 ファイル変更4 行追加3 行削除
  1. 3 3
      pages/cash/index.vue
  2. 1 0
      pages/me/index.vue

+ 3 - 3
pages/cash/index.vue

@@ -26,7 +26,7 @@
 						<view class="cash-content-cash-money">
 							<text class="cash-content-cash-money-icon">¥</text>
 							<view class="cash-content-cash-input">
-								<u--input readonly placeholder="请输入内容" border="none" clearable type="number" v-model="moneyValue"
+								<u--input :readonly="true" placeholder="请输入内容" border="none" clearable type="number" v-model="moneyValue"
 									@change="moneyAccountFun"></u--input>
 							</view>
 
@@ -325,14 +325,14 @@
 			moneyAccountFun() {
 				let money = ''
 				if (this.withdrawInfo.serviceType == 1) {
-					money = this.moneyValue - (isNaN(this.withdrawInfo.serviceCharge) ? 0 : this.withdrawInfo
+					money = (isNaN(this.withdrawInfo.serviceCharge) ? 0 : this.withdrawInfo
 						.serviceCharge)
 				} else if (this.withdrawInfo.serviceType == 2) {
 					let num1 = this.withdrawInfo.serviceCharge;
 					let num = isNaN(num1) ? 0 : (Number(num1) / 100)
 					money = num ? new Decimal(this.moneyValue).mul(new Decimal(num)) : 0
 				}
-				this.moneyAccount = money < 0 ? '金额小于零' : new Decimal(this.moneyValue).sub(new Decimal(money.toFixed(2)))
+				this.moneyAccount = money < 0 ? '金额小于零' : new Decimal(this.moneyValue).sub(new Decimal(money.toFixed(2)))
 			},
 			browserBack() {
 				console.log(1);

+ 1 - 0
pages/me/index.vue

@@ -32,6 +32,7 @@
 				v-for="(item,index) in tool"
 				:key="index"
 				@click="navigateToFun(item)"
+				v-if="(userInfo.withdrawTotal == 1 && item.title=='余额提现')||item.title!='余额提现'"
 				>
 					<image 
 					class="me-tool-item-icon"