Commit 0aad1158 authored by tanjuanjuan's avatar tanjuanjuan

测试

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