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
23881797
Commit
23881797
authored
Nov 06, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加psn查询
parent
ab871f64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
index.vue
src/pages/index/index.vue
+27
-4
No files found.
src/pages/index/index.vue
View file @
23881797
...
...
@@ -5,7 +5,7 @@
<wd-icon
name=
"close"
size=
"22px"
></wd-icon>
</
template
>
</wd-navbar>
<view
class=
"container"
v-if=
"formFlag"
>
<view
class=
"container"
v-if=
"formFlag"
>
{{psnNo}}
<wd-form
ref=
"form"
:model=
"model"
:rules=
"rules"
>
<wd-cell-group
border
>
...
...
@@ -47,7 +47,10 @@
import
dayjs
from
'dayjs'
;
const
form
=
ref
()
const
formFlag
=
ref
(
true
)
//表单提交 序列号字符串
let
submitstr
=
""
//获取psn值时提交的序列化字符串
let
psnstr
=
""
const
navBarTitle
=
computed
(()
=>
{
let
str
=
!
formFlag
.
value
?
"结果"
:
""
return
"居民缴费进度查询"
+
str
;
...
...
@@ -57,6 +60,7 @@
accrymBegn
:
1600000001745
,
accrymEnd
:
1700000001745
})
const
psnNo
=
ref
(
0
)
const
pageSize
=
"10"
const
currentPage
=
"1"
const
results
=
ref
([])
...
...
@@ -82,16 +86,17 @@
}
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
:
psnNo
.
value
};
//const normalobj={...model,pageNum:currentPage,pageSize,psnNo:'52000002000000000400011816'};
submitstr
=
JSON
.
stringify
(
normalobj
)
}
const
goToDetail
=
(
info
)
=>
{
const
str
=
JSON
.
stringify
(
info
)
const
str
=
JSON
.
stringify
(
info
)
//console.log(info)
xma
.
navigateTo
({
url
:
'/pages/detail/index?item='
+
str
,
url
:
'/pages/detail/index?item='
+
str
,
});
}
onLoad
(()
=>
{
...
...
@@ -109,7 +114,25 @@
encryptDataMap
:
info
.
data
,
},
success
(
res
)
{
//获取身份号码
model
.
certno
=
res
.
data
?.
uIdCardNo
.
replace
(
/^
(
.
{6})(?:\w
+
)(
.
{4})
$/
,
'
\
$1******
\
$2'
);
// eslint-disable-line
//获取psn
xma
.
request
({
url
:
"https://onemoment.gywb.cn/back/one-visit/one-visit/web/ybVisit/ybSgySm2"
,
method
:
"POST"
,
format
:
"json"
,
data
:
{
"biz_content"
:
JSON
.
stringify
({
"certno"
:
model
.
certno
,
"psnCertType"
:
"01"
}),
"url"
:
"/engine/rest/queryPsnInsuByCertnoB"
},
success
:
(
res
)
=>
{
console
.
log
(
"&&"
)
console
.
log
(
res
)
psnNo
.
value
=
res
}
})
},
});
...
...
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