Commit f043c708 authored by tanjuanjuan's avatar tanjuanjuan

添加psn查询

parent 4dcd8d24
......@@ -25,7 +25,7 @@
</view>
</wd-form>
<wd-toast /><wd-button @click="showToast">toast</wd-button>
<wd-message-box></wd-message-box><wd-button @click="showToast">toast</wd-button>
</view>
<view class="container notform" v-else>
<template v-for="item in results" v-if="results.length>0">
......@@ -50,9 +50,9 @@
<script setup lang="ts">
import type { FormRules } from 'wot-design-uni/components/wd-form/types';
import { useToast } from 'wot-design-uni'
import { useMessage } from 'wot-design-uni';
import dayjs from 'dayjs';
const toast = useToast();
const message = useMessage();
const form = ref()
const formFlag = ref(true)
//表单提交 序列号字符串
......@@ -65,9 +65,9 @@
return "居民缴费进度查询" + str;
})
const model = reactive({
certno: 0,
accrymBegn: 1600000001745,
accrymEnd: 1700000001745
certno:null,
accrymBegn: null,
accrymEnd: null
})
const psnNo = ref(0)
const completeIDNumber = ref(0)
......@@ -101,7 +101,7 @@
submitstr = JSON.stringify(normalobj)
}
const showToast = () => {
toast.show('提示信息')
message.alert('操作成功')
}
const goToDetail = (info) => {
......@@ -145,7 +145,11 @@
psnNo.value = res.data?.biz_data?.body?.data[0]?.psnNo
console.log("goto if")
} else {
setTimeout(()=>{toast.warning(res.data?.biz_data?.body?.message)},10000)
setTimeout(()=>{message.alert(res.data?.biz_data?.body?.message)
model.certno=null;
model.accrymBegn=null;
model.accrymEnd=null;
},200)
console.log("goto else")
}
......
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