>手機註冊
h3>
<
el-form-item
prop
="tel"
>
<
el-input
type
="text"
v-model.number
="reginform.tel"
placeholder
="手機號碼"
>
el-input
>
el-form-item
>
<
el-form-item
prop
="password"
>
<
el-input
type
="password"
v-model
="reginform.password"
placeholder
="密碼"
>
el-input
>
el-form-item
>
<
div>
<
input
class
="auth_input"
type
="text"
v-model
="verification"
placeholder
="輸入驗證碼"
/>
<
span
v-show
="sendauthcode"
class
="auth_text auth_text_blue"
@click
="getauthcode"
>獲取驗證碼
span
>
<
span
v-show
="!sendauthcode"
class
="auth_text"
>
<
span
class
="auth_text_blue"
>}
span
> 秒之後重新傳送驗證碼
span
>
div>
<
el-form-item
>
<
el-button
type
="success"
class
="submitbtn"
round
@click.native.prevent
="submit"
:loading
="logining"
>
註冊
el-button
>
<
hr>
<
p>已經有賬號,馬上去<
span
class
="to"
@click
="tologin"
>登入
span
>
p>
el-form-item
>
el-form
>
el-main
>
template
>
export defaultelse
} let telcheck = (rule, value, callback) =>
else
if (!number.isinteger(value))
else
if (value.tostring().length !== 11)
else
} return
, logining:
false
, sendauthcode:
true,/*
布林值,通過v-show控制顯示『獲取按鈕'還是『倒計時'
*/auth_time: 0, /*
倒計時 計數器
*/verification:"",//
繫結輸入驗證碼框框
rule:
],tel: ,}
} },
methods: ,
function
(error) )
this.sendauthcode = false
;
//設定倒計時秒
this.auth_time = 10;
var auth_timetimer = setinterval(()=>
}, 1000);
},//
封裝註冊傳送請求方法
thisajax(),).then(function
(response)
, function
(error) )
},//
...submit ()
else
})},
reset () ,
tologin () }}
.regform .submitbtn .to .auth_input.regform[data-v-92def6b0].login-text
傳送手機驗證碼
import random import string import time import hashlib from urllib import parse,request defsend sms 請求的url api 準備headers中的引數 最大128個字元的隨機字串 nonce join ...
python傳送簡訊驗證碼
import random code 驗證碼 for num in range 1,5 code code str random.randint 0,9 2 匯入sdk import zhenzismsclient as smsclient 3 呼叫簡訊平台傳送驗證碼 client smsclien...
C 傳送簡訊驗證碼
在網上查詢了一下攻略,實現起來挺簡單的,本次使用網建簡訊通sms傳送。1.從網上 申請賬號,註冊後會送5條簡訊 和3條彩信的傳送量。2.檢視sms簡訊通api下行介面 然後獲取秘鑰 在這裡可以檢視相應的 例子。本站使用者名稱 key 介面安全秘鑰 smsmob 手機號碼 smstext 驗證碼 88...