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
b9b2b46a
Commit
b9b2b46a
authored
Oct 31, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
2ce7c4e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
34 deletions
+70
-34
index.vue
src/pages/index/index.vue
+68
-32
vite.config.ts
vite.config.ts
+2
-2
No files found.
src/pages/index/index.vue
View file @
b9b2b46a
...
@@ -6,17 +6,18 @@
...
@@ -6,17 +6,18 @@
</
template
>
</
template
>
</wd-navbar>
</wd-navbar>
<view
class=
"container"
v-if=
"formFlag"
>
<view
class=
"container"
v-if=
"formFlag"
>
{{test}}
<wd-form
ref=
"form"
:model=
"model"
:rules=
"rules"
>
<wd-form
ref=
"form"
:model=
"model"
:rules=
"rules"
>
<wd-cell-group
border
>
<wd-cell-group
border
>
<wd-input
label=
"身份证号"
prop=
"
idCardNum"
v-model=
"model.idCardNum
"
clearable
placeholder=
"请输入身份证号"
<wd-input
label=
"身份证号"
prop=
"
certno"
v-model=
"model.certno
"
clearable
placeholder=
"请输入身份证号"
@
change=
"handleIDChange"
/>
@
change=
"handleIDChange"
/>
<wd-calendar
label=
"开始日期"
:show-confirm=
"false"
prop=
"
startDate"
v-model=
"model.startDate
"
<wd-calendar
label=
"开始日期"
:show-confirm=
"false"
prop=
"
accrymBegn"
v-model=
"model.accrymBegn
"
placeholder=
"请选择开始日期"
@
confirm=
"confirmStartDate"
/>
placeholder=
"请选择开始日期"
@
confirm=
"confirmStartDate"
:min-date=
"1600000001745"
/>
<wd-calendar
label=
"结束日期"
:show-confirm=
"false"
prop=
"
endDate"
v-model=
"model.endDate
"
<wd-calendar
label=
"结束日期"
:show-confirm=
"false"
prop=
"
accrymEnd"
v-model=
"model.accrymEnd
"
placeholder=
"请选择结束日期"
@
confirm=
"confirmEndDate"
/>
placeholder=
"请选择结束日期"
@
confirm=
"confirmEndDate"
:min-date=
"1600000001745"
/>
</wd-cell-group>
</wd-cell-group>
<view
class=
"footer"
>
<view
class=
"footer"
>
...
@@ -24,7 +25,23 @@
...
@@ -24,7 +25,23 @@
</view>
</view>
</wd-form>
</wd-form>
</view>
</view>
<view
class=
"container"
v-else
>
<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>
</template>
</view>
<!--<view class="container" v-else>
<wd-cell-group>
<wd-cell-group>
<wd-cell title="单位编号" value="内容" />
<wd-cell title="单位编号" value="内容" />
<wd-cell title="人员编号" value="内容" />
<wd-cell title="人员编号" value="内容" />
...
@@ -46,59 +63,70 @@
...
@@ -46,59 +63,70 @@
<wd-cell title="其他缴费金额" value="内容" />
<wd-cell title="其他缴费金额" value="内容" />
<wd-cell title="缴费总金额" value="内容" />
<wd-cell title="缴费总金额" value="内容" />
</wd-cell-group>
</wd-cell-group>
</view>
</view>
-->
</view>
</view>
</template>
</template>
<
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
form
=
ref
()
const
form
=
ref
()
const
formFlag
=
ref
(
true
)
const
formFlag
=
ref
(
true
)
let
submitstr
=
""
const
navBarTitle
=
computed
(()
=>
{
const
navBarTitle
=
computed
(()
=>
{
let
str
=
!
formFlag
.
value
?
"结果"
:
""
let
str
=
!
formFlag
.
value
?
"结果"
:
""
return
"居民缴费进度查询"
+
str
;
return
"居民缴费进度查询"
+
str
;
})
})
const
model
=
reactive
({
const
model
=
reactive
({
idCardNum
:
null
,
certno
:
0
,
startDate
:
null
,
accrymBegn
:
1600000001745
,
endDate
:
null
accrymEnd
:
1700000001745
})
})
const
pageSize
=
"10"
const
currentPage
=
"1"
const
results
=
ref
([])
const
rules
:
FormRules
=
{
const
rules
:
FormRules
=
{
idCardNum
:
[
certno
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请输入身份证号码'
,
message
:
'请输入身份证号码'
,
}
}
],
],
startDate
:
[
accrymBegn
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择开始时间'
,
message
:
'请选择开始时间'
,
}
}
],
],
endDate
:
[
accrymEnd
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择结束时间'
,
message
:
'请选择结束时间'
,
}
}
]
]
}
}
const
convertToJson
=
()
=>
{
//const normalobj={...model,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
)
}
const
getDate
=
(
timestamp
)
=>
{
//const year =
}
onLoad
(()
=>
{
onLoad
(()
=>
{
model
.
idCardNum
=
"200
"
model
.
certno
=
"520202199704155913
"
xma
.
xh
.
getUserProfile
({
xma
.
xh
.
getUserProfile
({
range
:
[
'ACCOUNT'
],
range
:
[
'ACCOUNT'
],
success
(
info
)
{
success
(
info
)
{
// console.log("in on load");
// console.log("in on load");
// info.data:
// info.data:
// { uAvatar: '', uIdCardNo: '', uMobile: '', uName: '', uNickname: '', uid: '' }
// { uAvatar: '', uIdCardNo: '', uMobile: '', uName: '', uNickname: '', uid: '' }
//console.log(info.data);
console
.
log
(
"getInfoData"
)
if
(
info
)
{
console
.
log
(
info
.
data
);
model
.
idCardNum
=
info
.
data
.
uIdCardNo
;
test
.
value
=
info
.
data
}
else
{
console
.
log
(
test
)
model
.
idCardNum
=
"100"
}
}
}
});
});
...
@@ -119,19 +147,22 @@
...
@@ -119,19 +147,22 @@
.
validate
()
.
validate
()
.
then
(({
valid
,
errors
})
=>
{
.
then
(({
valid
,
errors
})
=>
{
if
(
valid
)
{
if
(
valid
)
{
convertToJson
()
console
.
log
(
"****"
)
console
.
log
(
submitstr
)
xma
.
request
({
xma
.
request
({
url
:
"
/engine/rest/queryRsdtPsnClctDetlList
"
,
url
:
"
back/one-visit/one-visit/web/ybVisit/ybSgySm2
"
,
method
:
"POST"
,
method
:
"POST"
,
data
:{
format
:
"json"
,
"access_key"
:
"0"
,
data
:
{
"certno"
:
"520202199704155913"
,
"biz_content"
:
submitstr
,
"psnNo"
:
"52000002000000000400011816"
,
"url"
:
"/engine/rest/queryRsdtPsnClctDetlList"
"pageNum"
:
"1"
,
"pageSize"
:
"10"
},
},
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
"***"
)
console
.
log
(
"***"
)
console
.
log
(
res
)
console
.
log
(
res
.
data
?.
biz_data
?.
body
?.
data
?.
data
)
results
.
value
=
res
.
data
?.
biz_data
?.
body
?.
data
?.
data
||
[]
formFlag
.
value
=
false
}
}
})
})
}
}
...
@@ -154,10 +185,14 @@
...
@@ -154,10 +185,14 @@
padding
:
10rpx
;
padding
:
10rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.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
;}
</
style
>
</
style
>
\ No newline at end of file
vite.config.ts
View file @
b9b2b46a
...
@@ -29,8 +29,8 @@ export default defineConfig({
...
@@ -29,8 +29,8 @@ export default defineConfig({
open
:
true
,
open
:
true
,
// 代理配置
// 代理配置
proxy
:
{
proxy
:
{
'/
engine/rest/queryRsdtPsnClctDetlList
'
:
{
'/
back/one-visit/one-visit/web/ybVisit/ybSgySm2
'
:
{
target
:
'https://
dzpztest.pubs.ylbzj.guizhou.gov
.cn/'
,
target
:
'https://
onemoment.gywb
.cn/'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
},
},
...
...
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