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
Show 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 @@
...
@@ -77,8 +77,8 @@
import
{
import
{
computed
computed
}
from
'vue'
}
from
'vue'
import
{
person
Pinia
}
from
'@/store'
import
{
info
Pinia
}
from
'@/store'
const
personStore
=
person
Pinia
()
const
infoStore
=
info
Pinia
()
const
goToIndex
=
()
=>
{
const
goToIndex
=
()
=>
{
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
"/pages/index/index"
,
url
:
"/pages/index/index"
,
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
}
}
const
pInfo
=
computed
(()
=>
{
const
pInfo
=
computed
(()
=>
{
return
person
Store
.
person
||
null
return
info
Store
.
person
||
null
})
})
</
script
>
</
script
>
...
...
src/pages/index/index.vue
View file @
47473efe
...
@@ -131,16 +131,11 @@
...
@@ -131,16 +131,11 @@
}
from
'vue'
}
from
'vue'
import
{
import
{
mapPinia
,
infoPinia
personPinia
,
loanPinia
,
listPinia
}
from
'@/store'
;
}
from
'@/store'
;
const
personStore
=
personPinia
()
const
infoStore
=
infoPinia
()
const
mapStore
=
mapPinia
()
const
loanStore
=
loanPinia
()
const
listStore
=
listPinia
()
const
getCurrentTimestamp
=
()
=>
{
const
getCurrentTimestamp
=
()
=>
{
return
Date
.
now
();
return
Date
.
now
();
}
}
...
@@ -164,19 +159,19 @@
...
@@ -164,19 +159,19 @@
const
pInfo
=
computed
(()
=>
{
const
pInfo
=
computed
(()
=>
{
return
person
Store
.
person
||
null
return
info
Store
.
person
||
null
})
})
const
spidno
=
computed
(()
=>
{
const
spidno
=
computed
(()
=>
{
return
person
Store
.
spidno
||
""
return
info
Store
.
spidno
||
""
})
})
//职工代码
//职工代码
const
spcode
=
computed
(()
=>
{
const
spcode
=
computed
(()
=>
{
return
person
Store
.
person
.
spcode
||
""
return
info
Store
.
person
.
spcode
||
""
})
})
const
loadData
=
computed
(()
=>
{
const
loadData
=
computed
(()
=>
{
return
loan
Store
.
loanInfo
||
""
return
info
Store
.
loanInfo
||
""
})
})
const
goToDetail
=
()
=>
{
const
goToDetail
=
()
=>
{
xma
.
navigateTo
({
xma
.
navigateTo
({
...
@@ -215,11 +210,11 @@
...
@@ -215,11 +210,11 @@
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
success
(
info
)
{
success
(
info
)
{
//公积金个人信息
//公积金个人信息
person
Store
.
spidno
=
info
.
data
.
uIdCardNo
;
info
Store
.
spidno
=
info
.
data
.
uIdCardNo
;
xma
.
request
({
xma
.
request
({
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx'
,
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx'
,
data
:
{
data
:
{
spidno
:
person
Store
.
spidno
,
spidno
:
info
Store
.
spidno
,
trantime
:
getCurrentTimestamp
()
trantime
:
getCurrentTimestamp
()
},
},
header
:
{
header
:
{
...
@@ -228,7 +223,7 @@
...
@@ -228,7 +223,7 @@
method
:
"GET"
,
method
:
"GET"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
const
info
=
JSON
.
parse
(
res
.
data
.
data
)
const
info
=
JSON
.
parse
(
res
.
data
.
data
)
person
Store
.
person
=
info
.
body
.
detail
;
info
Store
.
person
=
info
.
body
.
detail
;
//公积金缴费明细
//公积金缴费明细
xma
.
request
({
xma
.
request
({
...
@@ -247,7 +242,7 @@
...
@@ -247,7 +242,7 @@
method
:
"POST"
,
method
:
"POST"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
const
data
=
JSON
.
parse
(
res
.
data
.
data
)
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
({
xma
.
request
({
...
@@ -263,7 +258,7 @@
...
@@ -263,7 +258,7 @@
method
:
"GET"
,
method
:
"GET"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
const
data
=
JSON
.
parse
(
res
.
data
.
data
)
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 @@
...
@@ -279,7 +274,7 @@
method
:
"GET"
,
method
:
"GET"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
data
=
JSON
.
parse
(
res
.
data
.
data
)
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 @@
...
@@ -85,10 +85,11 @@
useRoute
useRoute
}
from
'vue-router'
}
from
'vue-router'
import
{
listPinia
}
from
'@/store'
;
import
{
infoPinia
}
from
'@/store'
const
listStore
=
listPinia
()
const
infoStore
=
infoPinia
()
const
dataSets
=
computed
(()
=>
{
const
dataSets
=
computed
(()
=>
{
return
list
Store
.
listInfo
||
[]
return
info
Store
.
listInfo
||
[]
})
})
const
tempDataSets
=
ref
([])
const
tempDataSets
=
ref
([])
const
route
=
useRoute
()
const
route
=
useRoute
()
...
...
src/pages/loan/loan.vue
View file @
47473efe
...
@@ -68,8 +68,9 @@
...
@@ -68,8 +68,9 @@
import
{
import
{
computed
computed
}
from
'vue'
}
from
'vue'
import
{
loanPinia
}
from
'@/store'
import
{
infoPinia
}
from
'@/store'
const
loanStore
=
loanPinia
()
const
infoStore
=
infoPinia
()
const
goToIndex
=
()
=>
{
const
goToIndex
=
()
=>
{
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
"/pages/index/index"
,
url
:
"/pages/index/index"
,
...
@@ -78,7 +79,7 @@
...
@@ -78,7 +79,7 @@
})
})
}
}
const
loadData
=
computed
(()
=>
{
const
loadData
=
computed
(()
=>
{
return
loan
Store
.
loanInfo
||
""
return
info
Store
.
loanInfo
||
""
})
})
</
script
>
</
script
>
...
...
src/pages/map/map.vue
View file @
47473efe
...
@@ -24,10 +24,8 @@
...
@@ -24,10 +24,8 @@
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
import
{
infoPinia
}
from
'@/store'
mapPinia
const
infoStore
=
infoPinia
()
}
from
'@/store'
;
const
mapStore
=
mapPinia
()
import
{
import
{
ref
,
ref
,
computed
computed
...
@@ -47,7 +45,7 @@
...
@@ -47,7 +45,7 @@
window
.
location
.
href
=
"tel:"
+
number
window
.
location
.
href
=
"tel:"
+
number
}
}
const
apartments
=
computed
(()
=>
{
const
apartments
=
computed
(()
=>
{
return
map
Store
.
mapList
||
[]
return
info
Store
.
mapList
||
[]
})
})
const
goToIndex
=
()
=>
{
const
goToIndex
=
()
=>
{
xma
.
navigateTo
({
xma
.
navigateTo
({
...
...
src/store/index.ts
View file @
47473efe
...
@@ -5,10 +5,5 @@ const store = createPinia();
...
@@ -5,10 +5,5 @@ const store = createPinia();
export
default
store
;
export
default
store
;
// 模块统一导出
// 模块统一导出
export
*
from
'./person'
;
export
*
from
'./info'
;
// 模块统一导出
export
*
from
'./map'
;
// 模块统一导出
export
*
from
'./loan'
;
// 模块统一导出
export
*
from
'./list'
;
src/store/
person
.js
→
src/store/
info
.js
View file @
47473efe
...
@@ -2,8 +2,11 @@ import { defineStore } from 'pinia';
...
@@ -2,8 +2,11 @@ import { defineStore } from 'pinia';
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
export
const
personPinia
=
defineStore
(
'person
'
,
()
=>
{
export
const
infoPinia
=
defineStore
(
'info
'
,
()
=>
{
const
person
=
ref
(
null
)
const
person
=
ref
(
null
)
const
spidno
=
ref
(
0
)
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