|
@@ -17,8 +17,8 @@ Page({
|
|
|
},
|
|
|
initValidate() {
|
|
|
const rules = {
|
|
|
- phone: { required: true, tel: true },
|
|
|
- password: { required: true, },
|
|
|
+ phone: { required: false, tel: true },
|
|
|
+ password: { required: false, },
|
|
|
}
|
|
|
// 验证字段的提示信息,若不传则调用默认的信息
|
|
|
const messages = {
|
|
@@ -38,12 +38,17 @@ Page({
|
|
|
})
|
|
|
return false
|
|
|
} else {
|
|
|
- console.log(params);
|
|
|
wx.switchTab({
|
|
|
url: '/pages/home/index',
|
|
|
})
|
|
|
- // wx.redirectTo({
|
|
|
- // url: '/pages/home/index'
|
|
|
+ // wx.getUserProfile({
|
|
|
+ // desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
+ // success: (res) => {
|
|
|
+ // app.globalData.userInfo = res
|
|
|
+ // wx.switchTab({
|
|
|
+ // url: '/pages/home/index',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
// })
|
|
|
}
|
|
|
},
|