美化了样式
This commit is contained in:
@ -40,7 +40,7 @@ Page({
|
||||
|
||||
// 发送验证码
|
||||
getSmsCode() {
|
||||
const { phone } = this.data;
|
||||
const { phone, role } = this.data;
|
||||
// 1. 非空
|
||||
if (!validate(this.data, { phone: '请输入手机号' })) return;
|
||||
// 2. 格式
|
||||
@ -51,7 +51,7 @@ Page({
|
||||
wx.request({
|
||||
url: baseUrl + '/userInfo/code/pwd',
|
||||
method: 'POST',
|
||||
data: { templateString: phone },
|
||||
data: { phoneNumber: phone, userRole: role },
|
||||
success: (res) => {
|
||||
if (res.data.code === 1) {
|
||||
wx.showToast({ title: '验证码已发送', icon: 'none' });
|
||||
|
Reference in New Issue
Block a user