Commit 0aad1158 authored by tanjuanjuan's avatar tanjuanjuan

测试

parent 004f0882
......@@ -5,10 +5,20 @@ export const payList=(query)=>{
return request({
url:'/gjjzgcjmx',
data:query,
method:"POST",
header: {
'content-type': 'application/json'
}
method:"POST"
})
}
export const loadInfo=(query)=>{
return request({
url:"/gjjdkxx",
data:query
})
}
export const mapInfo=(query)=>{
return request({
url:"/gjjzx",
data:query
})
}
\ No newline at end of file
......@@ -135,7 +135,7 @@
} from '@/store';
import {
payList
payList,loadInfo,mapInfo
} from '../../api/request'
const infoStore = infoPinia()
......@@ -260,46 +260,61 @@
"spcode": spcode.value,
"transcode": "string"
}).then(res => {
console.log("in request ***"),
console.log(res)
const data = JSON.parse(res.data);
infoStore.listInfo = data.data.records[0].list.acc_info
})
//公积金贷款信息
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjdkxx',
data: {
loadInfo(
{
"spidno": spidno.value,
"spcode": spcode.value,
"iseqno": "string"
},
header: {
'content-type': 'application/json'
},
method: "GET",
success: function(res) {
const data = JSON.parse(res.data.data)
infoStore.loanInfo = data.data.records[0].list.acc_info
},
});
}
).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: {
// "spidno": spidno.value,
// "spcode": spcode.value,
// "iseqno": "string"
// },
// header: {
// 'content-type': 'application/json'
// },
// method: "GET",
// success: function(res) {
// const data = JSON.parse(res.data.data)
// infoStore.loanInfo = data.data.records[0].list.acc_info
// },
// });
//公积金地图
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx',
data: {
pageSize: 50,
pageIndex: 1
},
header: {
'content-type': 'application/json'
},
method: "GET",
success: function(res) {
let data = JSON.parse(res.data.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: {
// pageSize: 50,
// pageIndex: 1
// },
// header: {
// 'content-type': 'application/json'
// },
// method: "GET",
// success: function(res) {
// let data = JSON.parse(res.data.data)
// infoStore.mapList = data.data;
// },
// });
......
......@@ -7,9 +7,11 @@ export const request = ({
return new Promise((resolve, reject) => {
header = {
...header
} || {
'content-type': 'application/json'
};
xma.request({
url:"https://onemoment.gywb.cn/back/sgy-gjj/gjj"+url,
url: "https://onemoment.gywb.cn/back/sgy-gjj/gjj" + url,
data,
header,
method,
......@@ -25,7 +27,7 @@ export const request = ({
resolve(res.data)
},
fail:(err)=>{
fail: (err) => {
reject(err)
}
})
......
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