<!--
 * @Author: jiangzaicheng jiangzaicheng_jzc@163.com
 * @Date: 2022-07-04 15:41:06
 * @LastEditors: jiangzaicheng jiangzaicheng_jzc@163.com
 * @LastEditTime: 2022-07-05 11:33:44
 * @FilePath: \mcep-h5\src\views\authentication\LoginView.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="loginform">
    <div class="rarle">
      <tatle-bar :tatle="tatleName"></tatle-bar>
    </div>

    <div class="login">
      <van-row class="el-icon-arrow-down" style="padding: 10% 0%;">
        <van-col span="24">
          <p class="polog"><span class="font-size-18-dhc" style="padding: 2% 0%;font-weight: 600;">用户注册</span> </p>
        </van-col>
        <van-col span="24"><span class="font-size-12-dhc" style="font-weight: 400; font-family: 'Arial Normal', 'Arial';
}">请使用机号码进行注册</span></van-col>
      </van-row>
      <van-form @submit="onSubmit">
        <div class="logindiv">
          <span class="sopan">手机号码</span>
          <van-field v-model="phone" label="+86   |" :border="true" placeholder="请输入手机号" />
          <van-divider />
        </div>
        <span class="sopan">短信验证码</span>
        <div>

          <van-row class="el-icon-arrow-down">
            <van-col span="16">
              <van-field v-model="sms" center clearable placeholder="请输入短信验证码">
                <!-- <van-divider /> -->
              </van-field>
            </van-col>
            <van-col span="8"><a href="javascript">获取短信验证码</a></van-col>
          </van-row>

          <div class="logindiv">
            <span class="sopan">设置密码</span>
            <van-field v-model="password" type="password" center clearable placeholder="请填写新密码" />
            <!-- <van-divider /> -->
          </div>
          <div class="logindiv">
            <span class="sopan">确认密码</span>
            <van-field v-model="restpassword" type="password" center clearable placeholder="请确认新密码" />
            <!-- <van-divider /> -->
          </div>



        </div>
        <div style="margin: 16px;">
          <van-button square block type="info" native-type="submit">注册</van-button>
        </div>
      </van-form>
        <!-- <van-radio name="1" shape="square" v-model ="radio" @click="returen()">
          <span>本人已阅读<a href="javascpt">《线上金融服务平台注册服务协议》</a></span>
        </van-radio> -->
        <div>
          <van-checkbox v-model="checked" shape="square" style="padding:0% 4%;">
              <span>本人已阅读<a href="javascpt">《线上金融服务平台注册服务协议》</a></span>
          </van-checkbox>
        </div>
    </div>
  </div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Image as VanImage } from 'vant';


@Component({
  name: "ForgetPassView",
  [VanImage.name]: VanImage,
})
export default class ForgetPassView extends Vue {
  tatleName = "密码重置"
  phone: string = "" //电话
  password: string = ""//密码
  restpassword: string = ""//确认密码
  imageSrc: string = ""//图形
  sms: string = ""//短信
 // radio: boolean = false
  radio:string="0"
  checked: boolean = false;
  //获取图形验证码
  _updatePicCode() {
    //请求图形验证码
    this.imageSrc = 'http://localhost:8080/users/sendPicCode?=' + Math.random();
    //this.imageSrc = 'D:\GitClone\H5\mcep-h5\src\assets\images\ZYXTimg.png' + Math.random()
  }
  onSubmit(values: any) {
    console.log('submit', values);
  }
  created() {
    this.$nextTick(() => this._updatePicCode())
  }
  returen() {
    

  }
}
</script>
<style lang="scss" scoped>
.loginform {
  width: 100%;
  height: 100%;
}

.logindiv {
  line-height: 20px;
}

.van-button {
  border-radius: 6px;
}

.polog {
  margin: 0px;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  -webkit-font-feature-settings: "kern";
  -moz-font-feature-settings: "kern";
  -moz-font-feature-settings: "kern=1";
  font-kerning: normal;
}



.van-col--15 {
  margin-top: 2%;
}

.van-col--24 {
  margin-left: 6%;
}

.forget {}

.sopan {

  margin-top: 5px;
  margin-left: 6%;
}

// .login{
//   margin-top: 20%;
// }
</style>
