Przeglądaj źródła

重置密码发送验证码

541469799@qq.com 1 rok temu
rodzic
commit
d02e44a4cd

+ 1 - 1
app/index/service/passport/MailCaptcha.php

@@ -100,7 +100,7 @@ class MailCaptcha extends BaseService
 
             //Content
             //$mail->isHTML(true);                                  //Set email format to HTML
-            $mail->Subject = 'Captcha';
+            $mail->Subject = 'Password';
             $mail->Body = 'Your captcha is ' . $smsCaptcha['code'] . '.Please use it in 15 minutes';
             $mail->AltBody = 'This is the Your captcha for Free Shipping Vapes';
 

+ 1 - 1
app/index/view/index/index.html

@@ -35,7 +35,7 @@
                 <p class="tabUnderline"></p>
             </div>
             <div class="tabItem goodsModelTabItem" data-type="best">
-                <h3 class="tabName">BEST SELLERS</h3>
+                <h3 class="tabName">SPECIAL OFFER</h3>
                 <img class="tabLink" src="/assets/index/asstes/icon/tabLinkIcon.png" alt="">
                 <p class="tabUnderline"></p>
             </div>

+ 25 - 0
app/index/view/passport/retrievePassword.html

@@ -124,6 +124,31 @@
                     countdown--;
                 }
             }, 1000);
+
+            const dp = {
+                form: {
+                    mobile: email,
+                }
+            };
+
+            $.ajax({
+                url: "/index/captcha/sendEmailCaptcha",
+                headers: {platform: 'H5'},
+                dataType: 'json',
+                data: JSON.stringify(dp),
+                type: "POST",
+                contentType: 'application/json',
+                success: function (obj) {
+                    console.log(obj);
+                    //return false;
+                    //注册成功后进入
+                    if (obj.status === 200 || obj.status === '200') {
+                        showToast('Your captcha has been Sent.')
+                    } else {
+                        showToast('Please try again later.')
+                    }
+                }
+            })
         });
 
         //找回密码