Browse Source

合伙人-注册接数据

panyong 4 years ago
parent
commit
9b17319a0f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      htmldev/loan/src/views/partner/login/index.vue

+ 7 - 1
htmldev/loan/src/views/partner/login/index.vue

@@ -96,6 +96,11 @@
         sendSMS(partnerPhone, 1, capture).then(res => {
         sendSMS(partnerPhone, 1, capture).then(res => {
           if (res.status) {
           if (res.status) {
             Toast('发送成功')
             Toast('发送成功')
+          } else {
+            Toast(res.msg)
+            this.funUpdateCapture()
+            clearInterval(this.timer)
+            this.numCount = 60
           }
           }
         }).catch(err => {
         }).catch(err => {
           Toast(err.msg)
           Toast(err.msg)
@@ -119,6 +124,7 @@
         return this.arrErrorList.length <= 0
         return this.arrErrorList.length <= 0
       },
       },
       funSubmit () {
       funSubmit () {
+        const { partnerPhone, code } = this.postData
         if (!this.verifyData()) {
         if (!this.verifyData()) {
           Toast({
           Toast({
             message: this.arrErrorList[0],
             message: this.arrErrorList[0],
@@ -130,7 +136,7 @@
           duration: 1000 * 100,
           duration: 1000 * 100,
           forbidClick: true
           forbidClick: true
         })
         })
-        partnerLogin(this.postData).then(res => {
+        partnerLogin(partnerPhone, code).then(res => {
           myToast.clear()
           myToast.clear()
           if (res.status) {
           if (res.status) {
             Toast({
             Toast({