Commit b4db0663 authored by tanjuanjuan's avatar tanjuanjuan

测试

parent 29a7bcc5
import {request} from '../utils/http' import {request} from '../utils/http'
export const personInfo=(query)=>{
return request({
url:'/gjjgrxx',
data:query
})
}
export const payList=(query)=>{ export const payList=(query)=>{
return request({ return request({
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
} from '@/store'; } from '@/store';
import { import {
payList,loadInfo,mapInfo personInfo,payList,loadInfo,mapInfo
} from '../../api/request' } from '../../api/request'
const infoStore = infoPinia() const infoStore = infoPinia()
...@@ -208,50 +208,20 @@ ...@@ -208,50 +208,20 @@
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'],
success(info) { success(info) {
//公积金个人信息 //公积金个人信息
infoStore.spidno = info.data.uIdCardNo; infoStore.spidno = info.data.uIdCardNo;
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx', personInfo({
data: {
spidno: infoStore.spidno, spidno: infoStore.spidno,
trantime: getCurrentTimestamp() trantime: getCurrentTimestamp()
}, }).then(res => {
header: { const info = JSON.parse(res.data)
'content-type': 'application/json' infoStore.person = info.body.detail;
},
method: "GET",
success: function(res) {
const info = JSON.parse(res.data.data)
infoStore.person = info.body.detail;
//公积金缴费明细 //公积金缴费明细
// xma.request({
// url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzgcjmx',
// data: {
// "eatda": "string",
// "iseqno": "string",
// "jzh": "string",
// "sdata": "string",
// "spcode": spcode.value,
// "transcode": "string"
// },
// header: {
// 'content-type': 'application/json'
// },
// method: "POST",
// success: function(res) {
// const data = JSON.parse(res.data.data)
// infoStore.listInfo = data.data.records[0].list.acc_info
// }
// })
payList({ payList({
"eatda": "string", "eatda": "string",
"iseqno": "string", "iseqno": "string",
...@@ -263,10 +233,8 @@ ...@@ -263,10 +233,8 @@
const data = JSON.parse(res.data); const data = JSON.parse(res.data);
infoStore.listInfo = data.data.records[0].list.acc_info infoStore.listInfo = data.data.records[0].list.acc_info
}) })
//公积金贷款信息
//贷款信息
loadInfo( loadInfo(
{ {
"spidno": spidno.value, "spidno": spidno.value,
...@@ -277,6 +245,121 @@ ...@@ -277,6 +245,121 @@
const data = JSON.parse(res.data); const data = JSON.parse(res.data);
infoStore.loanInfo = data.data.records[0].list.acc_info infoStore.loanInfo = data.data.records[0].list.acc_info
}) })
//公积金地图
mapInfo({pageSize: 50,
pageIndex: 1}).then(res=>{
let data = JSON.parse(res.data)
infoStore.mapList = data.data;
})
})
}})
// xh.getUserProfile({
// goLogin: true,
// range: ['ACCOUNT', 'MOBILE', 'CITIZEN'],
// success(info) {
// //公积金个人信息
// infoStore.spidno = info.data.uIdCardNo;
// personInfo({
// spidno: infoStore.spidno,
// trantime: getCurrentTimestamp()
// }).then(res => {
// const info = JSON.parse(res.data)
// infoStore.person = info.body.detail;
// //公积金缴费明细
// payList({
// "eatda": "string",
// "iseqno": "string",
// "jzh": "string",
// "sdata": "string",
// "spcode": spcode.value,
// "transcode": "string"
// }).then(res => {
// const data = JSON.parse(res.data);
// infoStore.listInfo = data.data.records[0].list.acc_info
// })
// //贷款信息
// loadInfo(
// {
// "spidno": spidno.value,
// "spcode": spcode.value,
// "iseqno": "string"
// }
// ).then(res=>{
// const data = JSON.parse(res.data);
// infoStore.loanInfo = data.data.records[0].list.acc_info
// })
// //公积金地图
// mapInfo({pageSize: 50,
// pageIndex: 1}).then(res=>{
// let data = JSON.parse(res.data)
// infoStore.mapList = data.data;
// })
// })})
// xma.request({
// url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx',
// data: {
// spidno: infoStore.spidno,
// trantime: getCurrentTimestamp()
// },
// header: {
// 'content-type': 'application/json'
// },
// method: "GET",
// success: function(res) {
// const info = JSON.parse(res.data.data)
// infoStore.person = info.body.detail;
// //公积金缴费明细
// xma.request({
// url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzgcjmx',
// data: {
// "eatda": "string",
// "iseqno": "string",
// "jzh": "string",
// "sdata": "string",
// "spcode": spcode.value,
// "transcode": "string"
// },
// header: {
// 'content-type': 'application/json'
// },
// method: "POST",
// success: function(res) {
// const data = JSON.parse(res.data.data)
// infoStore.listInfo = data.data.records[0].list.acc_info
// }
// })
// payList({
// "eatda": "string",
// "iseqno": "string",
// "jzh": "string",
// "sdata": "string",
// "spcode": spcode.value,
// "transcode": "string"
// }).then(res => {
// const data = JSON.parse(res.data);
// infoStore.listInfo = data.data.records[0].list.acc_info
// })
//公积金贷款信息
// loadInfo(
// {
// "spidno": spidno.value,
// "spcode": spcode.value,
// "iseqno": "string"
// }
// ).then(res=>{
// const data = JSON.parse(res.data);
// infoStore.loanInfo = data.data.records[0].list.acc_info
// })
// xma.request({ // xma.request({
// url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjdkxx', // url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjdkxx',
// data: { // data: {
...@@ -295,11 +378,11 @@ ...@@ -295,11 +378,11 @@
// }); // });
//公积金地图 //公积金地图
mapInfo({pageSize: 50, // mapInfo({pageSize: 50,
pageIndex: 1}).then(res=>{ // pageIndex: 1}).then(res=>{
let data = JSON.parse(res.data) // let data = JSON.parse(res.data)
infoStore.mapList = data.data; // infoStore.mapList = data.data;
}) // })
// xma.request({ // xma.request({
// url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx', // url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx',
// data: { // data: {
...@@ -318,11 +401,11 @@ ...@@ -318,11 +401,11 @@
}, // },
}); // });
}, // },
}); // });
const xing = computed(() => { const xing = computed(() => {
if (pInfo.value) { if (pInfo.value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment