zhang 1 年之前
父节点
当前提交
6fec8e81f4
共有 1 个文件被更改,包括 21 次插入20 次删除
  1. 21 20
      pages/user/set/transaction.vue

+ 21 - 20
pages/user/set/transaction.vue

@@ -41,12 +41,12 @@ export default {
 		...mapState(['userInfo'])
 		...mapState(['userInfo'])
 	},
 	},
 	onLoad() {
 	onLoad() {
-		if(this.userInfo.phone == null){
+		// if(this.userInfo.phone == null){
-			this.account = '';
+		// 	this.account = '';
-		}else{
+		// }else{
-			this.account = this.userInfo.phone;
+		// 	this.account = this.userInfo.phone;
-			this.show = false;
+		// 	this.show = false;
-		}
+		// }
 		uni.setNavigationBarTitle({
 		uni.setNavigationBarTitle({
 			title: this.$t("tab.b3"),
 			title: this.$t("tab.b3"),
 		});
 		});
@@ -92,20 +92,21 @@ export default {
 		},
 		},
 	
 	
 		confirm(e) {
 		confirm(e) {
-		    // 检查两次输入的新密码是否一致
+		  this.loding = true;
-		    if (this.password === this.repeat) {
+		  Reset({
-		      // 发送请求或执行逻辑来修改密码
+		  	account: this.account,
-		      // 根据具体需求进行操作
+		  	captcha: this.captcha,
-		      console.log('密码修改成功');
+		  	password: this.password,
-		      // 更新交易密码
+			repeat: this.repeat
-		      this.password = this.repeat;
+		  })
-		      // 清空输入框
+		  	.then(({ data }) => {
-		      this.password = '';
+		  		this.loding = false;
-		      this.repeat = '';
+		  		this.$api.msg('修改成功');
-		    } else {
+		  	})
-		      console.log('两次输入的密码不一致');
+		  	.catch(err => {
-		    }
+		  		this.loding = false;
-		  
+		  		console.log(err);
+		  	});
 		}
 		}
 	}
 	}
 };
 };