Commit 5d0d6579 authored by tanjuanjuan's avatar tanjuanjuan

测试

parent d42b14f0
......@@ -13,10 +13,10 @@
@change="handleIDChange" />
<wd-calendar label="开始日期" :show-confirm="false" prop="accrymBegn" v-model="model.accrymBegn"
placeholder="请选择开始日期" @confirm="confirmStartDate" :min-date="1600000001745"/>
placeholder="请选择开始日期" @confirm="confirmStartDate" :min-date="1600000001745" />
<wd-calendar label="结束日期" :show-confirm="false" prop="accrymEnd" v-model="model.accrymEnd"
placeholder="请选择结束日期" @confirm="confirmEndDate" :min-date="1600000001745"/>
placeholder="请选择结束日期" @confirm="confirmEndDate" :min-date="1600000001745" />
</wd-cell-group>
<view class="footer">
......@@ -27,17 +27,17 @@
<view class="container notform" v-else>
{{test}}
<template v-for="item in results">
<wd-card type="rectangle" custom-class="insuitem">
<template #title>
<view>缴费时间:{{getDate(item.clctTime)}}</view>
</template>
<view>险种类型:{{item.insutype}}</view>
<view>参保身份:{{item.insuIdet}}</view>
<view>缴费金额:{{item.psnClctAmt}}</view>
<template #footer>
<wd-button size="small" plain>查看详情</wd-button>
</template>
</wd-card>
<wd-card type="rectangle" custom-class="insuitem">
<template #title>
<view>缴费时间:{{getDate(item.clctTime)}}</view>
</template>
<view>险种类型:{{item.insutype}}</view>
<view>参保身份:{{item.insuIdet}}</view>
<view>缴费金额:{{item.psnClctAmt}}</view>
<template #footer>
<wd-button size="small" plain>查看详情</wd-button>
</template>
</wd-card>
</template>
</view>
<!--<view class="container" v-else>
......@@ -68,10 +68,10 @@
<script setup lang="ts">
import type { FormRules } from 'wot-design-uni/components/wd-form/types';
const test=ref()
const test = ref()
const form = ref()
const formFlag = ref(true)
let submitstr=""
let submitstr = ""
const navBarTitle = computed(() => {
let str = !formFlag.value ? "结果" : ""
return "居民缴费进度查询" + str;
......@@ -81,9 +81,9 @@
accrymBegn: 1600000001745,
accrymEnd: 1700000001745
})
const pageSize="10"
const currentPage="1"
const results=ref([])
const pageSize = "10"
const currentPage = "1"
const results = ref([])
const rules : FormRules = {
certno: [
{
......@@ -104,45 +104,38 @@
}
]
}
const convertToJson=()=>{
const convertToJson = () => {
//const normalobj={...model,pageNum:currentPage,pageSize,psnNo:'52000002000000000400011816'};
const normalobj={certno:model.certno,pageNum:currentPage,pageSize,psnNo:'52000002000000000400011816'};
const normalobj = { certno: model.certno, pageNum: currentPage, pageSize, psnNo: '52000002000000000400011816' };
//const normalobj={...model,pageNum:currentPage,pageSize,psnNo:'52000002000000000400011816'};
submitstr=JSON.stringify(normalobj)
submitstr = JSON.stringify(normalobj)
}
const getDate=(timestamp)=>{
const getDate = (timestamp) => {
//const year =
}
onLoad(() => {
model.certno = "520202199704155913"
xma.xh.getUserProfile({
range: ['CITIZEN'],
success(info) {
// console.log("in on load");
// info.data:
// { uAvatar: '', uIdCardNo: '', uMobile: '', uName: '', uNickname: '', uid: '' }
xma.request({
url: 'https://onemoment.gywb.cn/back/one-visit/one-visit/web/oneVisit/getXinhuaDecrypt',
method: 'POST',
data: {
appid: 'dffb71ae33637ab293036b2c2a419127',
systemcode: 'my-centre',
type: 'sgy',
encryptDataMap: info.data,
},
success(res) {
//formData.value.xm = res.data.uName;
//formData.value.sfz = res.data.uIdCardNo;
//formData.value.sjh = res.data.uMobile;
model.certno = res.data?.uIdCardNo.replace(/^(.{6})(?:\w+)(.{4})$/, '\$1******\$2');// eslint-disable-line
},
});
// xma.xh.getUserProfile({
// range: ['CITIZEN'],
// success(info) {
// xma.request({
// url: 'https://onemoment.gywb.cn/back/one-visit/one-visit/web/oneVisit/getXinhuaDecrypt',
// method: 'POST',
// data: {
// appid: 'dffb71ae33637ab293036b2c2a419127',
// systemcode: 'my-centre',
// type: 'sgy',
// encryptDataMap: info.data,
// },
// success(res) {
// model.certno = res.data?.uIdCardNo.replace(/^(.{6})(?:\w+)(.{4})$/, '\$1******\$2');// eslint-disable-line
// },
// });
}
});
// }
// });
})
const handleClickLeft = () => {
console.log("left")
......@@ -168,14 +161,14 @@
method: "POST",
format: "json",
data: {
"biz_content":submitstr,
"url":"/engine/rest/queryRsdtPsnClctDetlList"
"biz_content": submitstr,
"url": "/engine/rest/queryRsdtPsnClctDetlList"
},
success: (res) => {
console.log("***")
console.log(res.data?.biz_data?.body?.data?.data)
results.value=res.data?.biz_data?.body?.data?.data||[]
formFlag.value=false
results.value = res.data?.biz_data?.body?.data?.data || []
formFlag.value = false
}
})
}
......@@ -198,14 +191,17 @@
padding: 10rpx;
box-sizing: border-box;
}
.container.notform{
background:rgb(246, 246, 246);
.container.notform {
background: rgb(246, 246, 246);
}
}
.custom-text {
color: rgb(85, 170, 255)
}
.insuitem{margin-bottom:20px;}
.insuitem {
margin-bottom: 20px;
}
</style>
\ No newline at end of file
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