--我的页面修改

This commit is contained in:
li tong bao
2022-06-08 19:11:28 +08:00
parent 83a5393949
commit dc30fc43c4
7 changed files with 204 additions and 36 deletions
+3 -1
View File
@@ -40,6 +40,8 @@
font-weight: 400;
color: #ffffff;
display: flex;align-items: center;justify-content: center;
margin: 620px auto 0;
// margin: 620px auto 0;
position: fixed;left: 50%;bottom: 50px;
transform: translateX(-50%);
}
}
+4 -1
View File
@@ -54,7 +54,10 @@ export default ()=>{
})
const rules = {
name: [{
message: "请输入收货人姓名"
message: "请输入正确收货人姓名",
validator: (value:any, rule:any)=>{ // 自定义验证,返回true表示匹配到了(错误)
return value.length>5;
}
}],
phone: [{
message: "请输入正确的电话号码", regex: /^1[3|5|6|9|2|8|7]\d{9}$/