Page({
  data: {
    resultData: [
      {
        name: 'phone',
        value: 'dsasfaf',
      },
      {
        name: 'password',
        value: '15151',
      },
    ],
  },

  handleSubmit(ev) {
    const value = ev.detail.value;
    const resultData = [];
    for (let name in value) {
      resultData.push({
        name,
        value: value[name],
      });
    }
    this.setData({
      resultData,
    });
    console.log(resultData)
  },

  onShow() {
    this.setData({ hasHiddenTabBar: true })
    ty.hideMenuButton()
  },
  
  getRegister() {
    ty.navigateTo({url: '/pages/register/index'})
  },

})
