Переглянути джерело

feat:余额判断bug修复

zhanghui 2 роки тому
батько
коміт
bd4e20fef5
2 змінених файлів з 3 додано та 1 видалено
  1. 2 0
      components/pay/pay.vue
  2. 1 1
      orderPages/bookService/index.vue

+ 2 - 0
components/pay/pay.vue

@@ -192,7 +192,9 @@
 				// 	uni.$u.toast('余额不足')
 				// 	return
 				// }
+				console.log(this.selectBlPay)
 				if (!this.selectBlPay && num == 1) {
+					console.log(this.selectBlPay)
 					uni.$u.toast('余额不足')
 					return
 				}

+ 1 - 1
orderPages/bookService/index.vue

@@ -138,7 +138,7 @@
 				</view>
 			</view>
 		</view>
-		<myPay ref="myPay" :selectBlPay="userInfo.balance >= price" :balance="userInfo.balance" :totalAmount="price"
+		<myPay ref="myPay" :selectBlPay="userInfo.balance *1 >= price *1" :balance="userInfo.balance" :totalAmount="price"
 			   :orderNo="subOrderNo" @payResult="payResult" @improperClose="improperClose"></myPay>
 	</view>
 </template>