Commit cb9f1ead authored by youjie's avatar youjie

no message

parent d7fa1e2f
...@@ -104,7 +104,8 @@ ...@@ -104,7 +104,8 @@
<view class="header-input"> <view class="header-input">
<van-cell-group> <van-cell-group>
<van-field type="tel" :value="Account" placeholder="输入手机号" <van-field type="tel" :value="Account" placeholder="输入手机号"
clearable input-align="center" right-icon="search" @blur="usernameInput" @click-icon="clickIcon"/> clearable input-align="center" right-icon="search" @blur="usernameInput"
@click-icon="clickIcon"/>
</van-cell-group> </van-cell-group>
</view> </view>
</view> </view>
...@@ -175,7 +176,7 @@ ...@@ -175,7 +176,7 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
KeyWords: '182155',//关键词 StuTel:'',//13823311062
}, },
pageCount: 0, pageCount: 0,
dataList: [], dataList: [],
...@@ -202,11 +203,29 @@ ...@@ -202,11 +203,29 @@
}, },
clickIcon(){ clickIcon(){
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() that.getData()
}
}, },
usernameInput(val) { usernameInput(val) {
data.msg.KeyWords = val.detail.value 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() that.getData()
}
}, },
async addChild(){ async addChild(){
if(!data.form.StuId){ if(!data.form.StuId){
...@@ -259,7 +278,7 @@ ...@@ -259,7 +278,7 @@
}; };
let that = methods; let that = methods;
onMounted(() => { onMounted(() => {
that.getData() // that.getData()
}); });
return { return {
...toRefs(data), ...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