Commit 4d277e41 by zeyang

1.优化查询逻辑

parent 66b7ffab
......@@ -10,7 +10,7 @@
<span></span>手机号:
</view>
<view>
<input v-model="queryObj.userTel" style="font-size: 28rpx;" type="number" maxlength="11" placeholder="请输入手机号" placeholder-style="font-size:26rpx">
<input @input="changeInput" v-model="queryObj.userTel" style="font-size: 28rpx;" type="number" maxlength="11" placeholder="请输入手机号" placeholder-style="font-size:26rpx">
</view>
</view>
<view class="queryItem">
......@@ -18,7 +18,7 @@
<span></span>证书号:
</view>
<view>
<input v-model="queryObj.authenticationCode" style="font-size: 28rpx;" type="text" placeholder="请输入证书编号" placeholder-style="font-size:26rpx">
<input @input="changeInput" v-model="queryObj.authenticationCode" style="font-size: 28rpx;" type="text" placeholder="请输入证书编号" placeholder-style="font-size:26rpx">
</view>
</view>
<view @click="c_query" v-if="machineType=='pc'" class="buttonBox">
......@@ -66,7 +66,11 @@
let memberObj:any = ref([]);
let machineType = ref(null);
let queryObj = ref({userTel:null,authenticationCode:null})
const changeInput = ()=>{
}
const c_query = ()=>{
memberObj.value =[];
if(!queryObj.value.authenticationCode && !queryObj.value.userTel){
uni.showToast({
title:'手机号和证书号不能同时为空',
......
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