Commit cb9f1ead authored by youjie's avatar youjie

no message

parent d7fa1e2f
......@@ -103,8 +103,9 @@
<view class="header-text">输入该账号注册的手机号</view>
<view class="header-input">
<van-cell-group>
<van-field type="tel" :value="Account" placeholder="输入手机号"
clearable input-align="center" right-icon="search" @blur="usernameInput" @click-icon="clickIcon"/>
<van-field type="tel" :value="Account" placeholder="输入手机号"
clearable input-align="center" right-icon="search" @blur="usernameInput"
@click-icon="clickIcon"/>
</van-cell-group>
</view>
</view>
......@@ -175,7 +176,7 @@
msg: {
pageIndex: 1,
pageSize: 10,
KeyWords: '182155',//关键词
StuTel:'',//13823311062
},
pageCount: 0,
dataList: [],
......@@ -202,11 +203,29 @@
},
clickIcon(){
that.getData()
var phonereg = 11 && /^((13|14|15|16|17|18|19)[0-9]{1}\d{8})$/
if (!phonereg.test(data.msg.StuTel)) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none',
duration: 1000
})
} else {
that.getData()
}
},
usernameInput(val) {
data.msg.KeyWords = val.detail.value
that.getData()
var phonereg = 11 && /^((13|14|15|16|17|18|19)[0-9]{1}\d{8})$/
if (!phonereg.test(val.detail.value)) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none',
duration: 1000
})
} else {
data.msg.StuTel = val.detail.value
that.getData()
}
},
async addChild(){
if(!data.form.StuId){
......@@ -259,7 +278,7 @@
};
let that = methods;
onMounted(() => {
that.getData()
// that.getData()
});
return {
...toRefs(data),
......
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