@@ -42,8 +42,10 @@ Page({
} = r;
wx.setStorageSync('phone', phone);
wx.setStorageSync('code', code);
- this.data.phone = phone;
- this.data.code = code;
+ this.setData({
+ phone,
+ code
+ })
})
},
submit() {