Commit b4db0663 authored by tanjuanjuan's avatar tanjuanjuan

测试

parent 29a7bcc5
import {request} from '../utils/http'
export const personInfo=(query)=>{
return request({
url:'/gjjgrxx',
data:query
})
}
export const payList=(query)=>{
return request({
......
......@@ -135,7 +135,7 @@
} from '@/store';
import {
payList,loadInfo,mapInfo
personInfo,payList,loadInfo,mapInfo
} from '../../api/request'
const infoStore = infoPinia()
......@@ -208,50 +208,20 @@
xh.initRexma({
code: '5dd7bdcc8619335e543621040d9d34d5', // 端内小程序唯一 code
});
xh.getUserProfile({
goLogin: true,
range: ['ACCOUNT', 'MOBILE', 'CITIZEN'],
success(info) {
//公积金个人信息
infoStore.spidno = info.data.uIdCardNo;
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx',
data: {
personInfo({
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;
}).then(res => {
const info = JSON.parse(res.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",
......@@ -263,10 +233,8 @@
const data = JSON.parse(res.data);
infoStore.listInfo = data.data.records[0].list.acc_info
})
//公积金贷款信息
//贷款信息
loadInfo(
{
"spidno": spidno.value,
......@@ -277,6 +245,121 @@
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;
})
})
}})
// 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({
// url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjdkxx',
// data: {
......@@ -295,11 +378,11 @@
// });
//公积金地图
mapInfo({pageSize: 50,
pageIndex: 1}).then(res=>{
let data = JSON.parse(res.data)
infoStore.mapList = data.data;
})
// 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/gjjzx',
// data: {
......@@ -318,11 +401,11 @@
},
});
// },
// });
},
});
// },
// });
const xing = computed(() => {
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