Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yibao
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tanjuanjuan
yibao
Commits
5d0d6579
Commit
5d0d6579
authored
Oct 31, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
d42b14f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
56 deletions
+53
-56
index.vue
src/pages/index/index.vue
+53
-56
No files found.
src/pages/index/index.vue
View file @
5d0d6579
...
@@ -13,10 +13,10 @@
...
@@ -13,10 +13,10 @@
@
change=
"handleIDChange"
/>
@
change=
"handleIDChange"
/>
<wd-calendar
label=
"开始日期"
:show-confirm=
"false"
prop=
"accrymBegn"
v-model=
"model.accrymBegn"
<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"
<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>
</wd-cell-group>
<view
class=
"footer"
>
<view
class=
"footer"
>
...
@@ -27,17 +27,17 @@
...
@@ -27,17 +27,17 @@
<view
class=
"container notform"
v-else
>
<view
class=
"container notform"
v-else
>
{{test}}
{{test}}
<
template
v-for=
"item in results"
>
<
template
v-for=
"item in results"
>
<wd-card
type=
"rectangle"
custom-class=
"insuitem"
>
<wd-card
type=
"rectangle"
custom-class=
"insuitem"
>
<template
#
title
>
<template
#
title
>
<view>
缴费时间:
{{
getDate
(
item
.
clctTime
)
}}
</view>
<view>
缴费时间:
{{
getDate
(
item
.
clctTime
)
}}
</view>
</
template
>
</
template
>
<view>
险种类型:{{item.insutype}}
</view>
<view>
险种类型:{{item.insutype}}
</view>
<view>
参保身份:{{item.insuIdet}}
</view>
<view>
参保身份:{{item.insuIdet}}
</view>
<view>
缴费金额:{{item.psnClctAmt}}
</view>
<view>
缴费金额:{{item.psnClctAmt}}
</view>
<
template
#
footer
>
<
template
#
footer
>
<wd-button
size=
"small"
plain
>
查看详情
</wd-button>
<wd-button
size=
"small"
plain
>
查看详情
</wd-button>
</
template
>
</
template
>
</wd-card>
</wd-card>
</template>
</template>
</view>
</view>
<!--<view class="container" v-else>
<!--<view class="container" v-else>
...
@@ -68,10 +68,10 @@
...
@@ -68,10 +68,10 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
FormRules
}
from
'wot-design-uni/components/wd-form/types'
;
import
type
{
FormRules
}
from
'wot-design-uni/components/wd-form/types'
;
const
test
=
ref
()
const
test
=
ref
()
const
form
=
ref
()
const
form
=
ref
()
const
formFlag
=
ref
(
true
)
const
formFlag
=
ref
(
true
)
let
submitstr
=
""
let
submitstr
=
""
const
navBarTitle
=
computed
(()
=>
{
const
navBarTitle
=
computed
(()
=>
{
let
str
=
!
formFlag
.
value
?
"结果"
:
""
let
str
=
!
formFlag
.
value
?
"结果"
:
""
return
"居民缴费进度查询"
+
str
;
return
"居民缴费进度查询"
+
str
;
...
@@ -81,9 +81,9 @@
...
@@ -81,9 +81,9 @@
accrymBegn
:
1600000001745
,
accrymBegn
:
1600000001745
,
accrymEnd
:
1700000001745
accrymEnd
:
1700000001745
})
})
const
pageSize
=
"10"
const
pageSize
=
"10"
const
currentPage
=
"1"
const
currentPage
=
"1"
const
results
=
ref
([])
const
results
=
ref
([])
const
rules
:
FormRules
=
{
const
rules
:
FormRules
=
{
certno
:
[
certno
:
[
{
{
...
@@ -104,45 +104,38 @@
...
@@ -104,45 +104,38 @@
}
}
]
]
}
}
const
convertToJson
=
()
=>
{
const
convertToJson
=
()
=>
{
//const normalobj={...model,pageNum:currentPage,pageSize,psnNo:'52000002000000000400011816'};
//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'};
//const normalobj={...model,pageNum:currentPage,pageSize,psnNo:'52000002000000000400011816'};
submitstr
=
JSON
.
stringify
(
normalobj
)
submitstr
=
JSON
.
stringify
(
normalobj
)
}
}
const
getDate
=
(
timestamp
)
=>
{
const
getDate
=
(
timestamp
)
=>
{
//const year =
//const year =
}
}
onLoad
(()
=>
{
onLoad
(()
=>
{
model
.
certno
=
"520202199704155913"
model
.
certno
=
"520202199704155913"
xma
.
xh
.
getUserProfile
({
// xma.xh.getUserProfile({
range
:
[
'CITIZEN'
],
// range: ['CITIZEN'],
success
(
info
)
{
// success(info) {
// console.log("in on load");
// xma.request({
// info.data:
// url: 'https://onemoment.gywb.cn/back/one-visit/one-visit/web/oneVisit/getXinhuaDecrypt',
// { uAvatar: '', uIdCardNo: '', uMobile: '', uName: '', uNickname: '', uid: '' }
// method: 'POST',
// data: {
xma
.
request
({
// appid: 'dffb71ae33637ab293036b2c2a419127',
url
:
'https://onemoment.gywb.cn/back/one-visit/one-visit/web/oneVisit/getXinhuaDecrypt'
,
// systemcode: 'my-centre',
method
:
'POST'
,
// type: 'sgy',
data
:
{
// encryptDataMap: info.data,
appid
:
'dffb71ae33637ab293036b2c2a419127'
,
// },
systemcode
:
'my-centre'
,
// success(res) {
type
:
'sgy'
,
// model.certno = res.data?.uIdCardNo.replace(/^(.{6})(?:\w+)(.{4})$/, '\$1******\$2');// eslint-disable-line
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
},
});
}
//
}
});
//
});
})
})
const
handleClickLeft
=
()
=>
{
const
handleClickLeft
=
()
=>
{
console
.
log
(
"left"
)
console
.
log
(
"left"
)
...
@@ -168,14 +161,14 @@
...
@@ -168,14 +161,14 @@
method
:
"POST"
,
method
:
"POST"
,
format
:
"json"
,
format
:
"json"
,
data
:
{
data
:
{
"biz_content"
:
submitstr
,
"biz_content"
:
submitstr
,
"url"
:
"/engine/rest/queryRsdtPsnClctDetlList"
"url"
:
"/engine/rest/queryRsdtPsnClctDetlList"
},
},
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
"***"
)
console
.
log
(
"***"
)
console
.
log
(
res
.
data
?.
biz_data
?.
body
?.
data
?.
data
)
console
.
log
(
res
.
data
?.
biz_data
?.
body
?.
data
?.
data
)
results
.
value
=
res
.
data
?.
biz_data
?.
body
?.
data
?.
data
||
[]
results
.
value
=
res
.
data
?.
biz_data
?.
body
?.
data
?.
data
||
[]
formFlag
.
value
=
false
formFlag
.
value
=
false
}
}
})
})
}
}
...
@@ -198,14 +191,17 @@
...
@@ -198,14 +191,17 @@
padding
:
10rpx
;
padding
:
10rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.container.notform
{
background
:rgb
(
246
,
246
,
246
)
;
.container.notform
{
background
:
rgb
(
246
,
246
,
246
);
}
}
}
}
.custom-text
{
.custom-text
{
color
:
rgb
(
85
,
170
,
255
)
color
:
rgb
(
85
,
170
,
255
)
}
}
.insuitem
{
margin-bottom
:
20px
;}
.insuitem
{
margin-bottom
:
20px
;
}
</
style
>
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment