Browse Source

bug修复

chenjj 3 days ago
parent
commit
ba57f9888a

+ 1 - 1
components/CustomTabBar/index.vue

@@ -235,7 +235,7 @@ color: #000000;
 
 .menuIcon {
     position: relative;
-    top: 16rpx;
+   
 }
 
 .message-style {

+ 2 - 2
pages_home/pages/register/index.vue

@@ -234,11 +234,11 @@ const validatePriceInput = (value) => {
 	console.log("TCL: validatePriceInput -> value", value)
 	// 确保输入是纯数字
 	if (!/^\d*$/.test(value)) {
-		serviceKeys.price = value.replace(/\D/g, ''); // 移除非数字字符
+		serviceKeys.price = value.replace(/[^0-9.]/g,  '');// 移除非数字字符
 		return;
 	}
 
-	const price = parseInt(serviceKeys.price, 10);
+	const price = parseFloat(serviceKeys.price, 10);
 
 	// 检查是否在允许的范围之内
 	if (min_max_price.value.minPrice !== undefined && min_max_price.value.maxPrice !== undefined) {

+ 5 - 3
pages_mine/pages/wallet/index.vue

@@ -73,9 +73,11 @@ const data = ref({
 const onWithdrawal = () => {
     getWithdrawStatus().then(res => {
         if(res.code === 200){
-        uni.navigateTo({
-                url: '/pages_mine/pages/withdrawal/index'
-            })
+        // uni.navigateTo({
+        //         url: '/pages_mine/pages/withdrawal/index'
+        //     })
+
+            uni.redirectTo({ url: `/pages_mine/pages/withdrawal/index` });
         }
     })