Commit f391cf34 authored by chenqikuai's avatar chenqikuai

feat:选择手机后emit相关数据

parent f5f536e9
......@@ -8,6 +8,7 @@
:value="phone"
:type="phoneConfig.type"
@change="handlePhoneChange"
@selectItem="handleSelect"
>
</PhoneInput>
<transition name="fade" mode="out-in">
......@@ -111,6 +112,7 @@ import Vue, { PropType } from "vue";
import {
eAccountType,
eLoginWay,
iRememberPhonePwd,
tAccountStatusCheckFunc,
tLoginByCodeFunc,
tLoginByPwdFunc,
......@@ -192,6 +194,10 @@ export default Vue.extend({
};
},
methods: {
handleSelect(item: iRememberPhonePwd) {
this.phone = item.phone;
this.pwd = item.pwd;
},
handleClickRadio() {
this.checkStatus = !this.checkStatus;
},
......
......@@ -45,6 +45,7 @@
bg-font-light-black
hover:bg-font-black
"
@click="handleClickPhoneItem(item)"
>
<div class="ml-4">{{ item.phone }}</div>
<img
......@@ -106,6 +107,9 @@ export default Vue.extend({
};
},
methods: {
handleClickPhoneItem(item: iRememberPhonePwd) {
this.$emit("selectItem", item);
},
handleChange(v: string) {
this.$emit("change", v);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment