Commit 1681650a authored by tanjuanjuan's avatar tanjuanjuan

测试

parent 9bed31e7
import {request} from '../utils/http'
export const payList=(query)=>{
return request({
url:'/gjjzgcjmx',
data:query,
method:"POST",
header: {
'content-type': 'application/json'
}
})
}
......@@ -133,7 +133,9 @@
import {
infoPinia
} from '@/store';
import {payList} from '../../api/request'
const infoStore = infoPinia()
const getCurrentTimestamp = () => {
......@@ -212,7 +214,7 @@
//公积金个人信息
infoStore.spidno = info.data.uIdCardNo;
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjgrxx',
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj',
data: {
spidno: infoStore.spidno,
trantime: getCurrentTimestamp()
......@@ -244,6 +246,22 @@
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=>{
console.log("in request ***"),
console.log(res)
})
//公积金贷款信息
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjdkxx',
......
export const request = ({
url,
data = {},
header,
method = "GET"
}) => {
return new Promise((resolve, reject) => {
header = {
...header
};
xma.request({
url:"https://onemoment.gywb.cn/back/sgy-gjj/gjj"+url,
data,
header,
method,
success: (res) => {
if (res.statusCode !== 200) {
xma.showToast({
title: res.data.message,
duration: 1000,
icon: 'none',
});
return;
}
resolve(res.data)
},
fail:(err)=>{
reject(err)
}
})
})
}
\ No newline at end of file
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