Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjCode
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
gjjCode
Commits
c35e0ddc
Commit
c35e0ddc
authored
Dec 26, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
56bace18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
index.vue
src/pages/index/index.vue
+23
-18
No files found.
src/pages/index/index.vue
View file @
c35e0ddc
...
...
@@ -67,7 +67,7 @@
</view>
-->
</view>
</view>
<!--
<view
class=
"item"
>
<!--
<view
class=
"item"
>
<view
class=
"item_title"
>
提取
</view>
<view
class=
"item_box"
>
<view
class=
"iboxcommon"
>
...
...
@@ -92,7 +92,7 @@
</view>
</view>
</view>
-->
<!--
<view
class=
"item"
>
<!--
<view
class=
"item"
>
<view
class=
"item_title"
>
贷款
</view>
<view
class=
"item_box"
>
<view
class=
"ibox"
>
...
...
@@ -113,7 +113,7 @@
</view>
</view>
-->
<view
class=
"item"
>
<view
class=
"item_title"
>
更多服务
{{
person
Pinia
.
teststr
}}
</view>
<view
class=
"item_title"
>
更多服务
{{
person
Store
.
teststr
}}
</view>
<view
class=
"item_box"
@
click=
"goToMap"
>
公积金地图
</view>
</view>
</view>
...
...
@@ -130,7 +130,8 @@
}
from
'vue'
import
{
mapPinia
,
personPinia
mapPinia
,
personPinia
}
from
'@/store'
;
const
personStore
=
personPinia
()
...
...
@@ -160,12 +161,12 @@
flag4
.
value
=
!
flag4
.
value
}
const
pInfo
=
computed
(()
=>
{
return
personStore
.
person
||
null
return
personStore
.
person
||
null
})
// const loadData = computed(() => {
// return store.state.loadData || ""
// })
const
goToMap
=
()
=>
{
const
goToMap
=
()
=>
{
xma
.
navigateTo
({
url
:
"/pages/map/map"
,
animationType
:
'pop-in'
,
...
...
@@ -188,31 +189,35 @@
spidno
:
info
.
data
.
uIdCardNo
,
trantime
:
getCurrentTimestamp
()
},
header
:{
header
:
{
'content-type'
:
'application/json'
},
method
:
"GET"
,
success
:
function
(
res
)
{
const
info
=
JSON
.
parse
(
res
.
data
.
data
)
//store.commit('setPersonInfo', info.body.detail);
personStore
.
person
=
info
.
body
.
detail
;
personStore
.
person
=
info
.
body
.
detail
;
console
.
log
(
"pinia person"
)
console
.
log
(
personStore
.
person
.
snname
)
//公积金地图
axios
.
get
(
'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx'
,
{
params
:
{
xma
.
request
({
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx'
,
data
:
{
pageSize
:
50
,
pageIndex
:
1
}
}).
then
(
response
=>
{
let
data
=
JSON
.
parse
(
response
.
data
.
data
)
},
header
:
{
'content-type'
:
'application/json'
},
method
:
"GET"
,
success
:
function
(
res
)
{
let
data
=
JSON
.
parse
(
res
.
data
.
data
)
//store.commit('setApartments', data.data);
mapStore
.
mapList
=
data
.
data
;
mapStore
.
mapList
=
data
.
data
;
console
.
log
(
"pinia map"
)
console
.
log
(
typeof
mapStore
.
mapList
)
}).
catch
(
error
=>
{
// 处理错误
console
.
error
(
'Error fetching data:'
,
error
);
},
});
},
});
...
...
@@ -242,7 +247,7 @@
if
(
pInfo
.
value
)
{
let
year
=
String
(
pInfo
.
value
.
zghjny
).
slice
(
0
,
4
)
let
month
=
String
(
pInfo
.
value
.
zghjny
).
slice
(
4
,
6
)
return
year
+
'年'
+
month
+
'月'
return
year
+
'年'
+
month
+
'月'
}
else
{
return
""
}
...
...
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