update
This commit is contained in:
@@ -5,7 +5,7 @@ import BulletChat from "../login/BulletChat.vue";
|
||||
import XInput from "../../components/XInput.vue";
|
||||
import SendMsg from "../../components/SendMsg.vue";
|
||||
import Api from "../../api/index.js";
|
||||
import {showToast} from "../../utils/uils.js";
|
||||
import {showToast, verifyForm} from "../../utils/uils.js";
|
||||
|
||||
const form = reactive({
|
||||
mobile: null,
|
||||
@@ -15,7 +15,16 @@ const form = reactive({
|
||||
invite: null,
|
||||
});
|
||||
|
||||
const rules = {
|
||||
mobile: {
|
||||
reg: /^1[3-9]\d{9}$/,
|
||||
msg: '手机号错误'
|
||||
},
|
||||
wechat: {}
|
||||
};
|
||||
|
||||
const success = async () => {
|
||||
verifyForm(form, rules);
|
||||
const {msg} = await Api.system.register(form);
|
||||
showToast(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user