Commit 004f0882 authored by tanjuanjuan's avatar tanjuanjuan

测试

parent 120c2f14
......@@ -52,7 +52,7 @@
<span class="fakeStar txt">{{pInfo.spmfact}}</span>
<span class="iconfont icon-yanjing-zhengyan"></span>
</view>
<view @click="goToList(1)" class="getMore">
<view @click="goToList(1)" class="getMore">
<span>更多</span>
<span class="iconfont icon-jiantou2"></span>
</view>
......@@ -131,11 +131,13 @@
} from 'vue'
import {
infoPinia
infoPinia
} from '@/store';
import {payList} from '../../api/request'
import {
payList
} from '../../api/request'
const infoStore = infoPinia()
const getCurrentTimestamp = () => {
......@@ -175,7 +177,7 @@
const loadData = computed(() => {
return infoStore.loanInfo || ""
})
const goToDetail=()=>{
const goToDetail = () => {
xma.navigateTo({
url: "/pages/account/account",
animationType: 'pop-in',
......@@ -196,9 +198,9 @@
animationDuration: 200
})
}
const goToList=(n)=>{
const goToList = (n) => {
xma.navigateTo({
url: "/pages/list/list?type="+n,
url: "/pages/list/list?type=" + n,
animationType: 'pop-in',
animationDuration: 200
})
......@@ -226,40 +228,43 @@
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=>{
console.log("in request ***"),
// 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 => {
console.log("in request ***"),
console.log(res)
})
const data = JSON.parse(res.data);
infoStore.listInfo = data.data.records[0].list.acc_info
})
//公积金贷款信息
......@@ -322,7 +327,6 @@
return year + '年' + month + '月'
}
})
</script>
<style scoped>
* {
......@@ -334,7 +338,7 @@
.main {
width: 100%;
max-width: 750px;
padding-bottom:20px;
padding-bottom: 20px;
}
.inner {
......@@ -399,7 +403,11 @@
background-color: white;
border-radius: 10px;
}
.box2{margin-bottom:20px;}
.box2 {
margin-bottom: 20px;
}
.item {
margin-bottom: 20px;
}
......
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