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
664faf93
Commit
664faf93
authored
Dec 25, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ff6a1f56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
index.vue
src/pages/index/index.vue
+22
-22
map.vue
src/pages/map/map.vue
+1
-1
No files found.
src/pages/index/index.vue
View file @
664faf93
<
template
>
<
template
>
<div
class=
"main"
v-if=
"pInfo"
>
<div
class=
"main"
>
111
<div
class=
"box1"
>
<!--
<div
class=
"box1"
>
<div
class=
"box1_house"
></div>
<div
class=
"box1_house"
></div>
<div
class=
"inner"
>
<div
class=
"inner"
>
<div
class=
"name"
><span
id=
"userName"
>
{{
xing
}}{{
ch
}}
</span><span>
,您好!
</span>
<div
class=
"name"
><span
id=
"userName"
>
{{
xing
}}{{
ch
}}
</span><span>
,您好!
</span>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"box2 inner"
>
<div
class=
"box2 inner"
>
<div
class=
"item"
>
<div
class=
"item"
>
<div
class=
"item_title"
>
公积金余额
</div>
<div
class=
"item_title"
>
公积金余额
</div>
...
@@ -116,8 +116,10 @@
...
@@ -116,8 +116,10 @@
<div
class=
"item_title"
>
更多服务
</div>
<div
class=
"item_title"
>
更多服务
</div>
<div
class=
"item_box"
><router-link
to=
"/map"
>
公积金地图
</router-link></div>
<div
class=
"item_box"
><router-link
to=
"/map"
>
公积金地图
</router-link></div>
</div>
</div>
</div>
</div>
-->
<router-link
to=
"/map"
>
公积金地图
</router-link>
</div>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
import
{
...
@@ -125,15 +127,13 @@
...
@@ -125,15 +127,13 @@
ref
,
ref
,
computed
computed
}
from
'vue'
}
from
'vue'
import
{
import
{
mapPinia
,
personPinia
mapPinia
,
personPinia
}
from
'@/store'
;
}
from
'@/store'
;
const
personStore
=
personPinia
()
const
mapStore
=
mapPinia
()
const
{
person
}
=
personStore
();
const
personStore
=
personPinia
()
const
{
mapList
}
=
mapStore
();
const
mapStore
=
mapPinia
()
const
getCurrentTimestamp
=
()
=>
{
const
getCurrentTimestamp
=
()
=>
{
return
Date
.
now
();
return
Date
.
now
();
...
@@ -159,16 +159,16 @@
...
@@ -159,16 +159,16 @@
flag4
.
value
=
!
flag4
.
value
flag4
.
value
=
!
flag4
.
value
}
}
const
pInfo
=
computed
(()
=>
{
const
pInfo
=
computed
(()
=>
{
return
store
.
state
.
pInfo
||
null
return
personStore
.
person
||
null
})
})
const
loadData
=
computed
(()
=>
{
//
const loadData = computed(() => {
return
store
.
state
.
loadData
||
""
//
return store.state.loadData || ""
})
//
})
xh
.
initRexma
({
xh
.
initRexma
({
code
:
'5dd7bdcc8619335e543621040d9d34d5'
,
// 端内小程序唯一 code
code
:
'5dd7bdcc8619335e543621040d9d34d5'
,
// 端内小程序唯一 code
});
});
xh
.
getUserProfile
({
xh
.
getUserProfile
({
goLogin
:
true
,
goLogin
:
true
,
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
}).
then
(
response
=>
{
}).
then
(
response
=>
{
const
info
=
JSON
.
parse
(
response
.
data
.
data
)
const
info
=
JSON
.
parse
(
response
.
data
.
data
)
//store.commit('setPersonInfo', info.body.detail);
//store.commit('setPersonInfo', info.body.detail);
personStore
.
$patch
(
info
.
body
.
detail
)
personStore
.
$patch
(
{
person
:
info
.
body
.
detail
}
)
console
.
log
(
"pinia person"
)
console
.
log
(
"pinia person"
)
console
.
log
(
personStore
.
person
)
console
.
log
(
personStore
.
person
)
//公积金地图
//公积金地图
...
@@ -195,23 +195,23 @@
...
@@ -195,23 +195,23 @@
}).
then
(
response
=>
{
}).
then
(
response
=>
{
let
data
=
JSON
.
parse
(
response
.
data
.
data
)
let
data
=
JSON
.
parse
(
response
.
data
.
data
)
//store.commit('setApartments', data.data);
//store.commit('setApartments', data.data);
mapStore
.
$patch
(
data
.
data
);
mapStore
.
$patch
(
{
mapList
:
data
.
data
}
);
console
.
log
(
"pinia map"
)
console
.
log
(
"pinia map"
)
console
.
log
(
mapStore
.
mapList
)
console
.
log
(
mapStore
.
mapList
)
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
// 处理错误
// 处理错误
console
.
error
(
'Error fetching data:'
,
error
);
console
.
error
(
'Error fetching data:'
,
error
);
});
});
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
// 处理错误
// 处理错误
console
.
error
(
'Error fetching data:'
,
error
);
console
.
error
(
'Error fetching data:'
,
error
);
});
});
},
},
});
});
onMounted
(()
=>
{
onMounted
(()
=>
{
xing
.
value
=
computed
(()
=>
{
xing
.
value
=
computed
(()
=>
{
if
(
pInfo
.
value
)
{
if
(
pInfo
.
value
)
{
...
...
src/pages/map/map.vue
View file @
664faf93
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
lang=
"ts"
>
import
{
import
{
mapPinia
mapPinia
}
from
'@/store'
;
}
from
'@/store'
;
...
...
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