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
47473efe
Commit
47473efe
authored
Dec 27, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
95e77e4a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
35 additions
and
68 deletions
+35
-68
account.vue
src/pages/account/account.vue
+3
-3
index.vue
src/pages/index/index.vue
+13
-18
list.vue
src/pages/list/list.vue
+4
-3
loan.vue
src/pages/loan/loan.vue
+4
-3
map.vue
src/pages/map/map.vue
+3
-5
index.ts
src/store/index.ts
+2
-7
info.js
src/store/info.js
+6
-2
list.js
src/store/list.js
+0
-9
loan.js
src/store/loan.js
+0
-9
map.js
src/store/map.js
+0
-9
No files found.
src/pages/account/account.vue
View file @
47473efe
...
...
@@ -77,8 +77,8 @@
import
{
computed
}
from
'vue'
import
{
person
Pinia
}
from
'@/store'
const
personStore
=
person
Pinia
()
import
{
info
Pinia
}
from
'@/store'
const
infoStore
=
info
Pinia
()
const
goToIndex
=
()
=>
{
xma
.
navigateTo
({
url
:
"/pages/index/index"
,
...
...
@@ -88,7 +88,7 @@
}
const
pInfo
=
computed
(()
=>
{
return
person
Store
.
person
||
null
return
info
Store
.
person
||
null
})
</
script
>
...
...
src/pages/index/index.vue
View file @
47473efe
...
...
@@ -131,16 +131,11 @@
}
from
'vue'
import
{
mapPinia
,
personPinia
,
loanPinia
,
listPinia
infoPinia
}
from
'@/store'
;
const
personStore
=
personPinia
()
const
mapStore
=
mapPinia
()
const
loanStore
=
loanPinia
()
const
listStore
=
listPinia
()
const
infoStore
=
infoPinia
()
const
getCurrentTimestamp
=
()
=>
{
return
Date
.
now
();
}
...
...
@@ -164,19 +159,19 @@
const
pInfo
=
computed
(()
=>
{
return
person
Store
.
person
||
null
return
info
Store
.
person
||
null
})
const
spidno
=
computed
(()
=>
{
return
person
Store
.
spidno
||
""
return
info
Store
.
spidno
||
""
})
//职工代码
const
spcode
=
computed
(()
=>
{
return
person
Store
.
person
.
spcode
||
""
return
info
Store
.
person
.
spcode
||
""
})
const
loadData
=
computed
(()
=>
{
return
loan
Store
.
loanInfo
||
""
return
info
Store
.
loanInfo
||
""
})
const
goToDetail
=
()
=>
{
xma
.
navigateTo
({
...
...
@@ -215,11 +210,11 @@
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
success
(
info
)
{
//公积金个人信息
person
Store
.
spidno
=
info
.
data
.
uIdCardNo
;
info
Store
.
spidno
=
info
.
data
.
uIdCardNo
;
xma
.
request
({
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx'
,
data
:
{
spidno
:
person
Store
.
spidno
,
spidno
:
info
Store
.
spidno
,
trantime
:
getCurrentTimestamp
()
},
header
:
{
...
...
@@ -228,7 +223,7 @@
method
:
"GET"
,
success
:
function
(
res
)
{
const
info
=
JSON
.
parse
(
res
.
data
.
data
)
person
Store
.
person
=
info
.
body
.
detail
;
info
Store
.
person
=
info
.
body
.
detail
;
//公积金缴费明细
xma
.
request
({
...
...
@@ -247,7 +242,7 @@
method
:
"POST"
,
success
:
function
(
res
)
{
const
data
=
JSON
.
parse
(
res
.
data
.
data
)
list
Store
.
listInfo
=
data
.
data
.
records
[
0
].
list
.
acc_info
info
Store
.
listInfo
=
data
.
data
.
records
[
0
].
list
.
acc_info
}})
//公积金贷款信息
xma
.
request
({
...
...
@@ -263,7 +258,7 @@
method
:
"GET"
,
success
:
function
(
res
)
{
const
data
=
JSON
.
parse
(
res
.
data
.
data
)
loan
Store
.
loanInfo
=
data
.
data
.
records
[
0
].
list
.
acc_info
info
Store
.
loanInfo
=
data
.
data
.
records
[
0
].
list
.
acc_info
},
});
//公积金地图
...
...
@@ -279,7 +274,7 @@
method
:
"GET"
,
success
:
function
(
res
)
{
let
data
=
JSON
.
parse
(
res
.
data
.
data
)
map
Store
.
mapList
=
data
.
data
;
info
Store
.
mapList
=
data
.
data
;
},
});
...
...
src/pages/list/list.vue
View file @
47473efe
...
...
@@ -85,10 +85,11 @@
useRoute
}
from
'vue-router'
import
{
listPinia
}
from
'@/store'
;
const
listStore
=
listPinia
()
import
{
infoPinia
}
from
'@/store'
const
infoStore
=
infoPinia
()
const
dataSets
=
computed
(()
=>
{
return
list
Store
.
listInfo
||
[]
return
info
Store
.
listInfo
||
[]
})
const
tempDataSets
=
ref
([])
const
route
=
useRoute
()
...
...
src/pages/loan/loan.vue
View file @
47473efe
...
...
@@ -68,8 +68,9 @@
import
{
computed
}
from
'vue'
import
{
loanPinia
}
from
'@/store'
const
loanStore
=
loanPinia
()
import
{
infoPinia
}
from
'@/store'
const
infoStore
=
infoPinia
()
const
goToIndex
=
()
=>
{
xma
.
navigateTo
({
url
:
"/pages/index/index"
,
...
...
@@ -78,7 +79,7 @@
})
}
const
loadData
=
computed
(()
=>
{
return
loan
Store
.
loanInfo
||
""
return
info
Store
.
loanInfo
||
""
})
</
script
>
...
...
src/pages/map/map.vue
View file @
47473efe
...
...
@@ -24,10 +24,8 @@
</
template
>
<
script
setup
>
import
{
mapPinia
}
from
'@/store'
;
const
mapStore
=
mapPinia
()
import
{
infoPinia
}
from
'@/store'
const
infoStore
=
infoPinia
()
import
{
ref
,
computed
...
...
@@ -47,7 +45,7 @@
window
.
location
.
href
=
"tel:"
+
number
}
const
apartments
=
computed
(()
=>
{
return
map
Store
.
mapList
||
[]
return
info
Store
.
mapList
||
[]
})
const
goToIndex
=
()
=>
{
xma
.
navigateTo
({
...
...
src/store/index.ts
View file @
47473efe
...
...
@@ -5,10 +5,5 @@ const store = createPinia();
export
default
store
;
// 模块统一导出
export
*
from
'./person'
;
// 模块统一导出
export
*
from
'./map'
;
// 模块统一导出
export
*
from
'./loan'
;
// 模块统一导出
export
*
from
'./list'
;
export
*
from
'./info'
;
src/store/
person
.js
→
src/store/
info
.js
View file @
47473efe
...
...
@@ -2,8 +2,11 @@ import { defineStore } from 'pinia';
import
{
ref
}
from
'vue'
;
export
const
personPinia
=
defineStore
(
'person
'
,
()
=>
{
export
const
infoPinia
=
defineStore
(
'info
'
,
()
=>
{
const
person
=
ref
(
null
)
const
spidno
=
ref
(
0
)
return
{
person
,
spidno
}
const
mapList
=
ref
([])
const
loanInfo
=
ref
(
null
)
const
listInfo
=
ref
(
null
)
return
{
person
,
spidno
,
mapList
,
loanInfo
,
listInfo
}
})
\ No newline at end of file
src/store/list.js
deleted
100644 → 0
View file @
95e77e4a
import
{
defineStore
}
from
'pinia'
;
import
{
ref
}
from
'vue'
;
export
const
listPinia
=
defineStore
(
'list'
,
()
=>
{
const
listInfo
=
ref
(
null
)
return
{
listInfo
}
})
\ No newline at end of file
src/store/loan.js
deleted
100644 → 0
View file @
95e77e4a
import
{
defineStore
}
from
'pinia'
;
import
{
ref
}
from
'vue'
;
export
const
loanPinia
=
defineStore
(
'loan'
,
()
=>
{
const
loanInfo
=
ref
(
null
)
return
{
loanInfo
}
})
\ No newline at end of file
src/store/map.js
deleted
100644 → 0
View file @
95e77e4a
import
{
defineStore
}
from
'pinia'
;
import
{
ref
}
from
'vue'
;
export
const
mapPinia
=
defineStore
(
'map'
,
()
=>
{
const
mapList
=
ref
([])
return
{
mapList
}
})
\ 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