<!-- @format -->

<template>
  <view class="container">
    <u-form ref="uForm" labelWidth="160" labelPosition="top">
      <u-form-item label="单位统一社会信用代码">
        <u-input disabled :value="form.adminUserName"></u-input>
      </u-form-item>
      <u-form-item label="单位管理码">
        <u-input disabled :value="form.adminUserPwdOriginal"> </u-input>
      </u-form-item>
      <u-form-item label="用户账号" prop="mechanismName">
        <u-input
          placeholder="请输入单位的信用代码"
          v-model="form.userName"
        ></u-input>
      </u-form-item>
      <u-form-item label="用户密码" prop="mechanismPassword">
        <u-input
          placeholder="请输入单位管理码"
          v-model="form.userPwdOriginal"
        ></u-input>
      </u-form-item>
      <u-form-item>
        <u-button type="primary" @click="handleback">返回登录</u-button>
      </u-form-item>
    </u-form>
  </view>
</template>
<script>
export default {
  data() {
    return {
      form: {
        adminUserName: null,
        adminUserPwdOriginal: null,
        userName: null,
        userPwdOriginal: null,
      },
    };
  },

  onLoad(options) {
    Object.keys(this.form).forEach((key) => {
      this.form[key] = options[key];
    });
  },
  methods: {
    handleback() {
      uni.navigateTo({
        url: `/pages/login`,
        success: (res) => {},
        fail: () => {},
        complete: () => {},
      });
    },
  },
};
</script>
<style lang="scss">
.container {
  height: 100vh;
  background: rgb(248, 249, 250);
  padding: 30rpx;
}
</style>
